Skip to content

Commit

Permalink
spm_k.phpのスクリプト読み込みパスを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rsky committed Sep 10, 2012
1 parent 063806a commit d405fb4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rep2/spm_k.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
//=================================================
if (isset($_GET['ktool_name']) && isset($_GET['ktool_value'])) {
$ktv = (int)$_GET['ktool_value'];
$base_dir_s = P2_BASE_DIR . DIRECTORY_SEPARATOR;
$www_dir_s = P2_WWW_DIR . DIRECTORY_SEPARATOR;
switch ($_GET['ktool_name']) {
case 'goto':
$_REQUEST['ls'] = $_GET['ls'] = sprintf('%d-%d', $ktv, $ktv + $_conf['mobile.rnum_range']);
include $base_dir_s . 'read.php';
include $www_dir_s . 'read.php';
exit;
case 'rref':
$_REQUEST['rf'] = array(
Expand All @@ -27,25 +27,25 @@
'include' => ResFilter::INCLUDE_REFERENCED,
'word' => (string)$ktv, // intではだめ
);
include $base_dir_s . 'read.php';
include $www_dir_s . 'read.php';
exit;
case 'res':
case 'res_quote':
$_GET['resnum'] = $ktv;
$_GET['inyou'] = ($_GET['ktool_name'] == 'res') ? -1 : 1;
include $base_dir_s . 'post_form.php';
include $www_dir_s . 'post_form.php';
exit;
case 'copy_quote':
$_GET['inyou'] = 1;
case 'copy':
$_GET['copy'] = $ktv;
include $base_dir_s . 'read_copy_k.php';
include $www_dir_s . 'read_copy_k.php';
exit;
case 'aas_rotate':
$_GET['rotate'] = 1;
case 'aas':
$_GET['resnum'] = $ktv;
include $base_dir_s . 'aas.php';
include $www_dir_s . 'aas.php';
exit;
case 'aborn_res':
case 'aborn_name':
Expand All @@ -61,7 +61,7 @@
$_GET['resnum'] = $ktv;
$_GET['popup'] = 1;
$_GET['mode'] = $_GET['ktool_name'];
include $base_dir_s . 'info_sp.php';
include $www_dir_s . 'info_sp.php';
exit;
default:
p2die('不正なコマンド');
Expand Down

0 comments on commit d405fb4

Please sign in to comment.