📄 post.php
字号:
<?php
include("includes/fun_post.php");
include("includes/fun_data.php");
include("includes/inc_var.php");
DB($g_db_host, $g_db_name, $g_db_user, $g_db_password);
$db = new DBReader;
if(empty($_POST["mail"]))
$mail = "NULL";
else
$mail = "'".h2t($_POST["mail"])."'";
if(empty($_POST["QQ"]))
$qq = "NULL";
else
$qq = "'".h2t($_POST["QQ"])."'";
if(empty($_POST["web"])||($_POST["web"]=="http://"))
$web = "NULL";
else
$web = "'".h2t($_POST["web"])."'";
$db->execute("INSERT INTO `".$g_db_prefix."words` ( `w_ID` , `u_ID` , `w_title` , `w_content` , `w_IP` , `w_mail` , `w_QQ` , `w_web` , `w_head` , `w_date` , `w_name` , `w_re` ) VALUES ('', '".$_POST["id"]."', '".h2t($_POST["title"])."', '".h2t($_POST["content"])."', '".getenv ("REMOTE_ADDR")."', ".$mail.", ".$qq.", ".$web.", '".$_POST["head"]."', '".date("Y-m-d H:i:s")."', '".h2t($_POST["name"])."', NULL);");
echo "<script language='javascript'>self.location='index.php?id=".$_POST["id"]."';</script>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -