Location: PHPKode > projects > Openology PHP Application Integration > openology/backend/config.php
<?php
/***************************************************************************
 *   copyright            : (C) 2006 The openology Group
 *   email                : hide@address.com
 *
 *   $Id: $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

session_start();
  if(!isset($_SESSION['valid_user']))
  {
   header ("Location:login.php");
  }
require_once(dirname(__FILE__)."/config_base.php");
/*非超级管理员禁止访问的脚本
$s_exptag = "del_|_del|file_|admin_|sys_";

//检验用户登录状态
$cuserLogin = new userLogin();
if($cuserLogin->getUserID()==-1)
{
	header("location:login.php?gotopage=$s_scriptName");
	exit();
}

//检验用户是否访问被禁止的脚本
if(ereg($s_exptag,$s_scriptName)&&$cuserLogin->getUserType()!=10)
{
	ShowMsg(" 你不是超级管理员,文件或系统操作以及大部份删除的操作均被限制,\\n\\n 如果你确实要获得这些权限,请与超级管理员进行删除。","-1");
	exit();
}*/
?>
Return current item: Openology PHP Application Integration