| 1 |
<? |
<?php |
| 2 |
require_once "../lib/common.inc.php"; |
require_once "../lib/common.inc.php"; |
| 3 |
require_once "../lib/lml.inc.php"; |
require_once "../lib/lml.inc.php"; |
| 4 |
require_once "./session_init.inc.php"; |
require_once "./session_init.inc.php"; |
| 93 |
<form method="post" id="reg_form" name="reg_form" action="#"> |
<form method="post" id="reg_form" name="reg_form" action="#"> |
| 94 |
<p style="font-weight: bold; font-size: 16px; color: red; font-family: 楷体">新用户注册</p> |
<p style="font-weight: bold; font-size: 16px; color: red; font-family: 楷体">新用户注册</p> |
| 95 |
<p><span id="err_msg_prompt" name="err_msg" style="color: red"></span></p> |
<p><span id="err_msg_prompt" name="err_msg" style="color: red"></span></p> |
| 96 |
<table border="1" cellpadding="10" cellspacing="0" width="700" bgcolor="#ffdead"> |
<table border="1" cellpadding="10" cellspacing="0" width="1050" bgcolor="#ffdead"> |
| 97 |
<tr> |
<tr> |
| 98 |
<td width="26%" align="right"> |
<td width="25%" align="right"> |
| 99 |
用户名 |
用户名 |
| 100 |
</td> |
</td> |
| 101 |
<td width="74%"> |
<td width="75%"> |
| 102 |
<span id="err_msg_username" name="err_msg" style="color: red;"></span><input id="username" name="username" value=""> |
<span id="err_msg_username" name="err_msg" style="color: red;"></span><input id="username" name="username" value=""> |
| 103 |
<font color="red">*</font> |
<font color="red">*</font> |
| 104 |
5-12位英文子母、数字的组合,必须以字母开头,不可更改 |
5-12位英文子母、数字的组合,必须以字母开头,不可更改 |
| 151 |
</td> |
</td> |
| 152 |
<td> |
<td> |
| 153 |
<span id="err_msg_birthday" name="err_msg" style="color: red;"></span><select id="year" name="year" size="1"> |
<span id="err_msg_birthday" name="err_msg" style="color: red;"></span><select id="year" name="year" size="1"> |
| 154 |
<? |
<?php |
| 155 |
$year_current = intval(date("Y", time())); |
$year_current = intval(date("Y", time())); |
| 156 |
$year_max = $year_current - 16; // Accept registrant of 16+ only |
$year_max = $year_current - 16; // Accept registrant of 16+ only |
| 157 |
$year_min = $year_current - 80; |
$year_min = $year_current - 80; |
| 159 |
for ($year = $year_min; $year <= $year_max; $year++) |
for ($year = $year_min; $year <= $year_max; $year++) |
| 160 |
{ |
{ |
| 161 |
?> |
?> |
| 162 |
<option value="<? echo $year; ?>" <? echo ($year == $year_selected ? "selected" : ""); ?>><? echo $year; ?></option> |
<option value="<?= $year; ?>" <?= ($year == $year_selected ? "selected" : ""); ?>><?= $year; ?></option> |
| 163 |
<? |
<?php |
| 164 |
} |
} |
| 165 |
?> |
?> |
| 166 |
|
|
| 167 |
</select>年 |
</select>年 |
| 168 |
<select id="month" name="month" size="1"> |
<select id="month" name="month" size="1"> |
| 169 |
<? |
<?php |
| 170 |
$month_selected = 1; |
$month_selected = 1; |
| 171 |
for ($month = 1; $month <= 12; $month++) |
for ($month = 1; $month <= 12; $month++) |
| 172 |
{ |
{ |
| 173 |
?> |
?> |
| 174 |
<option value="<? echo $month; ?>" <? echo ($month == $month_selected ? "selected" : ""); ?>><? echo $month; ?></option> |
<option value="<?= $month; ?>" <?= ($month == $month_selected ? "selected" : ""); ?>><?= $month; ?></option> |
| 175 |
<? |
<?php |
| 176 |
} |
} |
| 177 |
?> |
?> |
| 178 |
</select>月 |
</select>月 |
| 179 |
<select id="day" name="day" size="1"> |
<select id="day" name="day" size="1"> |
| 180 |
<? |
<?php |
| 181 |
$day_selected = 1; |
$day_selected = 1; |
| 182 |
for ($day = 1; $day <= 31; $day++) |
for ($day = 1; $day <= 31; $day++) |
| 183 |
{ |
{ |
| 184 |
?> |
?> |
| 185 |
<option value="<? echo $day; ?>" <? echo ($day == $day_selected ? "selected" : ""); ?>><? echo $day; ?></option> |
<option value="<?= $day; ?>" <?= ($day == $day_selected ? "selected" : ""); ?>><?= $day; ?></option> |
| 186 |
<? |
<?php |
| 187 |
} |
} |
| 188 |
?> |
?> |
| 189 |
</select>日 |
</select>日 |
| 200 |
</tr> |
</tr> |
| 201 |
<tr> |
<tr> |
| 202 |
<td colspan="2" align="center"> |
<td colspan="2" align="center"> |
| 203 |
<span id="err_msg_agreement" name="err_msg" style="color: red;"></span><textarea rows="15" cols="80"><? |
<span id="err_msg_agreement" name="err_msg" style="color: red;"></span><textarea rows="15" cols="130"><?php |
| 204 |
$buffer = file_get_contents("./doc/license/" . (new DateTime($BBS_license_dt))->format("Ymd") . ".txt"); |
$buffer = file_get_contents("./doc/license/" . (new DateTime($BBS_license_dt))->format("Ymd") . ".txt"); |
| 205 |
echo (LML(htmlspecialchars($buffer, ENT_HTML401, 'UTF-8'), false, false, 1024)); |
echo (LML(htmlspecialchars($buffer, ENT_HTML401, 'UTF-8'), false, false, 1024)); |
| 206 |
?></textarea> |
?></textarea> |
| 227 |
</p> |
</p> |
| 228 |
</form> |
</form> |
| 229 |
</center> |
</center> |
| 230 |
<? |
<?php |
| 231 |
include "./foot.inc.php"; |
include "./foot.inc.php"; |
| 232 |
?> |
?> |
| 233 |
</body> |
</body> |