Exemple #1
0
    echo "</td>";
    // }}}
    // {{{ PC - あぼーんワード編集
    echo "<td>\n\n";
    echo <<<EOP
<fieldset>
<legend>あぼーんワード編集</legend>

EOP;
    _printEditFileHtml($aborn_name_txt, "名前");
    echo $sepa;
    _printEditFileHtml($aborn_mail_txt, "メール");
    echo $sepa;
    _printEditFileHtml($aborn_msg_txt, "メッセージ");
    echo $sepa;
    _printEditFileHtml($aborn_id_txt, "&nbsp;ID&nbsp;");
    echo <<<EOP
</fieldset>

EOP;
    ?>
</td></tr><?php 
    // }}}
    ?>
<tr><td colspan="2"><?php 
    echo <<<EOP
<fieldset>
<legend>スキン</legend>

EOP;
    _printSkinSelectFormHtml($_conf['skin_setting_path'], '変更');
Exemple #2
0
$encode = geti($_POST['encode']);
$rows = isset($_POST['rows']) ? intval($_POST['rows']) : 36;
$cols = isset($_POST['cols']) ? intval($_POST['cols']) : 128;
isset($_POST['filecont']) and $filecont = $_POST['filecont'];
// 前処理
// 書き込めるファイルを限定する
_checkWritableFiles($path);
// void|exit
// メイン
if (isset($filecont)) {
    if (_setFile($path, $filecont, $encode)) {
        P2Util::pushInfoHtml("saved, OK.");
    }
}
// 表示
_printEditFileHtml($path, $encode);
exit;
// 処理はここまで
//=========================================================
// 関数(このファイル内でのみ利用)
//=========================================================
/**
 * @return  void|exit
 */
function _checkWritableFiles($path)
{
    $writable_files = array('p2_aborn_res.txt');
    if ($writable_files and !in_array(basename($path), $writable_files)) {
        $i = 0;
        foreach ($writable_files as $afile) {
            if ($i != 0) {