main.php

来自「我不介意你怎么用这个程序」· PHP 代码 · 共 38 行

PHP
38
字号
<?php
include("includes/fun_check.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;
$db->execute("SELECT * FROM `".$g_db_prefix."words` WHERE u_ID='".$_SESSION["user_id"]."'");
$words = $db->count();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="includes/main.css">
<title>星雨留言板</title>
</head>

<body>
<table width="100%" border="0" class="tableborder">
  <tr> 
    <th height="20">留言板信息</th>
  </tr>
  <tr> 
    <td height="20">共有留言 <font color="#0099FF"><strong><?php echo $words?></strong></font> 
      条。</td>
  </tr>
  <tr> 
    <td height="20">您的留言板地址: 
      <input name="textfield" type="text" class="textbox" value="<?php echo $g_url;?>index.php?id=<?php echo $_SESSION["user_id"]?>" size="80" onmouseover=this.focus() onfocus=this.select()> 
    </td>
  </tr>
  <tr>
    <td height="20">如果您觉得这个地址不好记,您还可以到 <a href="http://xxiyy.com/sub.php" target="_blank"><font color="#FF0000">=&gt;&gt; 
      这里 &lt;&lt;=</font></a> 申请免费@域名。</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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