usermenu.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("./global.php");
- require_once("../config/module.php");
- require_once("../class/http_class.php");
- require_once("../class/ParsePermit_class.php");
- $moduleID=$_GET["ModuleID"];
- $bbwps_user=$_COOKIE["bbwps_user"];
- $bbwps_pwd=$_COOKIE["bbwps_pwd"];
- $bbwps_check=$_COOKIE["bbwps_check"];
- $bbwps_ip=$_COOKIE["bbwps_ip"];
- $moduleArray[$module]["id"];
- if($moduleID){
- $permitURL=$moduleArray[$moduleID]["dns"]."/user/permit.php?bbwps_check=$bbwps_check&bbwps_user=$bbwps_user&bbwps_pwd=$bbwps_pwd&bbwps_ip=$bbwps_ip";
- $tmpFile="user_module_menu_row.html";
- $tmpFile2="user_module_menu.html";
- }
- else{
- $permitURL=$basePath."/user/permit.php?bbwps_check=$bbwps_check&bbwps_user=$bbwps_user&bbwps_pwd=$bbwps_pwd&bbwps_ip=$bbwps_ip";
- $tmpFile="user_base_menu_row.html";
- $tmpFile2="user_base_menu.html";
- }
- $permitObj=new PermitParse($permitURL);
- $permitArray=$permitObj->GetItems();
- $p->set_file("permitHandle",$tmpFile);
- foreach ($permitArray as $permit){
- $p->set_var($permit);
- $p->parse("user_module_menu_row","permitHandle",true);
- }
- $p->set_file("handle",$tmpFile2);
- $p->parse("output","handle");
- $p->p("output");
- function checkRequire(){}
- ?>