Ai
5 Star 9 Fork 0

Gitee 极速下载/xoops

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/XOOPS/XoopsCore
克隆/下载
pda.php 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
mambax7 提交于 2018-03-16 16:36 +08:00 . Assignment in Condition
<?php
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
* XOOPS PDA for news
*
* @copyright XOOPS Project (http://xoops.org)
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @package core
* @since 2.0.0
* @version $Id$
*/
include __DIR__ . '/mainfile.php';
$xoops_url = \XoopsBaseConfig::get('url');
header("Content-Type: text/html");
echo "<html><head><title>" . htmlspecialchars($xoops->getConfig('sitename')) . "</title>
<meta name='HandheldFriendly' content='True' />
<meta name='PalmComputingPlatform' content='True' />
</head>
<body>";
$sql = "SELECT storyid, title FROM " . $xoopsDB->prefix("stories") . " WHERE published>0 AND published<" . time() . " ORDER BY published DESC";
$result = $xoopsDB->query($sql, 10, 0);
//TODO Remove this hardcoded string
if (!$result) {
echo "An error occured";
} else {
echo "<img src='images/logo.gif' alt='" . htmlspecialchars($xoops->getConfig('sitename'), ENT_QUOTES) . "' border='0' /><br />";
echo "<h2>" . htmlspecialchars($xoops->getConfig('slogan')) . "</h2>";
echo "<div>";
while (false !== (list ($storyid, $title) = $xoopsDB->fetchRow($result))) {
echo "<a href='" . $xoops_url . "/modules/news/print.php?storyid={$storyid}'>" . htmlspecialchars($title) . "</a><br />";
}
echo "</div>";
}
echo "</body></html>";
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mirrors/xoops.git
git@gitee.com:mirrors/xoops.git
mirrors
xoops
xoops
master

搜索帮助