⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 post.php

📁 make project on java
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php
include'include/begin.php';
if (!$username) {
    echoerror(62);
} 
userp1();

$hid = (int)$_GET['hid'];
$type = $_GET['type'];
$autoct = $userp1[13]?'' : 'display: none;';
$tpage = (int)$_POST['tpage'];
if ($_GET['tpage']<1) $_GET['tpage']++;


$tpl_html = 'post';

$id=(int)$_GET['id'];
$fid=(int)$_GET['fid'];
$wid = (int)$_GET['wid'];
if ($wid>0){
$faf='display: none;';
$fbf='';
}else{
$faf='';
$fbf='display: none;';
}

$js_posttime = 0;

$money_xs_e = 'display: none;';
$moneytype = '';
$lock = array();
unset($sub);

$subcolora = array('', 'skyblue', 'royalblue', 'blue', 'darkblue', 'orange', 'orangered', 'crimson', 'red', 'firebrick', 'darkred', 'green', 'limegreen', 'seagreen', 'teal', 'deeppink', 'tomato', 'coral', 'purple', 'indigo', 'burlywood', 'sandybrown', 'sienna', 'chocolate', 'silver');

if ($type == 'newtopic' && $wid) {
$userp3=NULL;

if (!$userp2[9]) { 
 echoerror(143);       
    } 

$wcopy = 1;

    $_posttime = $time - $user['posttime'];
    if ($_posttime > 0) {
        $_posttime = $userp1[6] - $_posttime;
        $js_posttime = $_posttime > 0?$_posttime : 0;
    } else {
        $js_posttime = -1 * $_posttime + $userp1[6];
    } 

    $sign = sign();
	
if (isset($whype[$wid])) {

$menufile = 'wmenu' . $wid;
    wstyle($t4[$wid]);
    include language();
    include'include/main.php';
    $pagename_n = $wname[$wid];
	$pagename_m = $_pagename[11];
$webnav=$wups[$wid]>0?$wname[$wups[$wid]]:$wname[$wid];
		
} else {
    echoerror(70);
} 	
	
    
    $subhtmlact = 'display: none;';
    $subhtmllock = '';
    $toauthoract = 'display: none;';
    $subact = null;
    $colortab = 'display: none;';
    $htmlact = '';
    $noteact = 'display: none;'; 
    $eliteact = 'display: none;';
	$elitelock = '';
    $lockact = 'display: none;';
    $locklock = '';

	$tupdown = 0;
    $fre = 1;
	$moneyact='display: none;';
	$signact='display: none;';
	
	
} else if ($type == 'newtopic' && $fid) {

    $_posttime = $time - $user['posttime'];
    if ($_posttime > 0) {
        $_posttime = $userp1[6] - $_posttime;
        $js_posttime = $_posttime > 0?$_posttime : 0;
    } else {
        $js_posttime = -1 * $_posttime + $userp1[6];
    } 
    $hid?$fid = $hid: null;
    $sign = sign();
    
    forumpurview();
    include language();
    $pagename_m = $_pagename[11];

    include'include/main.php';
    $userp3[3]?null : echoerror(78);
    $userp3[4]?null : echoerror(11);
    if ($userp2[9]) {
        $wcopy = 1;
    } 
    $subhtmlact = $userp3[32]?'': 'display: none;';
    $subhtmllock = null;
    $toauthoract = 'display: none;';
    $subact = null;
    $colortab = $userp3[30]?'' : 'display: none;';
    $htmlact = $userp3[33]?'' : 'display: none;';
    $noteact = 'display: none;';
    $eliteact = $userp3[21]?'' : 'display: none;';
	$elitelock = '';
    $lockact = $userp3[20]?'' : 'display: none;';
    $locklock = '';
    $userp3[23] || $userp3[24] || $userp3[25] || $userp3[26] || $userp3[27] || $userp3[28]?$tupdown = 1: $tupdown = 0;
    $fre = ($userp3[10] || $userp2[9])?1 : 0;
	
} else if ($type == 'newreply' && $id) {
    $_posttime = $time - $user['posttime'];
    if ($_posttime > 0) {
        $_posttime = $userp1[6] - $_posttime;
        $js_posttime = $_posttime > 0?$_posttime : 0;
    } else {
        $js_posttime = -1 * $_posttime + $userp1[6];
    } 
    $p_result = mysql_query("select * from {$db_prefix}title where cid='$id'", $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 = sign();
    forumpurview();
    include language();
    $pagename_m = $_pagename[12];

    include'include/main.php';
    if ($sub['state'] == 0 && !$userp3[18]) {
        echoerror(1);
    } 
    $userp3[3]?null : echoerror(78);
    $userp3[5]?null : echoerror(12);
    if ($sub['locks']) {
        if (!$userp3[20]) {
            echoerror(13);
        } 
    } 
    if ($sub['lastposttime'] < $time - $reouttime) {
        if (!$userp3[6] && !$sub['wid'] && !$sub['recommend'] && !$sub['elite']) {
            echoerror(14);
        } 
    } 
    $moneyact = 'display: none;';
    $toauthoract = 'display: none;';
    $subhtmlact = 'display: none;';
    $subhtmllock = $sub[html]?'checked' : null;
    $noteact = 'display: none;';
    $subact = 'readonly';
    $colortab = 'display: none;';
    $htmlact = $userp3[33]?'' : 'display: none;';
    $eliteact = 'display: none;';
    $elitelock = '';
    $lockact = 'display: none;';
    $locklock = '';
    $tupdown = 0;
    $fre = 0;
    if (isset($_GET['quote'])) {
        $quote_text = "[quote][b]$_POST[q_f]#  {$_POST[q_author]}[/b]\n{$_POST[q_text]}[/quote]\n\n";
    } 
} else if ($type == 'edit' && $wid) {

$userp3=NULL;
if (!$userp2[9]) {
 echoerror(143);       
    } 
$wcopy = 1;
if (isset($whype[$wid])) {
$menufile = 'wmenu' . $wid;
    wstyle($t4[$wid]);
    include language();
    include'include/main.php';
    $pagename_n = $wname[$wid];
	$pagename_m = $_pagename[13];
$webnav=$wups[$wid]>0?$wname[$wups[$wid]]:$wname[$wid];
		
} else {
    echoerror(70);
} 

    $p_result = mysql_query("select * from {$db_prefix}title where cid='$id' && wid='$wid'", $myconn);
    if ($sub = mysql_fetch_array($p_result)) {
        $fid = $sub['fid'];
        $wtypesel[$fid] = 'selected ="selected"';
        $p_result = mysql_query("select * from {$db_prefix}posts where id='$id'", $myconn);
        $post = @mysql_fetch_array($p_result);
        $sign = $post['sign'];
        $htmlt = explode('|', $post['html']);

        if ($sub['state'] == 0) {
            echoerror(4);
        } 

        if ($sub['author'] == $username) {
            $toauthoract = 'display: none;';
        }
		$noteact = 'display: none;'; 
        $subhtmlact = 'display: none;';
        $subhtmllock = '';
        $subact = null;
        $colortab = 'display: none;';
        $htmlact = '';
        $lock[0] = $htmlt[0]?'checked' : null;
        $lock[1] = $htmlt[1]?'checked' : null;
        $lock[2] = $htmlt[2]?'checked' : null;
        $lock[3] = $htmlt[3]?'checked' : null;
        
        $eliteact = 'display: none;';
        $elitelock = '';
        $lockact = 'display: none;';
        $locklock = '';
        $tupdown = 0;
        $fre = 1;
      
        $moneyact = 'display: none;';
		$signact='display: none;';
		
		$wtpl[$sub['tpl']]='selected ="selected"';
    } else{echoerror(71);} 

} else if ($type == "edit") {
    $p_result = mysql_query("select * from {$db_prefix}title where cid='$id'", $myconn);
    if ($sub = mysql_fetch_array($p_result)) {
        $fid = $sub[fid];
        $wtypesel[$sub['wid']] = "selected =\"selected\"";
        $p_result = mysql_query("select * from {$db_prefix}posts where id='$id'", $myconn);
        $post = @mysql_fetch_array($p_result);
        $sign = $post['sign'];
        $htmlt = explode('|', $post['html']);
      
        forumpurview();
        include language();
        $pagename_m = $_pagename[13];

        include 'include/main.php';
        $userp3[3]?null : echoerror(78);
        $noteact = $userp3[2]?'' : 'display: none;';
        if ($userp2[9]) {
            $wcopy = 1;
        } 
        if ($userp3[19]) {
            $fmove = 1;
        } 
        if ($sub['state'] == 0 && !$userp3[18]) {
            echoerror(4);
        } 
        if ($sub['elite'] && !$userp3[21]) {
            echoerror(2);
        } 
        if ($sub['locks'] && !$userp3[20]) {
            echoerror(106);
        } 
        if ($sub['updown'] == 1 && !$userp3[23]) {
            echoerror(93);
        } 
        if ($sub['updown'] == 2 && !$userp3[24]) {
            echoerror(93);
        } 
        if ($sub['updown'] == 3 && !$userp3[25]) {
            echoerror(93);
        } 
        if ($sub["updown"] == 4 && !$userp3[26]) {
            echoerror(94);
        } 
        if ($sub['updown'] == 5 && !$userp3[27]) {
            echoerror(94);
        } 
        if ($sub['updown'] == 6 && !$userp3[28]) {
            echoerror(94);
        } 
        if ($sub['recommend'] == 1 && !$userp3[10]) {
            echoerror(115);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -