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

📄 new.php

📁 php做的wap论坛 有详细说明在readme中
💻 PHP
字号:
<?php
require_once("variable.php");
echo $WmlDeclare;
$nav = "<a href='./?session=$session'>首页</a><br/>";
if($_GET[action]=="newreply"){
	$nn = "回复";
}else{
	$nn = "文章";
}
?>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
</head>
<card id="thread" title="最新帖子<?php echo $nn;?>">
<p align="left">
<?php
echo $nav;
if($_GET[action]=="newreply"){
	$query = mysql_query("select tid,fid,author,lastposter,subject,from_unixtime(postdate) as postdate,hits,replies from ".$dbTablePx."threads where ifcheck=1 and locked=0 and replies>0 $nodisstr order by lastpost desc limit 20");
	while($row = mysql_fetch_array($query)){
		echo "<small><a href='read.php?tid=$row[tid]&amp;fid=$row[fid]&amp;session=$session'>".htmlspecialchars($row[subject])."</a>(作者:".htmlspecialchars($row[author]).", $row[postdate], Hit:$row[hits], 回复:".htmlspecialchars($row[lastposter]).", Re:$row[replies])</small><br/>";
	}
}else{
	$query = mysql_query("select tid,fid,author,subject,from_unixtime(postdate) as postdate,hits,replies from ".$dbTablePx."threads where ifcheck=1 and locked=0 and replies=0 $nodisstr order by lastpost desc limit 10");
	while($row = mysql_fetch_array($query)){
		echo "<small><a href='read.php?tid=$row[tid]&amp;fid=$row[fid]&amp;session=$session'>".htmlspecialchars($row[subject])."</a>(作者:".htmlspecialchars($row[author]).", $row[postdate], Hit:$row[hits])</small><br/>";
	}
}
echo $nav;
?>
<small>(C)copyright by <?php echo $siteSign;?></small>
</p>
</card>
</wml>
<?php
LangFlush(ob_get_contents());
?>

⌨️ 快捷键说明

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