4,250
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<!--{$page_charset}-->" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>管理中心-[<!--{$config.sitename}-->]</title>
</head>
<frameset frameborder="10" framespacing="0" border="0" rows="70, *,32">
<frame name="top" src="admincp.php?mod=top" frameborder=0 NORESIZE SCROLLING='no' marginwidth=0 marginheight=0></frame>
<frameset frameborder=0 framespacing=0 border=0 cols="200,7, *" id="frame-body">
<frame frameborder=0 id="menu-frame" name="menu" src="admincp.php?mod=left" scrolling="auto" marginwidth="0"></frame>
<frame name="drag-frame" src="admincp.php?mod=drag" id="drag-frame" frameborder="no" scrolling="no"></frame>
<frame frameborder=0 id="main-frame" name="main" src="admincp.php?mod=main"></frame>
</frameset>
<frame name="footer" src="admincp.php?mod=footer" frameborder=0 NORESIZE SCROLLING='no' marginwidth=0 marginheight=0></frame>
</frameset>
<noframes>
</noframes>
</html>
<?php
/**
* @CopyRight (C)2006-2011 OE Development team Inc.
* @WebSite www.phpcoo.com��www.oecms.cn
* @Author XiangFeng <phpzac@foxmail.com>
* @Brief OEcms v3.x
* @Update 2011.09.01
**/
require_once '../source/core/run.php';
require_once 'admin.inc.php';
$mod = Core_Fun::rec_get("mod");
if($mod == "drag"){
$tpl->display(ADMIN_TEMPLATE."frm_drag.tpl");
} elseif($mod == "left"){
$tpl->display(ADMIN_TEMPLATE."frm_left.tpl");
} elseif($mod == "top"){
$tpl->display(ADMIN_TEMPLATE."frm_top.tpl");
} elseif($mod == "footer"){
$tpl->display(ADMIN_TEMPLATE."frm_footer.tpl");
} elseif($mod == "main"){
$tpl->display(ADMIN_TEMPLATE."frm_main.tpl");
}else{
$tpl->display(ADMIN_TEMPLATE."admincp.tpl");
}
?>
public static function rec_get($name,$type=2){
return self::request($name,$type,1,0);
}
public static function request($name,$posttype=0,$recbad=0,$strip=0){
if($posttype==1){
$post = isset($_POST[$name]) ? $_POST[$name] : '';
}elseif($posttype==2){
$post = isset($_GET[$name]) ? $_GET[$name] : '';
}else{
$post = isset($_REQUEST[$name]) ? $_REQUEST[$name] : '';
}
if((int)$recbad==1){
$post = self::replacebadchar($post);
}
if((int)$strip==1){
$post = self::strip_array($post);
}
return trim($post);
}