Location: PHPKode > projects > Exero CMS > upload/admin/global.php
<?
/*========================================*\
| Exero CMS                                |
|==========================================|
|          http://ecms.getox.net           |
|https://sourceforge.net/projects/exerocms/|
|==========================================|
|     Exero CMS is released under the      |
|     GNU General Public License (GPL)     |
| opensource.org/licenses/gpl-license.php  |
\*========================================*/

// Start the session
session_start();
// Get Config File
require("../config.php");
// Include MySQL Class
include("../class/mysql.php");
// Connect to the Database
$db = new ecmsDatabase;
$db->connect($database['server'],$database['username'],$database['password']);
$db->selectdb($database['database']);
// Include ecms Class
include("../class/core.php");
$ecms = new ExeroCMS;
$ecms->init();
// Include User Class
include("../class/user.php");
$user = new ecmsUser;
$user->check();
// Include Functions
include("../functions/functions.php");
include("../functions/adminfunctions.php");
// Check Admin Session
if(checkadminsession()) {
	$db->query("UPDATE admin_sessions SET lastactive='".time()."' WHERE userid='".$user->userinfo['uid']."' LIMIT 1");
}
?>
Return current item: Exero CMS