"; PopTable('header','Confirm Successful Installation'); echo '
'; echo '

You have successfully installed Centre School Information System.
Since this is your first login, Centre would like to tell our servers that you have successfully installed the software. Is this OK?

You will not see this message again.
'; echo '
'; echo '
'; PopTable('footer'); echo ''; Warehouse('footer_plain'); exit; } elseif($_REQUEST['submit']=='OK') { DBQuery("UPDATE CONFIG SET LOGIN='Yes'"); @mail('schmad@miller-group.net','NEW CENTRE INSTALL',"INSERT INTO CENTRE_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME) values('$_SERVER[SERVER_NAME]','$_SERVER[SERVER_ADDR]','".date('Y-m-d')."','1.2','$_SERVER[PHP_SELF]','$_SERVER[DOCUMENT_ROOT]','$_SERVER[SCRIPT_NAME]')"); if(function_exists('mysql_query')) { $link = @mysql_connect('augie.miller-group.net','centre_log','centre_log'); @mysql_select_db('centre_log'); @mysql_query("INSERT INTO CENTRE_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME) values('$_SERVER[SERVER_NAME]','$_SERVER[SERVER_ADDR]','".date('Y-m-d')."','1.2','$_SERVER[PHP_SELF]','$_SERVER[DOCUMENT_ROOT]','$_SERVER[SCRIPT_NAME]')"); @mysql_close($link); } } elseif($_REQUEST['submit']=='Cancel') { DBQuery("UPDATE CONFIG SET LOGIN='Y'"); @mail('schmad@miller-group.net','NEW CENTRE INSTALL',"INSERT INTO CENTRE_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME) values('$_SERVER[SERVER_NAME]','$_SERVER[SERVER_ADDR]','".date('Y-m-d')."','1.2','$_SERVER[PHP_SELF]','','')"); if(function_exists('mysql_query')) { $link = @mysql_connect('augie.miller-group.net','centre_log','centre_log'); @mysql_select_db('centre_log'); @mysql_query("INSERT INTO CENTRE_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME) values('$_SERVER[SERVER_NAME]','$_SERVER[SERVER_ADDR]','".date('Y-m-d')."','1.2','$_SERVER[PHP_SELF]','','')"); @mysql_close($link); } } } } elseif($login_RET[1]['PROFILE']=='none') $error[] = "Your account has not yet been activated. When your account has been verified by school administration, you will be notified by email."; elseif(strtoupper($student_RET[1]['USERNAME'])==strtoupper($_REQUEST['USERNAME'])) $_SESSION['STUDENT_ID'] = $student_RET[1]['STUDENT_ID']; else $error[] = "You used the Wrong Username or Password.
Please Try Logging In Again.
"; } if($_REQUEST['modfunc']=='create_account') { Warehouse('header'); $_CENTRE['allow_edit'] = true; if($_REQUEST['staff']['USERNAME']) $_REQUEST['modfunc'] = 'update'; else $_REQUEST['staff_id'] = 'new'; include('modules/Users/User.php'); if(!$_REQUEST['staff']['USERNAME']) Warehouse('footer_plain'); else { $note[] = 'Your account has been created. You will be notified by email when it is verified by school administration and you can log in.'; session_destroy(); } } if(!$_SESSION['USERNAME'] && !$_SESSION['STUDENT_ID'] && $_REQUEST['modfunc']!='create_account') { Warehouse('header'); echo ""; echo "

"; PopTable("header","Centre Login", "width=55%", "5"); echo '
'; echo ErrorMessage($error,'Error'); echo ErrorMessage($note,'Note'); echo '
'; echo " "; // System disclaimer. echo "

".Config('TITLE')."

Username
Password

[ Create Account ]
This is a restricted network. Use of this network, its equipment, and resources is monitored at all times and requires explicit permission from the network administrator and ".Config('TITLE').". If you do not have this permission in writing, you are violating the regulations of this network and can and will be prosecuted to the full extent of the law. By continuing into this system, you are acknowledging that you are aware of and agree to these terms.

"; PopTable("footer"); echo "
"; Warehouse("footer_plain"); } elseif($_REQUEST['modfunc']!='create_account') { echo " ".Config('TITLE')." "; } ?>