1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php error_reporting(E_ALL ^ E_NOTICE);
session_start(); // Start Session header('Cache-control: private'); // IE 6 FIX
// always modified header('Last-Modified: ' . gmdate("D, d M Y H:i:s") . ' GMT'); // HTTP/1.1 header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', false); // HTTP/1.0 header('Pragma: no-cache');
// ---------- LOGIN INFO ---------- //
//$config_username = 'user'; //$config_password = 'demo123'; //$config_password = 'ee11cbb19052e40b07aac0ca060c23ee'; require("configure.php"); $sql = "SELECT * FROM sys_cms_login where cmsloginname = '".$_SESSION['loginname']."' AND cmsstatus = '1' "; $result = mysql_query($sql); if (mysql_num_rows($result) > 0) { $loggin = 1; } $config_loginname = $_SESSION['loginname']; $config_password = $_SESSION['password'];
$cookie_name = 'siteAuth';
$cookie_time = (3600 * 24 * 30); // 30 days
if(!$_SESSION['loginname']) { include_once 'autologin.php'; }
?>
|