require("settings.php");
require("event_class.php");
require("gallery_class.php");
$u = new Gallery($conn, $g_min_width, $g_min_height, $g_path_to_images);
$e = new Event($conn);
?>
=$client;?> Administration
if ($_REQUEST['type'] == "u"){
if ($_REQUEST['what'] == "up"){ $u->UpPicForm($_REQUEST); }
else if ($_REQUEST['what'] == "up_process"){ $u->UpPicProcess($_REQUEST, $_FILES); }
else if ($_REQUEST['what'] == "add"){ $u->AddPicForm($_REQUEST); }
else if ($_REQUEST['what'] == "add_caption"){ $u->AddCapForm($_REQUEST); }
else if ($_REQUEST['what'] == "add_g_process"){ $u->AddGalProcess($_REQUEST); }
else if ($_REQUEST['what'] == "add_process"){ $u->AddPicProcess($_REQUEST); }
else if ($_REQUEST['what'] == "del"){ $u->DelPicForm($_REQUEST); }
else if ($_REQUEST['what'] == "del_process"){ $u->DelPicConfirm($_REQUEST); }
else if ($_REQUEST['what'] == "confirm"){ $u->DelPicProcess($_REQUEST);}
else if ($_REQUEST['what'] == "del_gal"){ $u->DelGalForm($_REQUEST); }
else if ($_REQUEST['what'] == "del_g_process"){ $u->DelGalConfirm($_REQUEST); }
else if ($_REQUEST['what'] == "confirm_g"){ $u->DelGalProcess($_REQUEST);}
}
else if ($_REQUEST['type'] == "e"){
if ($_REQUEST['what'] == "addev"){ $e->AddEvForm(); }
else if ($_REQUEST['what'] == "addev_process"){ $e->AddEvent($_REQUEST); }
else if ($_REQUEST['what'] == "clntxt"){ $e->CleanText($_REQUEST); }
else if ($_REQUEST['what'] == "addpic"){ $e->UpPicForm($_REQUEST); }
else if ($_REQUEST['what'] == "up_process"){ $e->UpPicProcess($_REQUEST, $_FILES); }
else if ($_REQUEST['what'] == "dispev"){ $e->DispEvList($_REQUEST); }
else if ($_REQUEST['what'] == "dispev_process"){ $e->DisplayEvent($_REQUEST); }
else if ($_REQUEST['what'] == "editev_process"){ $e->EditEvent($_REQUEST); }
else if ($_REQUEST['what'] == "killev"){ $e->KillEvList($_REQUEST['which']); }
else if ($_REQUEST['what'] == "killev_process"){ $e->KillEvProcess($_REQUEST); }
else if ($_REQUEST['what'] == "delpic_process"){ $e->DelPicProcess($_REQUEST); }
}
else {
?>
Please select what to do from the nav bar on the left.
}
?>