DB_CONNECT(); //CREATE OUR USER $user = new USER_CLASS(); //CHECK TO SEE IF OUR USER IS LOGGED IN //CHECK TO SEE IF THE USER WANTS A COOKIE KEPT ON HIS/HER COMP if($_REQUEST['cook']=="yes"){ $user_logged=$user->checkUserLog($db, "YES"); }else{ $user_logged=$user->checkUserLog($db, "NO"); } //CALL OUR NAVIGATION FUNCTION TO SEE WHAT PAGE WE NEED TO LOAD UP $THEPAGE = getPage(); //GET/SET OPTIONS IF ANY if(!isset($_REQUEST['start'])){ $start = 0; }else{ $start = $_REQUEST['start']; } if(!isset($_REQUEST['limit'])){ $limit =10; }else{ $limit = $_REQUEST['limit']; } ?> The Picture Project ~ Salvaging memories one print at a time
DB_CLOSE($database_connection); //-------------------------------------------------------------------------------------------- //GET PAGE //-------------------------------------------------------------------------------------------- function getPage(){ if(isset($_REQUEST['pid'])){ global $pid,$user; $pid = $_REQUEST['pid']; switch ($pid) { case 1: //HOME PAGE return "page_home.php"; break; case 2: //ABOUT PAGE return "page_about.php"; break; case 3: //NEWS PAGE return "page_news.php"; break; case 4: //SEARCH PAGE return "page_search.php"; break; case 5: //CONTACT PAGE return "page_contact.php"; break; case 6: //PICTURE PAGE return "page_picture.php"; break; case 7: //CLAIM PAGE return "page_claim.php"; break; case 8: //PRIVACY PAGE return "page_privacy.php"; break; case 9: //TERMS PAGE return "page_terms.php"; break; case 10: //TERMS PAGE return "accept_terms.php"; break; case 99: //FORGOT PAGE return "page_forgot.php"; break; case 100: //JOIN PAGE return "page_join.php"; break; case 101: //VERIFY PAGE return "page_verify.php"; break; case 102: //LOGIN PAGE return "page_login.php"; break; case 103: //LOGOUT PAGE //USER LOG OUT $user_logged=$user->logout(); return "page_logout.php"; break; case 104: //ACCOUNT PAGE return "page_account.php"; break; case 201: //TERMS OF USE return "page_terms.php"; break; case 202: //PRIVACY POLICY return "page_privacy.php"; break; case 1000: //PRIVACY POLICY return "page_spec_join.php"; break; default: //HOME PAGE return "page_home.php"; break; } }else{ global $pid; $pid = 1; return "page_home.php"; } } ?>