GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — p2-php/post_form.php at master · thermon/p2-php Expand file tree/ Copy pathpost_form.phpMore file actions 140 lines (114 loc) · 4.04 KB / Copy pathpost_form.phpFile metadata and controls140 lines (114 loc) · 4.04 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 <?php /** * rep2 - レス書き込みフォーム */ require_once './conf/conf.inc.php'; $_login->authorize(); // ユーザ認証 //================================================== // 変数 //================================================== if (empty($_GET['host'])) { // 引数エラー p2die('host が指定されていません'); } else { $host = $_GET['host']; } $bbs = isset($_GET['bbs']) ? $_GET['bbs'] : ''; $key = isset($_GET['key']) ? $_GET['key'] : ''; $rescount = isset($_GET['rescount']) ? intval($_GET['rescount']) : 1; $popup = isset($_GET['popup']) ? intval($_GET['popup']) : 0; $itaj = P2Util::getItaName($host, $bbs); if (!$itaj) { $itaj = $bbs; } $ttitle_en = isset($_GET['ttitle_en']) ? $_GET['ttitle_en'] : ''; $ttitle = (strlen($ttitle_en) > 0) ? base64_decode($ttitle_en) : ''; $ttitle_hd = htmlspecialchars($ttitle, ENT_QUOTES); $key_idx = P2Util::idxDirOfHostBbs($host, $bbs) . $key . '.idx'; // フォームのオプション読み込み require_once P2_LIB_DIR . '/post_options_loader.inc.php'; // 表示指定 if (!$_conf['ktai']) { $class_ttitle = ' class="thre_title"'; $target_read = ' target="read"'; $sub_size_at = ' size="40"'; } // {{{ スレ立てなら if (!empty($_GET['newthread'])) { $ptitle = "{$itaj} - 新規スレッド作成"; // machibbs、JBBS@したらば なら if (P2Util::isHostMachiBbs($host) or P2Util::isHostJbbsShitaraba($host)) { $submit_value = "新規書き込み"; // 2chなら } else { $submit_value = "新規スレッド作成"; } $htm['subject'] = <<<EOP <b><span{$class_ttitle}>タイトル</span></b>:<input type="text" name="subject"{$sub_size_at} value="{$hd['subject']}"><br> EOP; if ($_conf['ktai']) { $htm['subject'] = "<a href=\"{$_conf['subject_php']}?host={$host}&bbs={$bbs}{$_conf['k_at_a']}\">{$itaj}</a><br>".$htm['subject']; } $newthread_hidden_ht = "<input type=\"hidden\" name=\"newthread\" value=\"1\">"; // }}} // {{{ 書き込みなら } else { $ptitle = "{$itaj} - レス書き込み"; $submit_value = "書き込む"; $htm['resform_ttitle'] = <<<EOP <p><b><a{$class_ttitle} href="{$_conf['read_php']}?host={$host}&bbs={$bbs}&key={$key}{$_conf['k_at_a']}"{$target_read}>{$ttitle_hd}</a></b></p> EOP; $newthread_hidden_ht = ''; } // }}} $readnew_hidden_ht = !empty($_GET['from_read_new']) ? '<input type="hidden" name="from_read_new" value="1">' : ''; //========================================================== // HTMLプリント //========================================================== echo $_conf['doctype']; echo <<<EOHEADER <html lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> {$_conf['extra_headers_ht']} <title>{$ptitle}</title>\n EOHEADER; if (!$_conf['ktai']) { echo <<<EOP <link rel="stylesheet" type="text/css" href="css.php?css=style&skin={$skin_en}"> <link rel="stylesheet" type="text/css" href="css.php?css=post&skin={$skin_en}">\n EOP; if ($_conf['expack.editor.dpreview']) { echo "<link rel=\"stylesheet\" href=\"css.php?css=prvw&skin={$skin_en}\" type=\"text/css\">\n"; } echo <<<EOP <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"> <script type="text/javascript" src="js/basic.js?{$_conf['p2_version_id']}"></script> <script type="text/javascript" src="js/post_form.js?{$_conf['p2_version_id']}"></script>\n EOP; } $body_at = ($_conf['ktai']) ? $_conf['k_colors'] : ' onload="setFocus(\'MESSAGE\'); checkSage();"'; echo <<<EOP </head> <body{$body_at}>\n EOP; echo $_info_msg_ht; $_info_msg_ht = ''; // $htm['post_form'] を取得 require_once P2_LIB_DIR . '/post_form.inc.php'; echo $htm['orig_msg']; echo $htm['dpreview']; echo $htm['post_form']; echo $htm['dpreview2']; echo '</body></html>'; /* * Local Variables: * mode: php * coding: cp932 * tab-width: 4 * c-basic-offset: 4 * indent-tabs-mode: nil * End: */ // vim: set syn=php fenc=cp932 ai et ts=4 sw=4 sts=4 fdm=marker: |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |