XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
pda.php
Go to the documentation of this file.
1 <?php
19 include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mainfile.php';
20 
21 header("Content-Type: text/html");
22 echo "<html><head><title>" . htmlspecialchars($xoopsConfig['sitename']) . "</title>
23  <meta name='HandheldFriendly' content='True' />
24  <meta name='PalmComputingPlatform' content='True' />
25  </head>
26  <body>";
27 
28 $sql = "SELECT storyid, title FROM " . $xoopsDB->prefix("stories") . " WHERE published>0 AND published<" . time() . " ORDER BY published DESC";
29 $result = $xoopsDB->query($sql, 10, 0);
30 //TODO Remove this hardcoded string
31 if (!$result) {
32  echo "An error occured";
33 } else {
34  echo "<img src='images/logo.gif' alt='" . htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES) . "' border='0' /><br />";
35  echo "<h2>" . htmlspecialchars($xoopsConfig['slogan']) . "</h2>";
36  echo "<div>";
37  while (list ($storyid, $title) = $xoopsDB->fetchRow($result)) {
38  echo "<a href='" . XOOPS_URL . "/modules/news/print.php?storyid=$storyid'>" . htmlspecialchars($title) . "</a><br />";
39  }
40  echo "</div>";
41 }
42 echo "</body></html>";
43 
44 ?>