include("library.php"); if( $_GET['display']) { switch($_GET['display']) { case "boys": $sex=0; break; case "girls": $sex=1; break; case "both": $sex=2; break; } } else { $sex = 2; } if( ($action) && ($action=="vote") ) { addNewVote($_GET['pxID'], $_GET['val']); $next_img = getRandomPhotoID($sex); $imgAddress = getImageAddress($next_img); $imgDetails = getImageDetails($next_img); } else if ( ($action) && ($action=="show") ) { $imgAddress = getImageAddress($_GET['img']); $imgDetails = getImageDetails($_GET['img']); while(list($var, $val) = each($imgDetails)) { echo "\n"; } } else { if( (!$img) || (!$_GET['pxID'])) { $next_img = getRandomPhotoID($sex); $imgAddress = getImageAddress($next_img); $imgDetails = getImageDetails($next_img); } else { $imgAddress = getImageAddress($_GET['img']); $imgDetails = getImageDetails($_GET['img']); } } ?>
|
||||
|
|
|||
|