usermenu.php
上传用户:yttaitong
上传日期:2009-05-10
资源大小:128k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

PHP

  1. <?php
  2. /*
  3.     [BBWPS!] (C)2006-2010 小蜜蜂版权所有.
  4. This is NOT a freeware, use is subject to license terms
  5.     时间:2007年12月
  6.     描述:打印公共模板
  7. */
  8. error_reporting(0);
  9. require_once("./global.php");
  10. require_once("../config/module.php");
  11. require_once("../class/http_class.php");
  12. require_once("../class/ParsePermit_class.php");
  13. $moduleID=$_GET["ModuleID"];
  14. $bbwps_user=$_COOKIE["bbwps_user"];
  15. $bbwps_pwd=$_COOKIE["bbwps_pwd"];
  16. $bbwps_check=$_COOKIE["bbwps_check"];
  17. $bbwps_ip=$_COOKIE["bbwps_ip"];
  18. $moduleArray[$module]["id"];
  19. if($moduleID){
  20. $permitURL=$moduleArray[$moduleID]["dns"]."/user/permit.php?bbwps_check=$bbwps_check&bbwps_user=$bbwps_user&bbwps_pwd=$bbwps_pwd&bbwps_ip=$bbwps_ip";
  21. $tmpFile="user_module_menu_row.html";
  22. $tmpFile2="user_module_menu.html";
  23. }
  24. else{
  25. $permitURL=$basePath."/user/permit.php?bbwps_check=$bbwps_check&bbwps_user=$bbwps_user&bbwps_pwd=$bbwps_pwd&bbwps_ip=$bbwps_ip";
  26. $tmpFile="user_base_menu_row.html";
  27. $tmpFile2="user_base_menu.html";
  28. }
  29. $permitObj=new PermitParse($permitURL);
  30. $permitArray=$permitObj->GetItems();
  31. $p->set_file("permitHandle",$tmpFile);
  32. foreach ($permitArray as $permit){
  33. $p->set_var($permit);
  34. $p->parse("user_module_menu_row","permitHandle",true);
  35. }
  36. $p->set_file("handle",$tmpFile2);
  37. $p->parse("output","handle");
  38. $p->p("output");
  39. function checkRequire(){}
  40. ?>