Esempio n. 1
0
		}
			
		if (!$license_fail) {
			unset ($_GET["sec2"]);

			logon_db ($nick_in_db, $_SERVER['REMOTE_ADDR']);
			$_SESSION['id_usuario'] = $nick_in_db;
			$config['id_user'] = $nick_in_db;
			if ($sec2 == '') {
				if ($custom_screen_loaded) {
					$sec2 = 'enterprise/operation/custom_screens/custom_screens';
				} else {
					$sec2 = 'general/home';
				}
			}
			$minor_release_message = db_update_schema(); // MINOR RELEASES
			//compare first integria-free
			if (isset($config['tpage_size_wel'])){
				$integria_free_wel = 1;
			} else {
				$integria_free_wel = 0;
			}
			//compare date alert 3 days
			if (isset($config['integria_free_days'])){
				$integria_free_days = 1;
			} else {
				$integria_free_days = 0;
			}
		} else {
			echo '<body class="login">';
				require_once ('general/login_page.php');
Esempio n. 2
0
     if ($custom_screen_loaded) {
         $sec2 = 'enterprise/operation/custom_screens/custom_screens';
     } else {
         $_GET["sec"] = "general/home";
     }
     logon_db($nick_in_db, $_SERVER['REMOTE_ADDR']);
     $_SESSION['id_usuario'] = $nick_in_db;
     $config['id_user'] = $nick_in_db;
     if ($sec2 == '') {
         if ($custom_screen_loaded) {
             $sec2 = 'enterprise/operation/custom_screens/custom_screens';
         } else {
             $sec2 = 'general/home';
         }
     }
     $minor_release_message = db_update_schema();
     // MINOR RELEASES
 } else {
     //login wrong
     $blocked = false;
     if (!$expired_pass) {
         if ($is_admin != 1) {
             if ($is_enterprise) {
                 $blocked = login_check_blocked($nick);
             } else {
                 $blocked = false;
             }
         }
         if (!$blocked) {
             if ($is_enterprise) {
                 login_check_failed($nick);