<?php /* * Created on 2008/01/16 by nao-pon http://hypweb.net/ * $Id: fusen.php,v 1.1 2008/01/16 05:17:54 nao-pon Exp $ */ if (isset($_POST['mode']) && $_POST['mode'] === 'set') { require XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/main.php'; } xpWikiGate_goOut('Bad request.');
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: