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,55 @@
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,bridges
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
+
24
+if(!defined("_CHARSET")) exit( );
25
+
26
+		$output .= build_alphalinks($pagelink, $let);
27
+		$count = dbquery($countquery);
28
+		list($numrows)= dbrow($count);
29
+		$limit = $itemsperpage *  $displaycolumns;
30
+		$total = ($numrows > $limit ? $limit : $numrows);
31
+		$listtotal = floor($total /  $displaycolumns);
32
+		if($total % $displaycolumns != 0) $listtotal++;
33
+		$colwidth = (100/ $displaycolumns) -1;
34
+		$count = 0;
35
+		$column = 1;
36
+		$authorquery = $authorquery. " ORDER BY "._PENNAMEFIELD." LIMIT $offset,$limit";
37
+		$result2 = dbquery($authorquery);
38
+		$output .= "<div id=\"columncontainer\"><div id=\"memberblock\">".($displaycolumns ? "<div class=\"column\">" : "");
39
+		while($author = dbassoc($result2)) {
40
+			$count++;
41
+			if(empty($author['stories'])) $author['stories'] = 0; // For bridges site that may not have author prefs set.
42
+			$output .= (isset($authorlink) ? $authorlink : "<a href=\"viewuser.php?uid=").$author['uid']."\">".stripslashes($author['penname'])."</a> [".$author['stories']."]<br />\n";
43
+			if( $count >= $listtotal && $column != $displaycolumns) {
44
+				$output .= "</div><div class=\"column\">";
45
+				if($total % $displaycolumns == $column) $listtotal--;
46
+				$column++;
47
+				$count = 0;
48
+			}
49
+		}
50
+		$output .= "</div>".($displaycolumns ? "</div>" : "")."<div class='cleaner'>&nbsp;</div></div>";
51
+		if ($numrows > $limit) {
52
+			$pagelink = $pagelink ? $pagelink : "authors.php?action=viewlist&amp;".($let ? "let={$let}&amp;" : "");
53
+			$output .= build_pagelinks($pagelink, $numrows, $offset, $displaycolumns);
54
+		}
55
+?>
0 56
\ No newline at end of file