nuke_mod_wiki_index

来自「很棒的在线教学系统」· 代码 · 共 59 行

TXT
59
字号
<?php/*    This is a PHPNuke5.2 module (don't know if it works with v6) to be    copied into the modules directory like the filename implies    ( phpnuke/modules/Wiki/ ).    You should copy the "ewiki.php" into the same directory!    If you want it to initialize the db correctly you must copy the    init-pages/ to there as well.*/#-- stupid legacy codeif (!eregi("modules.php", $PHP_SELF)) {    die ("You can't access this file directly...");}#-- blocks to the left and to the right?$index = 0;#-- HTML,HEAD,TABLESTARTinclude("header.php");       #-- or better "mainfile.php" ???#-- Output -----------------------------------------------------------OpenTable();    # do we want to know, what this is for?chdir("modules/Wiki/");error_reporting(0);define("EWIKI_SCRIPT", "modules.php?op=modload&name=Wiki&file=index&wikipage=");include("ewiki.php");($wikipage = $_REQUEST["wikipage"]) or($wikipage = $_REQUEST["page"]) or($wikipage = EWIKI_PAGE_INDEX);echo ewiki_page($wikipage);chdir("../..");CloseTable();   # strange function names ;)# /BODYinclude("footer.php");?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?