/** * 初期実行 index.php から呼ばれる */ function openpne_execute() { $module = ''; $type = ''; $action = ''; if (!($module = get_request_var('m'))) { // モジュール名の自動設定 if (!db_admin_user_exists()) { $module = 'setup'; } elseif (isKtaiUserAgent()) { $module = 'ktai'; } else { $module = 'pc'; } } $types = array('page', 'do'); if ($a = get_request_var('a')) { $arr = explode('_', $a, 2); if (!empty($arr[1]) && in_array($arr[0], $types)) { $type = $arr[0]; $action = $arr[1]; } } openpne_forward($module, $type, $action); }
/** * @copyright 2005-2008 OpenPNE Project * @license http://www.php.net/license/3_01.txt PHP License 3.01 */ require_once './config.inc.php'; // エラー出力を抑制 ini_set('display_errors', false); ob_start(); // モジュール毎に決められた認証をおこなっているかどうかのチェック if (defined('CHECK_IMG_AUTH') && CHECK_IMG_AUTH) { require_once OPENPNE_WEBAPP_DIR . '/init.inc'; $module = ''; if (!($module = get_request_var('m'))) { // モジュール名の自動設定 if (!db_admin_user_exists()) { $module = 'setup'; } elseif (isKtaiUserAgent()) { $module = 'ktai'; } else { $module = 'pc'; } } $params = '&a=page_h_toimg'; if (isKtaiUserAgent()) { $params .= '&m=ktai'; } else { $params .= '&m=pc'; } $_SERVER['QUERY_STRING'] .= $params; if (!($module = _check_module($module))) {