index.php
资源名称:BBWPS.rar [点击查看]
上传用户:yttaitong
上传日期:2009-05-10
资源大小:128k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
PHP
- <?PHP
- /*
- [BBWPS!] (C)2006-2010 小蜜蜂版权所有.
- This is NOT a freeware, use is subject to license terms
- 时间:2007年12月
- 描述:后台主页
- */
- error_reporting(0);
- require_once("../class/template_class.php");
- require_once("../class/mysql_class.php");
- require_once("../function/function.php");
- require_once("../function/func_global.php");
- require_once("../config.php");
- require_once("../config/baseCheckCode.php");
- require_once("../function/checkModuleSession.php");
- $bbwps_admin=isLogin("../$sessionPath/");
- $isMagic = @ini_get("magic_quotes_gpc");
- if(!$isMagic){
- if (is_array($_POST)){
- foreach($_POST AS $key => $value) {
- $_POST[$key] = addslashes($value);
- }
- }
- if(is_array($_GET)){
- foreach ($_GET as $key => $value){
- $_GET[$key]=addslashes($value);
- }
- }
- if(is_array($_COOKIE)){
- foreach ($_COOKIE as $key => $value){
- $_COOKIE[$key]=addslashes($value);
- }
- }
- }
- $prefix.=$modulePrefix;
- $f=$_GET["f"];
- $path=$_GET["p"];
- if(!$f||!$path){exit("Forbidden");}
- $db=new DB($hostname,$username,$password,$database);
- $p=new Template("./templates");
- require("./".$path."/".$f.".php");
- $db->__DB;
- unset($p,$db,$path,$f);
- function CheckRequire(){}
- function filtrateSQL($string){
- return $string;
- }
- ?>