p_note.php

来自「make project on java」· PHP 代码 · 共 34 行

PHP
34
字号
<?php
include"include/begin.php";
include"include/p_begin.php";
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];
    forumpurview();
    include language();
    $userp3[3]?null : echoerror(78);
} else {
    $p_result = mysql_query("select * from {$db_prefix}posts where id='$id'", $myconn);
    $post = mysql_fetch_array($p_result);
    $p_result = mysql_query("select * from {$db_prefix}title where cid='$post[tid]'", $myconn);
    $sub = mysql_fetch_array($p_result);
    $fid = $sub["fid"];
    forumpurview();
    include language();
    $userp3[3]?null : echoerror(78);
} 

$userp3[2]?null : echoerror(0);
@mysql_query("update {$db_prefix}posts set  review='' where id='$id'", $myconn);
event($fid, 14, $id, "");

echoioy(35);

?>

⌨️ 快捷键说明

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