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

📄 p_mark.php

📁 make project on java
💻 PHP
字号:
<?php
include'include/begin.php';
include'include/p_begin.php';
userp1();
$add = 0;

$tpl_html = 'p_mark';

if (!$username) {
    echoerror(62);
} 
if ($_GET['id']) {
    $id = is_numeric($_GET['id'])?$_GET['id']: echoerror(0);
} 
$p_result = mysql_query("select * from {$db_prefix}title where cid='$id'", $myconn);
if ($sub = mysql_fetch_array($p_result)) {
    $fid = $sub[fid];

    if ($sub["updown"] == 2 || $sub["updown"] == 3 || $sub["updown"] == 5 || $sub["updown"] == 6) {
        $bbsmessagefix = 1;
    } 
    forumpurview();
    include language();
    $pagename_m = $_pagename[37];

    include'include/main.php';
    $userp3[3]?null : echoerror(78);
    if ($sub["state"] == 0 && !$userp3[18]) {
        echoerror(91);
    } 
    if ($user["a"] < $pf0[0] || $user["b"] < $pf0[1] || $user["c"] < $pf0[2]) {
        echoerror(109);
    } 
    if ($username == $sub["author"]) {
        echoerror(110);
    } 
    if (!$userp1[4]) {
        echoerror(111);
    } 
    $result = mysql_query("select * from {$db_prefix}mark where tid='$id'", $myconn);
    if ($mark = mysql_fetch_array($result)) {
        $marks = explode(' ', $mark['user']);
        if (in_array($username, $marks) || !$username) {
            echoerror(112);
        } 
        $add = 1;
    } 
    if (isset($_GET["post"])) {
        
        @mysql_query("update {$db_prefix}members set a=a-$pf0[0],b=b-$pf0[1],c=c-$pf0[2] where username='$username'" , $myconn);
        if ($add) {
            $markuser = $mark["user"] . ' ' . $username;
            ka($markuser, 65000);
            @mysql_query("update {$db_prefix}mark set user='$markuser' where tid='$id'", $myconn);
        } else {
            @mysql_query("insert into {$db_prefix}mark(tid,user) values('$id','$username')", $myconn);
        } 
        if ($_POST["marktype"] == 0) {
            @mysql_query("update {$db_prefix}members set a=a-$pf2[0],b=b-$pf2[1],c=c-$pf2[2] where username='$sub[author]'" , $myconn);
            @mysql_query("update {$db_prefix}title set egg=egg+1 where  cid='$id'", $myconn);
        } else {
            @mysql_query("update {$db_prefix}members set a=a+$pf1[0],b=b+$pf1[1],c=c+$pf1[2] where username='$sub[author]'" , $myconn);
            @mysql_query("update {$db_prefix}title set flo=flo+1 where  cid='$id'", $myconn);
        } 
        echoioy(33);
    } 
} else {
    echoerror(113);
} 


$_GET['type']=0;
$_GET['tpage']=1;
include_once './cache/template/m_' . $style_id . '_' . $tpl_html . '.php';

?>

⌨️ 快捷键说明

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