notebook.php
来自「make project on java」· PHP 代码 · 共 40 行
PHP
40 行
<?php
include'include/begin.php';
include language();
$pagename_m = $_pagename[35];
$tpl_html = 'notebook';
$reurl='notebook.php';
include'include/main.php';
if (!$username) {
echoerror(62);
}
if ($_GET["type"] == "edit") {
$result = mysql_query("select wordpad from {$db_prefix}address where username='$username'", $myconn);
$row = mysql_fetch_array($result);
$content = htmlspecialchars($row["wordpad"]);
} else if ($_GET["type"] == "post") {
$content = $_POST["content"];
ka($content, 65500);
mysql_query("update {$db_prefix}address set wordpad='$content' where username='$username' " , $myconn);
echoioy(8);
} else {
$result = mysql_query("select wordpad from {$db_prefix}address where username='$username'", $myconn);
$row = mysql_fetch_array($result);
$content = htmlspecialchars($row["wordpad"]);
$content = nl2br($content);
}
if ($_GET['type'] == 'edit') {
$jjx1 = tpl_fun_jjx1(array('content' => $content));
} else {
$jjx2 = tpl_fun_jjx2(array('content' => $content));
}
include_once'./cache/template/m_' . $style_id . '_' . $tpl_html . '.php';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?