Browse code

reductant files

Jimako authored on 2024/04/14 11:39:13
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,49 +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
-$current = "adminarea";
22
-include ("../../header.php");
23
-
24
-//make a new TemplatePower object
25
-if(file_exists( "$skindir/default.tpl")) $tpl = new TemplatePower("$skindir/default.tpl" );
26
-else $tpl = new TemplatePower(_BASEDIR."default_tpls/default.tpl");
27
-$tpl->assignInclude( "header", "$skindir/header.tpl" );
28
-$tpl->assignInclude( "footer", "$skindir/footer.tpl" );
29
-include(_BASEDIR."includes/pagesetup.php");
30
-include_once(_BASEDIR."languages/".$language."_admin.php");
31
-if(!isADMIN) accessDenied( );
32
-$confirm = isset($_GET['confirm']) ? $_GET['confirm'] : false;
33
-if($confirm == "yes") {
34
-	dbquery("INSERT INTO `".TABLEPREFIX."fanfiction_codeblocks` (`code_text`, `code_type`, `code_module`) VALUES ( 'include(_BASEDIR.\"modules/storyend/storyend.php\");', 'storyend', 'storyend');");
35
-	dbquery("INSERT INTO `".TABLEPREFIX."fanfiction_panels` (`panel_name`, `panel_title`, `panel_url`, `panel_level`, `panel_order`, `panel_hidden`, `panel_type`) VALUES ('alsolike', 'Also Like', 'modules/storyend/alsolike.php', 0, 0, 1, 'B');");
36
-	include("version.php");
37
-	dbquery("INSERT INTO `".TABLEPREFIX."fanfiction_modules`(`version`, `name`) VALUES('$moduleVersion', '$moduleName')");
38
-
39
-	$output = write_message(_ACTIONSUCCESSFUL);
40
-}
41
-else if($confirm == "no") {
42
-	$output = write_message(_ACTIONCANCELLED);
43
-}
44
-else {
45
-	$output = write_message(_CONFIRMINSTALL."<br /><a href='install.php?confirm=yes'>"._YES."</a> "._OR." <a href='install.php?confirm=no'>"._NO."</a>");
46
-}
47
-$tpl->assign("output", $output);
48
-$tpl->printToScreen( );
49
-?>
50 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,49 @@
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
+$current = "adminarea";
22
+include ("../../header.php");
23
+
24
+//make a new TemplatePower object
25
+if(file_exists( "$skindir/default.tpl")) $tpl = new TemplatePower("$skindir/default.tpl" );
26
+else $tpl = new TemplatePower(_BASEDIR."default_tpls/default.tpl");
27
+$tpl->assignInclude( "header", "$skindir/header.tpl" );
28
+$tpl->assignInclude( "footer", "$skindir/footer.tpl" );
29
+include(_BASEDIR."includes/pagesetup.php");
30
+include_once(_BASEDIR."languages/".$language."_admin.php");
31
+if(!isADMIN) accessDenied( );
32
+$confirm = isset($_GET['confirm']) ? $_GET['confirm'] : false;
33
+if($confirm == "yes") {
34
+	dbquery("INSERT INTO `".TABLEPREFIX."fanfiction_codeblocks` (`code_text`, `code_type`, `code_module`) VALUES ( 'include(_BASEDIR.\"modules/storyend/storyend.php\");', 'storyend', 'storyend');");
35
+	dbquery("INSERT INTO `".TABLEPREFIX."fanfiction_panels` (`panel_name`, `panel_title`, `panel_url`, `panel_level`, `panel_order`, `panel_hidden`, `panel_type`) VALUES ('alsolike', 'Also Like', 'modules/storyend/alsolike.php', 0, 0, 1, 'B');");
36
+	include("version.php");
37
+	dbquery("INSERT INTO `".TABLEPREFIX."fanfiction_modules`(`version`, `name`) VALUES('$moduleVersion', '$moduleName')");
38
+
39
+	$output = write_message(_ACTIONSUCCESSFUL);
40
+}
41
+else if($confirm == "no") {
42
+	$output = write_message(_ACTIONCANCELLED);
43
+}
44
+else {
45
+	$output = write_message(_CONFIRMINSTALL."<br /><a href='install.php?confirm=yes'>"._YES."</a> "._OR." <a href='install.php?confirm=no'>"._NO."</a>");
46
+}
47
+$tpl->assign("output", $output);
48
+$tpl->printToScreen( );
49
+?>
0 50
\ No newline at end of file