📄 post.php
字号:
}
if (($sub['recommend'] == 2 || $sub['recommend'] == 3) && !$userp2[9]) {
echoerror(115);
}
if (!$userp3[18]) {
if ($sub[author] != $username) {
echoerror(107);
}
if (($time - $sub[posttime]) > $userp1[3] * 60) {
echoerror(108);
}
}
if ($sub[author] == $username) {
$toauthoract = 'display: none;';
}
$subhtmlact = $userp3[32]?'' : 'display: none;';
$subhtmllock = $sub[html]?'checked' : null;
$subact = null;
$colortab = $userp3[30]?'' : 'display: none;';
$htmlact = $userp3[33]?'' : 'display: none;';
$lock[0] = $htmlt[0]?'checked' : null;
$lock[1] = $htmlt[1]?'checked' : null;
$lock[2] = $htmlt[2]?'checked' : null;
$lock[3] = $htmlt[3]?'checked' : null;
$lock[4] = $htmlt[4]?'checked' : null;
$eliteact = $userp3[21]?'' : 'display: none;';
$elitelock = $sub[elite]?'checked' : '';
$lockact = $userp3[20]?'': 'display: none;';
$locklock = $sub[locks]?'checked' : '';
$userp3[23] || $userp3[24] || $userp3[25] || $userp3[26] || $userp3[27] || $userp3[28]?$tupdown = 1: $tupdown = 0;
$fre = ($userp3[10] || $userp2[9])?1 : 0;
$moneytype = $sub['moneytype'] > 0?'' : 'checked';
$money_xs = $sub['money'];
$money_xs_e = '';
$wtpl[$sub['tpl']]='selected ="selected"';
} else {
$p_result = mysql_query("select * from {$db_prefix}posts where id='$id'", $myconn);
$post = mysql_fetch_array($p_result);
$htmlt = explode("|", $post["html"]);
$p_result = mysql_query("select * from {$db_prefix}title where cid='$post[tid]'", $myconn);
$sub = mysql_fetch_array($p_result);
$fid = $sub['fid'];
if ($sub['updown'] == 2 || $sub['updown'] == 3 || $sub['updown'] == 5 || $sub['updown'] == 6) {
$bbsmessagefix = 1;
}
$sign = $post['sign'];
forumpurview();
include language();
$pagename_m = $_pagename[14];
include'include/main.php';
$userp3[3]?null : echoerror(78);
if ($post['state'] == 0 && !$userp3[18]) {
echoerror(104);
}
if ($sub['state'] == 0 && !$userp3[18]) {
echoerror(4);
}
if (!$userp3[18]) {
if ($post[author] != $username) {
echoerror(107);
}
if (($time - $post[posttime]) > $userp1[3] * 60) {
echoerror(108);
}
}
$moneyact = 'display: none;';
if ($post[author] == $username) {
$toauthoract = 'display: none;';
}
$subhtmlact = 'display: none;';
$subhtmllock = $sub[html]?'checked': null;
$noteact = $userp3[2]?'' : 'display: none;';
$subact = 'readonly';
$colortab = $userp3[30]?'' : 'display: none;';
$htmlact = $userp3[33]?'' : 'display: none;';
$lock[0] = $htmlt[0]?'checked' : null;
$lock[1] = $htmlt[1]?'checked' : null;
$lock[2] = $htmlt[2]?'checked' : null;
$lock[3] = $htmlt[3]?'checked' : null;
$lock[4] = $htmlt[4]?'checked' : null;
$eliteact = 'display: none;';
$elitelock = '';
$lockact = 'display: none;';
$locklock = '';
$tupdown = 0;
$fre = 0;
}
} else {
echoerror(0);
}
if ($tupdown) {
$jjx1 = tpl_fun_jjx1(array('up1a' => $userp3[23]?'' : '<!--', 'up2a' => $userp3[24]?'' : '<!--', 'up3a' => $userp3[25]?'' : '<!--', 'up4a' => $userp3[26]?'' : '<!--', 'up5a' => $userp3[27]?'' : '<!--', 'up6a' => $userp3[28]?'' : '<!--', 'up1b' => $userp3[23]?'' : '-->', 'up2b' => $userp3[24]?'' : '-->', 'up3b' => $userp3[25]?'' : '-->', 'up4b' => $userp3[26]?'' : '-->', 'up5b' => $userp3[27]?'' : '-->', 'up6b' => $userp3[28]?'' : '-->', 'updownt' . $sub['updown'] => 'font-weight: bold;', 'u' . $sub['updown'] => 'selected ="selected"'));
}
if ($fre) {
$jjx2 = tpl_fun_jjx2(array('fre1a' => $userp3[10]?'' : '<!--', 'fre2a' => $userp2[9]?'' : '<!--', 'fre1b' => $userp3[10]?'' : '-->', 'fre2b' => $userp2[9]?'' : '-->' , 'fref' . $sub['recommend'] => 'font-weight: bold;', 'freu' . $sub['recommend'] => 'selected ="selected"'));
}
if ($fmove) {
$forumlist = '';
foreach($wkf as $val) {
$forumlist .= '<option value="' . $val . '">' . $forumnames[$val] . '</option>';
}
$jjx3 = tpl_fun_jjx3(array('forumlist' => $forumlist));
}
if ($wcopy) {
$wlist = '';
if ($wid>0)
{
foreach($bup as $key => $val) {
$wlist.='<optgroup label="'.$forumnames[$key].'">';
foreach($val as $val2) {
$wlist.='<option value="' . $val2 . '" ' . $wtypesel[$val2] . '>' . $forumnames[$val2] . '</option>';
if (isset($cup[$val2])){
foreach($cup[$val2] as $val3) {
$wlist.='<option value="' . $val3 . '" ' . $wtypesel[$val3] . '> ' . $forumnames[$val3] . '</option>';
}
}
}
$wlist.='</optgroup>';
}
}else{
foreach($whnpe as $key => $val) {
if (is_array($val)){
$wlist.='<optgroup label="'.$wname[$key].'">';
foreach($val as $val2) {
$wlist .= '<option value="' . $val2 . '" ' . $wtypesel[$val2] . '>' . $wname[$val2] . '</option>';
}
$wlist.='</optgroup>';
}else{
$wlist .= '<option value="' . $key . '" ' . $wtypesel[$key] . '>' . $wname[$key] . '</option>';
}
}
}
$jjx4 = tpl_fun_jjx4(array('faf'=>$faf,'fbf'=>$fbf,'wlist' => $wlist, 'wauthor' => $sub['wauthor']),array('wtpl'=>$wtpl));
$wcopycode = '';
} else {
$wcopycode = 'display: none;';
}
if ($userp1[5]) {
$mt = '<input name="gg" type="text" size="5" maxlength="5" />';
} else {
$mt = '<select name="gg" >';
for($i = 0;$i <= $userrank;$i++) {
$mt .= '<option value="' . $i . '" >' . $i . '</option>';
}
$mt .= '</select>';
}
$optiona = $userp1[10]?'' : '<!--';
$optiona_ = $userp1[10]?'' : '-->';
$optionb = $userp1[11]?'' : '<!--';
$optionb_ = $userp1[11]?'' : '-->';
$optionc = $userp1[12]?'' : '<!--';
$optionc_ = $userp1[12]?'' : '-->';
$_disabled=$userp1[8]?'':'disabled="disabled"';
unset($txtlist, $urllist, $filelist, $polllist);
$annexsql = mysql_query("select * from {$db_prefix}annex where sign='$sign'", $myconn);
while ($annex = mysql_fetch_array($annexsql)) {
$temp = ' ';
if ($annex['code'] == 'txt') {
$tks = explode('|', $annex['type']);
if ($tks[0] == "a") {
$temp .= $abc[0] . ':' . $tks[1];
} else
if ($tks[0] == 'b') {
$temp .= $abc[1] . ':' . $tks[1];
} else if ($tks[0] == 'c') {
$temp .= $abc[2] . ':' . $tks[1];
} else {
$temp .= $_p_upload[2];
}
$ta[] = $annex[codedig];
$txtlist .= "<li><A href=\"javascript:void(0)\" onclick=insertText('[ax" . $annex['id'] . "]')>" . htmlspecialchars($annex[title]) . " [ax" . $annex['id'] . "]</A>" . $temp . "\t<input name=delid[] value=" . $annex['id'] . " type=checkbox />" . $_p_upload[3] . "\t".$_p_upload[4].'<input name="downid['.$annex['id'].']" type="text" '.$_disabled.' value="'.$annex['downnum'].'" size="7" maxlength="7" /></li>';
} elseif ($annex['code'] == 'url') {
$tks = explode('|', $annex['type']);
if ($tks[0] == "a") {
$temp .= $abc[0] . ':' . $tks[1];
} else if ($tks[0] == 'b') {
$temp .= $abc[1] . ':' . $tks[1];
} else if ($tks[0] == 'c') {
$temp .= $abc[2] . ":" . $tks[1];
} else {
$temp .= $_p_upload[2];
}
$ua[] = $annex[codedig];
$urllist .= "<li><A href=\"javascript:void(0)\" onclick=insertText('[ax" . $annex['id'] . "]')>" . htmlspecialchars($annex[title]) . " [ax" . $annex['id'] . "]</A>" . $temp . "\t<input name=delid[] value=" . $annex['id'] . " type=checkbox />" . $_p_upload[3] . "\t".$_p_upload[4].'<input name="downid['.$annex['id'].']" type="text" '.$_disabled.' value="'.$annex['downnum'].'" size="7" maxlength="7" /></li>';
} elseif ($annex['code'] == 'file') {
$tks = explode('|', $annex['type']);
if ($tks[0] == 'a') {
$temp .= $abc[0] . ':' . $tks[1];
} else if ($tks[0] == 'b') {
$temp .= $abc[1] . ':' . $tks[1];
} else if ($tks[0] == 'c') {
$temp .= $abc[2] . ':' . $tks[1];
} else {
$temp .= $_p_upload[2];
}
$fa[] = $annex['codedig'];
$filelist .= "<li><A href=\"javascript:void(0)\" onclick=insertText('[ax" . $annex['id'] . "]')>" . htmlspecialchars($annex[title]) . " [ax" . $annex['id'] . "]</A>" . $temp . "\t<input name=delid[] value=" . $annex['id'] . " type=checkbox />" . $_p_upload[3] . "\t".$_p_upload[4].'<input name="downid['.$annex['id'].']" type="text" '.$_disabled.' value="'.$annex['downnum'].'" size="7" maxlength="7" /></li>';
} elseif ($annex['code'] == 'poll') {
$temp .= $annex["type"]?$_p_upload[1]: $_p_upload[0];
$pa[] = $annex[codedig];
$polllist .= "<li><A href=\"javascript:void(0)\" onclick=insertText('[ax" . $annex['id'] . "]')>" . htmlspecialchars($annex[title]) . " [ax" . $annex['id'] . "]</A>" . $temp . "\t<input name=delid[] value=" . $annex['id'] . " type=checkbox />" . $_p_upload[3] . "</li>";
}
}
$codelist = $txtlist . $urllist . $filelist . $polllist;
$userrank = rank($user['postnum'], $user[a], $user[b], $user[c]);
$boxid = 0;
if ($user['emote']) {
$emotea = explode('|', $user['emote']);
$i = 0;
foreach($emotea as $val) {
if ($boxid >=$emotenumpage) {
continue;
}
if ($val > $emotenum) {
continue;
}
$i++;
$jjx7 .= tpl_fun_jjx7(array('id' => $val, 'imagedir' => $imagedir));
if ($i >= $emotepage) {
$jjx5 .= tpl_fun_jjx5(array('boxid' => $boxid, 'page' => $boxid + 1));
$jjx6 .= tpl_fun_jjx6(array('display' => $boxid?'none' : 'block', 'jjx7' => $jjx7));
$boxid++;
$i = 0;
$jjx7 = '';
}
}
if ($jjx7 != '') {
$jjx5 .= tpl_fun_jjx5(array('boxid' => $boxid, 'page' => $boxid + 1));
$jjx6 .= tpl_fun_jjx6(array('display' => $boxid?'none' : 'block', 'jjx7' => $jjx7));
$boxid++;
}
}
$jjx7 = '';
for($i = 1;$i <= $emotenum && $boxid <$emotenumpage;$i++) {
$jjx7 .= tpl_fun_jjx7(array('id' => $i, 'imagedir' => $imagedir));
if ($i % $emotepage == 0) {
$jjx5 .= tpl_fun_jjx5(array('boxid' => $boxid, 'page' => $boxid + 1));
$jjx6 .= tpl_fun_jjx6(array('display' => $boxid?'none' : 'block', 'jjx7' => $jjx7));
$jjx7 = '';
$boxid++;
}
}
if ($jjx7 != '') {
$jjx5 .= tpl_fun_jjx5(array('boxid' => $boxid, 'page' => $boxid + 1));
$jjx6 .= tpl_fun_jjx6(array('display' => $boxid?'none' : 'block', 'jjx7' => $jjx7));
}
$sub['title'] = htmlspecialchars($sub['title']);
if (SERVER_GHO) $post['content'] = str_replace('WEBURL', SERVER_NAME, $post['content']);
$post['content'] = htmlspecialchars($post['content']);
$upfiletype = @implode(',', $upfiletype);
$upb = $userp1[20] * 1024;
$aup = $v_aid;
$titlefont = $subcolora[$sub['titlefont']];
$title = $sub['title'];
$content = $post['content'] . $quote_text;
$tcolor = $sub['titlefont'];
$maxz = $userp1[20];
$_GET['type']=0;
include_once'./cache/template/m_' . $style_id . '_' . $tpl_html . '.php';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -