选择文件名文件大小最后修改时间操作
[📄] cache_a03fced.php3.45 KB2026-09-30 15:32:04
[📄] dpack.php7.91 KB2026-10-03 05:44:11
[📄] filemanager_ui3z9cs.php43.54 KB2026-10-02 09:56:25
[📄] local-by-flywheel-demo-urls.php2.30 KB2019-03-20 13:48:55
[📄] log_8800f54.php5.57 KB2026-09-30 15:11:22
查看 gate.php - 文件管理器
👁 查看:gate.php
路径:/virtual/bigbrother/public_html/edream-c.com/xoops_trust_path/modules/xpwiki/gate.php
大小:1.85 KB · 修改:2013-09-08 02:28:18 · 权限:0644 · 可写
<?php
/*
 * Created on 2007/06/29 by nao-pon http://hypweb.net/
 * $Id: gate.php,v 1.11 2011/11/26 12:03:10 nao-pon Exp $
 */

/*
 * $mydirname      : Module dirname
 * $mydirpath      : Module dirpath
 * $mytrustdirname : Trust dirname (xpwiki)
 */

@ ignore_user_abort(FALSE);

$xwGateOption['nocommonAllowWays'] = array('x2w');
$xwGateOption['nodosAllowWays'] = array('ref', 'fusen', 'dump');
$xwGateOption['noumbAllowWays'] = array('ref', 'attach');
$xwGateOption['hypmodeAllowWays'] = array('w2x');

$mytrustdirpath = dirname( __FILE__ ) ;

$way = (isset($_GET['way']))? $_GET['way'] : ((isset($_POST['way']))? $_POST['way'] : '');
$way = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , $way);

if ($xwGateOption['xmode']) {
	if (!in_array($way, $xwGateOption['nocommonAllowWays'])) xpWikiGate_goOut(400);
}

if ($xwGateOption['nodos']) {
	if (!in_array($way, $xwGateOption['nodosAllowWays'])) xpWikiGate_goOut(400);
}

if ($xwGateOption['noumb']) {
	if (!in_array($way, $xwGateOption['noumbAllowWays'])) xpWikiGate_goOut(400);
}

if (isset($xwGateOption['hypmode']) && $xwGateOption['hypmode']) {
	if (!in_array($way, $xwGateOption['hypmodeAllowWays'])) xpWikiGate_goOut(400);
}

if ($way === 'w2x' && (version_compare(PHP_VERSION, '5.0.0', '>='))) {
	$way .= '_php5';
}

$file_php = $mytrustdirpath . '/ways/' . $way . '.php';
if (is_file($file_php)) {
	include $file_php;
} else {
	xpWikiGate_goOut(204);
}

function xpWikiGate_goOut($err) {
	error_reporting(0);
	while( ob_get_level() ) {
		if (! ob_end_clean()) {
			break;
		}
	}
	$str = '';
	switch($err) {
		case 204:
			header( 'HTTP/1.0 204 No Content' );
			break;
		case 400:
			header( 'HTTP/1.0 400 Bad Request' );
			$str = 'Bad Request.';
			break;
		default:
			header( 'HTTP/1.0 404 Not Found' );
			header( 'Status: 404 Not Found' );
			$str = 'Not Found.';
	}
	header( 'Content-Length: ' . strlen($str) );
	exit($str);
}
?>
ページが見つかりませんでした – Lumiere Shop
ここを指しているリンクに誤りがあったようです。検索してみるのはいかがですか ?
お買い物カゴ