Browse code

3.5.6 efiction version

Jimako authored on 2024/03/09 16:09:42
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,42 @@
1
+<?php
2
+// ----------------------------------------------------------------------
3
+// eFiction 3.2
4
+// Copyright (c) 2007 by Tammy Keefer
5
+// Valid HTML 4.01 Transitional
6
+// Based on eFiction 1.1
7
+// Copyright (C) 2003 by Rebecca Smallwood.
8
+// http://efiction.sourceforge.net/
9
+// ----------------------------------------------------------------------
10
+// LICENSE
11
+//
12
+// This program is free software; you can redistribute it and/or
13
+// modify it under the terms of the GNU General Public License (GPL)
14
+// as published by the Free Software Foundation; either version 2
15
+// of the License, or (at your option) any later version.
16
+//
17
+// This program is distributed in the hope that it will be useful,
18
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
+// GNU General Public License for more details.
21
+//
22
+// To read the license please visit http://www.gnu.org/copyleft/gpl.html
23
+// ----------------------------------------------------------------------
24
+
25
+if(!defined("_CHARSET")) exit( );
26
+
27
+$countquery = dbquery(_SERIESCOUNT." WHERE uid = '$uid'");
28
+list($numseries) = dbrow($countquery);
29
+if($numseries) {
30
+	$count = 0;
31
+	$tpl->newBlock("listings");
32
+	$tpl->assign("seriesheader", "<div class='sectionheader'>"._SERIESBY." $penname</div>");
33
+	$seriesquery = dbquery(_SERIESQUERY." AND series.uid = '$uid' LIMIT $offset, $itemsperpage");
34
+	while($stories = dbassoc($seriesquery)) {
35
+		include("includes/seriesblock.php");
36
+	}
37
+	$tpl->gotoBlock("listings");
38
+	if($numseries > $itemsperpage) $tpl->assign("pagelinks", build_pagelinks("viewuser.php?action=seriesby&amp;uid=$uid&amp;", $numseries, $offset));
39
+	$tpl->gotoBlock("_ROOT");
40
+}
41
+else $output .= write_message(_NORESULTS);
42
+?>