【php开源代码栏目提醒】:网学会员,鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“admincp.php”一文,供大家参考学习!
<?php
/*********************/
/* */
/* Version : 5.1.0 */
/* Author : RM */
/* Comment : 071223 */
/* */
/*********************/
define( "IN_ADMINCP", TRUE );
define( "NOROBOT", TRUE );
include_once( "./inc/inc.common.php" );
include_once( "./admincp/lib/class/class.ui.php" );
require_once( SUPEV_ROOT."./uc_client/client.php" );
$script = empty( $script ) ? "index" : $script;
if ( $script == "logout" )
{
$sql = "UPDATE {$tablepre}sessions SET admgid=0 WHERE mid='{$member['mid']}'";
$db->query( $
sql );
location( "./admincp.php" );
}
if ( $member['gid'] == MEMGRP_GUEST )
{
show( "璇锋偍鍏堝埌鍓嶅彴杩涜鐧诲綍銆?, "./login.php?action=login&referer=".rawurlencode( "./admincp.php" ) );
}
require_once( LANG_PATH."./admincp/faq_cp.php" );
include_once( LANG_PATH."./admincp.php" );
require_once( SUPEV_ROOT."./admincp/lib/func/func.global.php" );
require_once( SUPEV_ROOT."./admincp/inc/const.php" );
if ( $sess['admgid'] != ADMGID )
{
include_once( SUPEV_ROOT."./admincp/login.php" );
exit( );
}
require_once( SUPEV_ROOT."./lib/func/func.settings.php" );
$query = $db->query( "SELECT * FROM {$tablepre}settings" );
while ( $setting = $db->fetch_array( $query ) )
{
verify_settings( $setting );
$settings[$setting['var']] = $setting['val'];
}
$page = empty( $page ) ? 1 : max( 1, intval( $page ) );
$scriptarr = array( "index", "header", "menu", "home", "setting", "guest", "video", "special", "category", "exetension", "cron", "member", "group", "block", "sysinfo", "reg_insenz", "database", "comment", "announcement", "union", "infotype", "caches", "
words", "ban", "tag", "theme", "log", "statistical", "vshelp", "copartners", "cop_code", "report", "sitemaps", "block_infotype", "uc" );
if ( !in_array( $script, $scriptarr ) )
{
$script = "index";
$extra = "home";
}
if ( !in_array( $script, array( "index", "header", "menu", "cop_code" ) ) )
{
cpheader( );
echo "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\r\n\t<tr>\r\n\t<td class=\"mainarea\">";
}
include_once( SUPEV_ROOT."./admincp/".$script.".php" );
if ( !in_array( $script, array( "index", "header", "menu", "cop_code" ) ) )
{
echo "</td></tr></table>";
cpfooter( );
}
?>