load( dirname(__FILE__)."/data/database.xml" ); $rows = $dom->getElementsByTagName( 'Row' ); $first_row = true; foreach ($rows as $row){ if ( !$first_row ){ $name = ""; $password = ""; $date = ""; $index = 1; $cells = $row->getElementsByTagName( 'Cell' ); $name = null; $password = null; foreach( $cells as $cell ) { $ind = $cell->getAttribute( 'Index' ); if ( $ind != null ) $index = $ind; if ( $index == 1 ) $username = $cell->nodeValue; if ( $index == 2 ) $password = $cell->nodeValue; $index += 1; } if( !is_null( $username ) && $username == $entered_username && !is_null($password) && $password == $entered_password ){ return true; } } $first_row = false; } return false; } $message = ''; $edu_name = $_POST['edu_name']; $edu_password = $_POST['edu_password']; if( isset( $_POST['edu_name'] ) ){ if(empty($_POST['edu_name']) or empty ($_POST['edu_password'])) { $message = "You have to fill in both of the fields
"; } else if( checkLogin($edu_name,$edu_password)){ $_SESSION["logged_in"]=true; $_SESSION["username"] = $edu_name; if(isset($_GET["redirect"])){ header("Location:".$_GET["redirect"]); } else { header("Location: ".$default_page); } } else { $message = "Please enter valid username and password combination
"; } } ?> Educator section-page

 

Northern Rivers Children's Services Limited Caring for the community since 1980

 

 

Educator section

 

Northern Rivers Children's Services provides special material and information for registered educators.
For registered educators, please enter your Educator Name and Educator Password exactly as supplied.

Please go to our educator page for more information on becoming a FDC Educator

 


$message"; }?>