| ... | ... |
@@ -27,7 +27,7 @@ if (isset($pagelinks['rss'])) |
| 27 | 27 |
$output .= "<div id=\"pagetitle\">" . ($recentdays ? _RECENTSTORIES : _MOSTRECENT) . " " . $pagelinks['rss']['link'] . "</div>"; |
| 28 | 28 |
} |
| 29 | 29 |
else {
|
| 30 |
- $output .= "<div id=\"pagetitle\">" . ($recentdays ? _RECENTSTORIES : _MOSTRECENT); |
|
| 30 |
+ $output .= "<div id=\"pagetitle\">" . ($recentdays ? _RECENTSTORIES : _MOSTRECENT) . "</div>";; |
|
| 31 | 31 |
} |
| 32 | 32 |
|
| 33 | 33 |
|
| ... | ... |
@@ -22,7 +22,14 @@ |
| 22 | 22 |
// ---------------------------------------------------------------------- |
| 23 | 23 |
if(!defined("_CHARSET")) exit( );
|
| 24 | 24 |
|
| 25 |
-$output .= "<div id=\"pagetitle\">".($recentdays ? _RECENTSTORIES : _MOSTRECENT)." ".$pagelinks['rss']['link']."</div>"; |
|
| 25 |
+if (isset($pagelinks['rss'])) |
|
| 26 |
+{
|
|
| 27 |
+ $output .= "<div id=\"pagetitle\">" . ($recentdays ? _RECENTSTORIES : _MOSTRECENT) . " " . $pagelinks['rss']['link'] . "</div>"; |
|
| 28 |
+} |
|
| 29 |
+else {
|
|
| 30 |
+ $output .= "<div id=\"pagetitle\">" . ($recentdays ? _RECENTSTORIES : _MOSTRECENT); |
|
| 31 |
+} |
|
| 32 |
+ |
|
| 26 | 33 |
|
| 27 | 34 |
$update_date = time() - $recentdays * 24 * 60 * 60; |
| 28 | 35 |
$countquery .= ($recentdays ? " AND updated > '" . $update_date . "'" : ""); |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,31 @@ |
| 1 |
+<?php |
|
| 2 |
+// ---------------------------------------------------------------------- |
|
| 3 |
+// Copyright (c) 2007 by Tammy Keefer |
|
| 4 |
+// Valid HTML 4.01 Transitional |
|
| 5 |
+// Based on eFiction 1.1 |
|
| 6 |
+// Copyright (C) 2003 by Rebecca Smallwood. |
|
| 7 |
+// http://efiction.sourceforge.net/ |
|
| 8 |
+// ---------------------------------------------------------------------- |
|
| 9 |
+// LICENSE |
|
| 10 |
+// |
|
| 11 |
+// This program is free software; you can redistribute it and/or |
|
| 12 |
+// modify it under the terms of the GNU General Public License (GPL) |
|
| 13 |
+// as published by the Free Software Foundation; either version 2 |
|
| 14 |
+// of the License, or (at your option) any later version. |
|
| 15 |
+// |
|
| 16 |
+// This program is distributed in the hope that it will be useful, |
|
| 17 |
+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 18 |
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 19 |
+// GNU General Public License for more details. |
|
| 20 |
+// |
|
| 21 |
+// To read the license please visit http://www.gnu.org/copyleft/gpl.html |
|
| 22 |
+// ---------------------------------------------------------------------- |
|
| 23 |
+if(!defined("_CHARSET")) exit( );
|
|
| 24 |
+ |
|
| 25 |
+$output .= "<div id=\"pagetitle\">".($recentdays ? _RECENTSTORIES : _MOSTRECENT)." ".$pagelinks['rss']['link']."</div>"; |
|
| 26 |
+ |
|
| 27 |
+$update_date = time() - $recentdays * 24 * 60 * 60; |
|
| 28 |
+$countquery .= ($recentdays ? " AND updated > '" . $update_date . "'" : ""); |
|
| 29 |
+$query = $storyquery . ($recentdays ? " AND updated > '" . $update_date . "'" : ""); |
|
| 30 |
+$query .= " ORDER BY ".(isset($_REQUEST['sort']) && $_REQUEST['sort'] == "alpha" ? "stories.title" : "updated DESC"); |
|
| 31 |
+$numrows = search(_STORYQUERY.$query, _STORYCOUNT.$countquery, "browse.php?"); |