$maxLogSizeSt = P2Util::getTranslatedUnitFileSize($maxLogSize); if ($maxLogSize and $res_hist_dat_size > $maxLogSize) { P2Util::printSimpleHtml(sprintf('書き込みログ容量(%s/%s)が大き過ぎるため、表\示できません。<br> %sのページより、書き込みログの一括削除を行って下さい。', hs($logSizeSt), hs($maxLogSizeSt), P2View::tagA($_conf['editpref_php'], hs('設定管理'), array('target' => 'subject')))); exit; } if (false === ($datlines = file($_conf['p2_res_hist_dat']))) { p2die('書き込み履歴ログファイルを読み込めませんでした'); } elseif (!$datlines) { P2Util::printSimpleHtml($karappoMsgHtml); exit; } // ファイルの下に記録されているものが新しいので反転させる $datlines = array_reverse($datlines); $datlines_num = count($datlines); $ResHist = new ResHist(); // HTMLプリント用変数 $toolbar_ht = <<<EOP \tチェックした項目を<input type="submit" name="submit" value="{$deletemsg_st}"> \t全てのチェックボックスを \t<input type="button" onclick="hist_checkAll(true)" value="選択"> \t<input type="button" onclick="hist_checkAll(false)" value="解除"> EOP; $hr = P2View::getHrHtmlK(); //================================================================== // ヘッダHTML表示 //================================================================== //P2Util::headerNoCache(); P2View::printDoctypeTag(); ?> <html lang="ja">
// データPHP形式(p2_res_hist.dat.php, タブ区切り)の書き込み履歴を、dat形式(p2_res_hist.dat, <>区切り)に変換する P2Util::transResHistLogPhpToDat(); //====================================================================== // メイン //====================================================================== //================================================================== // 特殊DAT読み //================================================================== // 読み込んで if (!($datlines = FileCtl::file_read_lines($_conf['res_hist_dat'], FILE_IGNORE_NEW_LINES))) { echo '<html><head><title>', $ptitle, '</title></head>', '<body><p>書き込み履歴内容は空っぽのようです</p></body></html>'; exit; } // ファイルの下に記録されているものが新しい $datlines = array_reverse($datlines); $aResHist = new ResHist(); $aResHist->readLines($datlines); // HTMLプリント用変数 $htm['checkall'] = '全てのチェックボックスを <input type="button" onclick="hist_checkAll(true)" value="選択"> <input type="button" onclick="hist_checkAll(false)" value="解除">'; $htm['toolbar'] = <<<EOP チェックした項目を<input type="submit" name="submit" value="{$deletemsg_st}"> {$htm['checkall']} EOP; //================================================================== // ヘッダ 表示 //================================================================== //P2Util::header_nocache(); echo $_conf['doctype']; echo <<<EOP