' ') { $script_name .= '?'.$_SERVER['QUERY_STRING']; } } if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') { $_SERVER['FULL_URL'] .= 's'; } $_SERVER['FULL_URL'] .= '://'; if($_SERVER['SERVER_PORT']!='80') { $_SERVER['FULL_URL'] .= $_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT'].$script_name; } else { $_SERVER['FULL_URL'] .= $_SERVER['HTTP_HOST'].$script_name; } if (isset($_POST['submit'])) { // Handle the form. if (isset($name)){ $name = $_POST['name']; } require_once ('qbosses/Qboss_connect.php'); // Connect to the db. // Create a function for escaping the data. function escape_data ($data) { global $dbc; // Need the connection. if (ini_get('magic_quotes_gpc')) { $data = stripslashes($data); } return mysql_real_escape_string($data, $dbc); } // End of function. $message = NULL; // Create an empty new variable. // Check for a username. if (empty($_POST['username'])) { $u = FALSE; $message .= '
You forgot to enter your username!
'; } else { $u = escape_data($_POST['username']); } // Check for a password. if (empty($_POST['password'])) { $p = FALSE; $message .= 'You forgot to enter your password!
'; } else { $p = escape_data($_POST['password']); } if ($u && $p) { // If everything's OK. $loginAttempts = !isset($_POST['loginAttempts'])?1:$_POST['loginAttempts']; if ( $loginAttempts >= 3 ) { $message = " Log In
Failed.
Please try again.
'; } } // End of the main Submit conditional. // Print the error message if there is one. /** * if (isset($message)) { * //echo "| " ; * echo '', $message, ''; * //echo " | "; * //echo "
| Home | Careers | Contact US |
![]() |
| Please contact us to learn more about Quantum Information Systems Inc.
Quantum Information Systems, Inc. All Rights Reserved. |