include_once('../header.inc'); if(strtolower($_POST["submit"]) == 'submit event for review') { if($_POST["code"] == md5($_POST["code2"])) { include_once('upload_functions.php'); } else { echo "
'; // print_r($_POST); // echo ''; $school_list = doquery("SELECT * FROM schools ORDER BY school"); $group_list = doquery("SELECT * FROM groups ORDER BY groupname"); $facility_list = doquery("SELECT * FROM facilities ORDER BY facility"); $category_list = doquery("SELECT * FROM category ORDER BY category"); // SECURITY CODE function rand_str($size) { $feed = "123456789abcdefghijklmnpqrstuvwxyz"; for ($i=0; $i < $size; $i++) { $rand_str .= substr($feed, rand(0, strlen($feed)-1), 1); } return $rand_str; } $string=rand_str(7); ?>