\n"; while($ob = mysql_fetch_object($result)) { //set img tag $imgSRC = ''.$ob->description.''; //get image size $size = getimagesize("data/screenshots/".$ob->url); //generate random tag for popup window $randName = generate_passwd(5); //set image link based on user pref $img = ''.$imgSRC.''; if (loggedin()) { if ($current->getpref("window:screenshot") == "no") { $img = ''.$imgSRC.''; } } //display image echo "\n"; //end row if counter of 3 if ($c % 3 == 0) { echo "\n"; } $c++; } echo "
\n"; echo html_frame_start(substr(stripslashes($ob->description),0,20),128,"",0); echo $img; //show admin delete link if(loggedin() && (havepriv("admin") || $current->ownsApp($appId))) { echo "
[Delete Image]
"; } echo html_frame_end(" "); echo "

\n"; echo html_frame_end("Click thumbnail to view image in new window."); echo html_back_link(1); apidb_footer(); } ?>