17 七 2008 @ 10:17 上午 

//note 取得动作和菜单变量
$menu = MooGetGPC(‘menu’, ’string’);
$action = MooGetGPC(‘action’, ’string’);
$operation = MooGetGPC(‘operation’, ’string’);

//note 加载需要模块
if(!empty($topMenu[$action]['name']) && file_exists(MOOPHP_ROOT.’/../Moo-admin/’.$action.’.inc.php’)) {
 require MOOPHP_ROOT.’/../Moo-admin/’.$action.’.inc.php’;
}

//operation  使用
!defined(‘IN_MOOPHP’) && exit(‘Access Denied’);
$operation = MooGetGPC(‘operation’, ’string’);
$id = MooGetGPC(‘id’);
$operation = in_array($operation, array(‘edit’, ‘del’, ‘list’, ‘adduser’, ‘usermanage’, ‘editusermes’,'editgroup’,'banuser’,'banip’, ‘auditlist’, ‘clear’)) ? $operation : ‘usermanage’;

Posted By: 大宇
Last Edit: 17 七 2008 @ 10:17 上午

EmailPermalinkComments (0)
Tags
Tags: , ,
Categories: php

 Last 50 Posts
Change Theme...
  • Users » 1
  • Posts/Pages » 165
  • Comments » 12
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

关于



    No Child Pages.

Linux命令手册



    No Child Pages.

php.ini配置



    No Child Pages.

Memcache协议



    No Child Pages.