✏️ 编辑:admin.php
路径:
/virtual/bigbrother/public_html/edream-c.com/cd/admin.php
大小:1.45 KB · 修改:2013-09-07 07:18:06 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /** * * @package Legacy * @version $Id: admin.php,v 1.3 2008/09/25 15:10:19 kilica Exp $ * @copyright Copyright 2005-2007 XOOPS Cube Project <https://github.com/xoopscube/legacy> * @license https://github.com/xoopscube/legacy/blob/master/docs/GPL_V2.txt GNU GENERAL PUBLIC LICENSE Version 2 * */ /*------------------------------------------------------------------------* | This file was entirely rewritten by the XOOPS Cube Legacy project for | | keeping compatibility with XOOPS 2.0.x <http://www.xoops.org> | *------------------------------------------------------------------------*/ include "mainfile.php"; class DefaultSystemCheckFunction { public static function DefaultCheck() { if (ini_get('register_globals') == 1) { xoops_error(sprintf(_WARNPHPENV,'register_globals','on',_WARNSECURITY),'','warning'); } if (is_dir(XOOPS_ROOT_PATH."/install/" )) { xoops_error(sprintf(_WARNINSTALL2,XOOPS_ROOT_PATH.'/install/'),'','warning'); } if ( is_writable(XOOPS_ROOT_PATH."/mainfile.php" ) ) { xoops_error(sprintf(_WARNINWRITEABLE,XOOPS_ROOT_PATH.'/mainfile.php'),'','warning'); } } } require_once XOOPS_ROOT_PATH . "/header.php"; $root=&XCube_Root::getSingleton(); $root->mDelegateManager->add("Legacypage.Admin.SystemCheck", "DefaultSystemCheckFunction::DefaultCheck"); XCube_DelegateUtils::call("Legacypage.Admin.SystemCheck"); require_once XOOPS_ROOT_PATH . "/footer.php"; ?>
💾 保存
取消
保存为 UTF-8,换行统一为 LF