Browse code

reductant files

Jimako authored on 2024/04/14 11:39:13
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,45 +0,0 @@
1
-<?php
2
-// ----------------------------------------------------------------------
3
-// Copyright (c) 2007 by Tammy Keefer
4
-// Also Like Module developed for eFiction 3.0
5
-// // http://efiction.hugosnebula.com/
6
-// ----------------------------------------------------------------------
7
-// LICENSE
8
-//
9
-// This program is free software; you can redistribute it and/or
10
-// modify it under the terms of the GNU General Public License (GPL)
11
-// as published by the Free Software Foundation; either version 2
12
-// of the License, or (at your option) any later version.
13
-//
14
-// This program is distributed in the hope that it will be useful,
15
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
-// GNU General Public License for more details.
18
-//
19
-// To read the license please visit http://www.gnu.org/copyleft/gpl.html
20
-// ----------------------------------------------------------------------
21
-
22
-if(!defined("_CHARSET")) exit( );
23
-if(file_exists(_BASEDIR."modules/storyend/languages/{$language}.php")) include_once(_BASEDIR."modules/storyend/languages/{$language}.php");
24
-else include_once(_BASEDIR."modules/storyend/languages/en.php");
25
-
26
-$storyinfo = dbassoc(dbquery(_STORYQUERY." AND sid = '$sid'"));
27
-	$output .= "<div id=\"pagetitle\">".sprintf(_AL_BROWSE, title_link($storyinfo))."</div>";
28
-$favquery = dbquery("SELECT uid FROM ".TABLEPREFIX."fanfiction_favorites WHERE item = '$sid' AND type = 'ST'");
29
-$favcount = dbnumrows($favquery);
30
-if($favcount > 0) {
31
-	while($favau = dbassoc($favquery)) {
32
-		$authlist[] = $favau['uid'];
33
-	}
34
-	$authlist = implode(",", $authlist);
35
-}
36
-	$alquery = dbquery("SELECT item FROM ".TABLEPREFIX."fanfiction_favorites WHERE type = 'ST' AND FIND_IN_SET(uid, '$authlist') > 0 AND item != '$sid' GROUP BY item");
37
-	while($al = dbassoc($alquery)){
38
-		$alist[] = $al['item'];
39
-	}
40
-	$alist = isset($alist) ? implode(",", $alist) : array( );
41
-	$searchVars['sid'] = $sid;
42
-	$storyquery .= " AND FIND_IN_SET(sid, '$alist') > 0 ";
43
-	$countquery .= " AND FIND_IN_SET(sid, '$alist') > 0 ";
44
-	$numrows = search(_STORYQUERY.$storyquery, _STORYCOUNT.$countquery, "browse.php?type=alsolike&amp;sid=$sid&amp;");
45
-?>
46 0
\ No newline at end of file
Browse code

backup

Jimako authored on 2024/04/13 04:14:24
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,45 @@
1
+<?php
2
+// ----------------------------------------------------------------------
3
+// Copyright (c) 2007 by Tammy Keefer
4
+// Also Like Module developed for eFiction 3.0
5
+// // http://efiction.hugosnebula.com/
6
+// ----------------------------------------------------------------------
7
+// LICENSE
8
+//
9
+// This program is free software; you can redistribute it and/or
10
+// modify it under the terms of the GNU General Public License (GPL)
11
+// as published by the Free Software Foundation; either version 2
12
+// of the License, or (at your option) any later version.
13
+//
14
+// This program is distributed in the hope that it will be useful,
15
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+// GNU General Public License for more details.
18
+//
19
+// To read the license please visit http://www.gnu.org/copyleft/gpl.html
20
+// ----------------------------------------------------------------------
21
+
22
+if(!defined("_CHARSET")) exit( );
23
+if(file_exists(_BASEDIR."modules/storyend/languages/{$language}.php")) include_once(_BASEDIR."modules/storyend/languages/{$language}.php");
24
+else include_once(_BASEDIR."modules/storyend/languages/en.php");
25
+
26
+$storyinfo = dbassoc(dbquery(_STORYQUERY." AND sid = '$sid'"));
27
+	$output .= "<div id=\"pagetitle\">".sprintf(_AL_BROWSE, title_link($storyinfo))."</div>";
28
+$favquery = dbquery("SELECT uid FROM ".TABLEPREFIX."fanfiction_favorites WHERE item = '$sid' AND type = 'ST'");
29
+$favcount = dbnumrows($favquery);
30
+if($favcount > 0) {
31
+	while($favau = dbassoc($favquery)) {
32
+		$authlist[] = $favau['uid'];
33
+	}
34
+	$authlist = implode(",", $authlist);
35
+}
36
+	$alquery = dbquery("SELECT item FROM ".TABLEPREFIX."fanfiction_favorites WHERE type = 'ST' AND FIND_IN_SET(uid, '$authlist') > 0 AND item != '$sid' GROUP BY item");
37
+	while($al = dbassoc($alquery)){
38
+		$alist[] = $al['item'];
39
+	}
40
+	$alist = isset($alist) ? implode(",", $alist) : array( );
41
+	$searchVars['sid'] = $sid;
42
+	$storyquery .= " AND FIND_IN_SET(sid, '$alist') > 0 ";
43
+	$countquery .= " AND FIND_IN_SET(sid, '$alist') > 0 ";
44
+	$numrows = search(_STORYQUERY.$storyquery, _STORYCOUNT.$countquery, "browse.php?type=alsolike&amp;sid=$sid&amp;");
45
+?>
0 46
\ No newline at end of file