|
...
|
...
|
@@ -31,13 +31,14 @@ include_once(_BASEDIR."languages/".$language."_admin.php");
|
|
31
|
31
|
if(!isADMIN) accessDenied( );
|
|
32
|
32
|
$confirm = isset($_GET['confirm']) ? $_GET['confirm'] : false;
|
|
33
|
33
|
if($confirm == "yes") {
|
|
34
|
|
- list($installed) = dbrow(dbquery("SELECT COUNT(code_module) FROM ".TABLEPREFIX. "fanfiction_codeblocks WHERE code_module = 'notifications'"));
|
|
|
34
|
+ list($installed) = dbrow(dbquery("SELECT COUNT(name) FROM ".TABLEPREFIX. "fanfiction_modules WHERE name = 'notifications'"));
|
|
35
|
35
|
if(!$installed) {
|
|
36
|
36
|
|
|
37
|
37
|
$check= dbassoc(dbquery("SHOW COLUMNS FROM " . TABLEPREFIX . "fanfiction_settings LIKE 'notifications'"));
|
|
38
|
38
|
if (!$check) dbquery("ALTER TABLE `" . TABLEPREFIX . "fanfiction_settings` ADD `notifications` TEXT NOT NULL default ''");
|
|
39
|
39
|
|
|
40
|
40
|
include("version.php");
|
|
|
41
|
+
|
|
41
|
42
|
dbquery("INSERT INTO `".TABLEPREFIX."fanfiction_modules`(`version`, `name`) VALUES('$moduleVersion', '$moduleName')");
|
|
42
|
43
|
}
|
|
43
|
44
|
$output = write_message(_ACTIONSUCCESSFUL);
|