session_start(); header("Cache-control: private"); if ($logout=="yes") { $_SESSION=array(); session_destroy(); } include("admin/functions2.php"); require_once("admin/admn.php"); include("admin/ini.php"); // sanitize variables based on either post or get while(list($key, $val)=each($_GET)) { $$key=filter_var($val, FILTER_SANITIZE_STRING, FILTER_SANITIZE_SPECIAL_CHARS); } reset($_GET); while(list($key, $val)=each($_POST)) { $file_type=substr($key, 0, 3); $$key=getFiltered($file_type, $val); } reset($_POST); //extract($_GET); //extract($_POST); //echo "\n\n\n\n"; // create three instances of the mysql connection for use in later queries $sql=new MySQL_class; $sql->Setup($dbuid, $dbpwd, $dbhost); $sql->Create($dbname); $sql2=new MySQL_class; $sql2->Setup($dbuid, $dbpwd, $dbhost); $sql2->Create($dbname); $sql3=new MySQL_class; $sql3->Setup($dbuid, $dbpwd, $dbhost); $sql3->Create($dbname); ?>