Script written by Stephen Yabziz | > Date started: 14th February 2004 | +-------------------------------------------------------------------------- */ define('IN_OUTPUT',1); include "includes/inc.php"; /** * get var from url or query */ if(!empty($input[t])) { $type='t'; $id=$input[t]; } elseif(!empty($input[i])) { $type='i'; $id=$input[i]; } else { $path=$_SERVER["PHP_SELF"]; $last=strrpos($path,'/'); $type=substr($path,$last+1,1); $id=intval(substr($path,$last+2)); } $db->setQuery("select i.id,i.file,i.width,i.height,i.name,i.uid,i.size,i.bandwidth,u.bandwidth as userbandwidth,g.bandwidth as maxbandwidth,i.lastview as lview,u.status from images as i left join users as u on u.id=i.uid left join groups as g on g.id=u.gid where i.id='$id'"); $db->query(); $row=$db->loadRow(); processOutput($row,$type); ?>