PS 漂流記 攻略まとめサイト

freezing_shortcut_src

最終更新:

token

- view
管理者のみ編集可

freezing shortcut src改変箇所

/lib/func.phpの331行目page_list関数の中

// Create list of pages
function page_list($pages, $cmd = 'read', $withfilename = FALSE)
{
	global $script, $list_index;
	global $_msg_symbol, $_msg_other;
	global $pagereading_enable;

	// ソートキーを決定する。 ' ' < '[a-zA-Z]' < 'zz'という前提。
	$symbol = ' ';
	$other = 'zz';

	$retval = '';

	if($pagereading_enable) {
		mb_regex_encoding(SOURCE_ENCODING);
		$readings = get_readings($pages);
	}

	$list = $matches = array();

	// Shrink URI for read
	if ($cmd == 'read') {
		$href = $script . '?';
	} else {
		$href = $script . '?cmd=' . $cmd . '&amp;page=';
	}

	foreach($pages as $file=>$page) {
		$r_page  = rawurlencode($page);
		$s_page  = htmlspecialchars($page, ENT_QUOTES);
		$passage = get_pg_passage($page);

	//*******************追記***********************
	//freezeかどうかチェック
	//
	//
	$frz = "";
	$color = "";
	$cmd = "";
	if (is_freeze($page)) { 
		$frz = "freeze.png";
		$color="green";
		$cmd="cmd=unfreeze&page=";
	} else { 
		$frz = "unfreeze.png";
		$color="red";
		$cmd="cmd=freeze&page=";
	}
	
	$str  = '   <li><a href="'.$href.$cmd.$r_page.'">';
	$str .= '<img style="background-color:'.$color.';" src="./image/'.$frz.'" border="0">';
	$str .= '</a><a href="' . $href . $r_page . '">' .$s_page . '</a>' . $passage;
	
	if ($withfilename) {
		$s_file = htmlspecialchars($file);
		$str .= "\n" . '    <ul><li>' . $s_file . '</li></ul>' ."\n" . '   ';
	}
	$str .= '</li>';
	//******************追記************************

		// WARNING: Japanese code hard-wired
ウィキ募集バナー