1 ) { $lp_num = intval( $_COOKIE['pw_redirect'] ); header( "Location: landing_page_default.php?page_id=$lp_num" ); exit; /* if( file_exists( "landing_page_{$lp_num}.php" ) ) { header( "Location: landing_page_{$lp_num}.php" ); exit; } */ } /* else if( ereg( "_LP_", $pass ) ) { $lp_num = substr( $pass, strpos($pass, "_LP_" )+4); if( file_exists( "landing_page_{$lp_num}.php" ) ) { header( "Location: landing_page_{$lp_num}.php" ); exit; } } */ header( "Location: landing_page.php" ); exit; } require_once("/home/httpd/vhosts/waidev3.com/httpdocs/php/subroutines.php"); //editor code////////////////////////////////////////////////////////////////////////////////////////////////////// $is_logged_in = false; $page_id = 1; require_once( "/home/httpd/vhosts/gridclub.com/httpdocs/editor/get_content.php" ); require_once ( "/home/httpd/vhosts/gridclub.com/httpdocs/editor/header.php" ); //$boxes_arr = get_content_arr( "SELECT id, Text_1, Text_2, Text_3, Image FROM GRIDCLUB_CMS_ImageBox WHERE Page_ID='1' ORDER BY Component_ID ASC " ); //$text_arr = get_content_arr( "SELECT id, Text FROM GRIDCLUB_CMS_Text WHERE Page_ID='1' ORDER BY Component_ID ASC " ); $boxes_arr = get_content_arr( array( 'id', 'Text_1', 'Text_2', 'Text_3', 'Image'), "GRIDCLUB_CMS_ImageBox", $page_id, 10 ); $text_arr = get_content_arr( array( 'id', 'Text' ), "GRIDCLUB_CMS_Text", $page_id, 4 ); for($i=1;$i<=sizeOf( $text_arr ); $i++) { $content_arr = $text_arr[$i-1]; for($j=1;$jCreate("DB5_data"); $user_name = $sql->mres($user_name); $school = $sql->mres($school); $email = $sql->mres($email); $query = "INSERT INTO GRIDCLUB_News_SignUp set Name='$user_name', School='$school', Email='$email', Date_Added='$date'"; $sql->Query( $query ); $sql->Disconnect(); $headers = "From: " . $user_name ."\nBcc: matt@wai.co.uk, michelle.hill@wai.co.uk\r\n"; $message = "NAME: ".$user_name . "\n\n\SCHOOL: ".$school . "\n\nEMAIL: ".$email; mail( $email_to, "GridClub ::: Teachers News Sign Up", stripslashes($message), $headers ); } } ?> GridClub - Grown ups
Teacher Zone