1 / 61
文档名称:

学习管理完整源代码v.doc

格式:doc   大小:223KB   页数:61页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

学习管理完整源代码v.doc

上传人:luciferios02 2018/8/8 文件大小:223 KB

下载得到文件列表

学习管理完整源代码v.doc

相关文档

文档介绍

文档介绍:<?php
session_cache_limiter('none');
session_start();
//print_r($_SESSION);
$path = "../libraries/";
/** The configuration file.*/
require_once $path."";
header("Cache-Control: no-cache, must-revalidate"); // HTTP/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
try {
$currentUser = EfrontUser :: ess();
$smarty -> assign("T_CURRENT_USER", $currentUser);
} catch (Exception $e) {
if ($e -> getCode() == EfrontUserException :: USER_NOT_LOGGED_IN) {
setcookie('c_request', htmlspecialchars_decode(http_build_query($_GET)), time() + 300, false, false, false, true);
}
eF_redirect("?ctg=expired");
exit;
}
if ($GLOBALS['currentTheme'] -> options['sidebar_interface']) {
header("location:".$_SESSION['s_type'].".php".($_SERVER['QUERY_STRING'] ? "?".$_SERVER['QUERY_STRING'] : ''));
//$smarty -> assign("T_SIDEBAR_URL", ""); // set an empty source for horizontal sidebars
//$smarty -> assign("T_SIDEFRAME_WIDTH", 0);
}
$smarty -> assign("T_SIDEBAR_MODE", $GLOBALS['currentTheme'] -> options['sidebar_interface']);
if ($GLOBALS['currentTheme'] -> options['sidebar_width']) {
$smarty -> assign("T_SIDEFRAME_WIDTH", $GLOBALS['currentTheme'] -> options['sidebar_width']);
} else {
$smarty -> assign("T_SIDEFRAME_WIDTH", 175);
}
if (isset($_SESSION['previousSideUrl'])) {
$smarty -> assign("T_SIDEBAR_URL", $_SESSION['previousSideUrl']);
}
if (isset($_GET['dashboard']) && $_SESSION['s_type'] == "administrator") {
$smarty -> assign("T_MAIN_URL", $_SESSION['s_type'].".php?ctg=personal&user=". $_GET['dashboard']);
} elseif (isset($_GET['dashboard']) || $_GET['ctg'] == 'personal') {
$smarty -> assign("T_MAIN_URL", $_SESSION['s_type'].".php?ctg=personal");
} elseif (isset($_GET['ctg']) || $_GET['ctg'] == 'landing_page') {
$smarty -> assign("T_MAIN_URL", $_SESSION['s_type'].".php?ctg=landing_page");
} else {
if (isset($_SESSION['previousMainUrl'])) {
$smarty -> assign("T_MAIN_URL", $_SESSION['pr