ob_start(); if($_SERVER["HTTP_X_FORWARDED_PORT"] == "80") header("Location: https://newcms.microprecision.com"); require 'lib/users.class.php'; require 'lib/template.class.php'; $css = new cms_css(); $js = new cms_javascript(); $css->style(); $css->jquery_css2(); $js->jquery_js(); $js->jquery_custom(); $js->autojs(); $css->auto_css(); $js->login(); if ($HTTP_GET_VARS['action'] == 'logout'){ //if ($iniLog->logout()){ $msg = 'You have been logged out'; //} } if ($HTTP_GET_VARS['action'] == 'errorMsg'){ //if ($iniLog->logout()){ $msg = 'Please enter the correct username and password.'; //} } if($_POST['action'] === "login"){ $users = new User(); $user_name = $_POST["username"]; $field_color = $_POST["password"]; echo "here"; $url = $users->verifyLogin($user_name, $field_color); header("Location: $url"); }else{ require 'lib/common.class.php'; $common_func = new Common_Func(); if($common_func->redirectUser()){ header("Location: home/index.php"); } } ob_flush(); ?>
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
|
![]() |
||
![]() |
![]() |
![]() |
![]() |