From: Roland Häder <roland@mxchange.org>
Date: Fri, 19 Dec 2008 19:24:53 +0000 (+0000)
Subject: Fixes for SQL execution and deprecated files removed
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0abe254a699e33eb40d8a9bbddb469830cf4ad93;p=mailer.git

Fixes for SQL execution and deprecated files removed
---

diff --git a/.gitattributes b/.gitattributes
index 684360a573..a5f1534345 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -303,7 +303,6 @@ inc/modules/admin/what-admins_add.php -text
 inc/modules/admin/what-admins_contct.php -text
 inc/modules/admin/what-admins_edit.php -text
 inc/modules/admin/what-admins_mails.php -text
-inc/modules/admin/what-autopurge.php -text
 inc/modules/admin/what-bonus.php -text
 inc/modules/admin/what-cache_stats.php -text
 inc/modules/admin/what-chk_regs.php -text
@@ -334,7 +333,6 @@ inc/modules/admin/what-config_proxy.php -text
 inc/modules/admin/what-config_rallye_prices.php -text
 inc/modules/admin/what-config_refback.php -text
 inc/modules/admin/what-config_refid.php -text
-inc/modules/admin/what-config_reg.php -text
 inc/modules/admin/what-config_register.php -text
 inc/modules/admin/what-config_register2.php -text
 inc/modules/admin/what-config_removeip.php -text
@@ -606,7 +604,6 @@ inc/session.php -text
 inc/sql_error.php -text
 inc/stats_bonus.php -text
 inc/stylesheet.php -text
-inc/theme-dummy.php -text
 inc/weekly/.htaccess -text
 inc/weekly/weekly_ -text
 inc/weekly/weekly_surfbar.php -text
@@ -666,7 +663,6 @@ templates/de/emails/admin/admin_sponsor_edit.tpl -text
 templates/de/emails/admin/admin_sponsor_pending.tpl -text
 templates/de/emails/admin/admin_sponsor_reg.tpl -text
 templates/de/emails/admin/admin_sponsor_settings.tpl -text
-templates/de/emails/admin/admin_support-order.tpl -text
 templates/de/emails/admin/admin_support-ordr.tpl -text
 templates/de/emails/admin/admin_support-reflink.tpl -text
 templates/de/emails/admin/admin_support-unconfirmed.tpl -text
@@ -754,7 +750,6 @@ templates/de/emails/member/member_rallye_expired_silver.tpl -text
 templates/de/emails/member/member_rallye_notify.tpl -text
 templates/de/emails/member/member_refback.tpl -text
 templates/de/emails/member/member_stats_bonus.tpl -text
-templates/de/emails/member/member_support-order.tpl -text
 templates/de/emails/member/member_support-ordr.tpl -text
 templates/de/emails/member/member_support-reflink.tpl -text
 templates/de/emails/member/member_support-unconfirmed.tpl -text
@@ -922,7 +917,6 @@ templates/de/html/admin/admin_config_user.tpl -text
 templates/de/html/admin/admin_config_wernis.tpl -text
 templates/de/html/admin/admin_config_yoomedia.tpl -text
 templates/de/html/admin/admin_contct_user_form.tpl -text
-templates/de/html/admin/admin_data_saved.tpl -text
 templates/de/html/admin/admin_del_admins.tpl -text
 templates/de/html/admin/admin_del_admins_row.tpl -text
 templates/de/html/admin/admin_del_bank_packages.tpl -text
diff --git a/inc/databases.php b/inc/databases.php
index 74f0cb3ba4..e9351c572e 100644
--- a/inc/databases.php
+++ b/inc/databases.php
@@ -115,7 +115,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
-define('CURR_SVN_REVISION', "678");
+define('CURR_SVN_REVISION', "679");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
diff --git a/inc/extensions.php b/inc/extensions.php
index 84c6d4be5d..61fe0afa93 100644
--- a/inc/extensions.php
+++ b/inc/extensions.php
@@ -225,7 +225,7 @@ function EXTENSION_REGISTER ($ext_name, $task_id, $dry_run = false, $logout = tr
 			// "Dry-run-mode" activated?
 			if (!$dry_run) {
 				// Run installation pre-installation filters
-				RUN_FILTER('pre_extension_installed', false);
+				RUN_FILTER('pre_extension_installed', false, array('dry_run' => $dry_run, 'sqls' => $SQLs));
 
 				// Register extension
 				$result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_extensions (ext_name, ext_active, ext_version) VALUES ('%s','%s','%s')",
@@ -302,7 +302,7 @@ function EXTENSION_RUN_SQLS ($ext_id, $load_mode) {
 	//* DEBUG: */ DEBUG_LOG(__FUNCTION__, __LINE__, ":SQLs::count=".count($SQLs)."");
 	if ((is_array($SQLs) && (sizeof($SQLs) > 0))) {
 		// Run SQL commands...
-		RUN_FILTER('run_sqls');
+		RUN_FILTER('run_sqls', array('dry_run' => false, 'sqls' => $SQLs));
 
 		// Removal mode?
 		if ($load_mode == "remove") {
diff --git a/inc/load_extensions.php b/inc/load_extensions.php
index bb161afa63..a1544e6c3c 100644
--- a/inc/load_extensions.php
+++ b/inc/load_extensions.php
@@ -204,7 +204,6 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($cacheMode == "init") && ($CSS != "1")
 
 		// Load extensions
 		$file1 = sprintf("%sinc/extensions/ext-%s.php", PATH, $content['ext_name']);
-		$EXT_CSS = "N"; $EXT_ALWAYS_ACTIVE = "N";
 
 		// Does the extension file exists?
 		if (FILE_READABLE($file1)) {
diff --git a/inc/modules/admin/what-autopurge.php b/inc/modules/admin/what-autopurge.php
deleted file mode 100644
index f87b68fd31..0000000000
--- a/inc/modules/admin/what-autopurge.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-// DEPRECATED!
-?>
diff --git a/inc/modules/admin/what-config_reg.php b/inc/modules/admin/what-config_reg.php
deleted file mode 100644
index f87b68fd31..0000000000
--- a/inc/modules/admin/what-config_reg.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-// DEPRECATED!
-?>
diff --git a/inc/theme-dummy.php b/inc/theme-dummy.php
deleted file mode 100644
index f87b68fd31..0000000000
--- a/inc/theme-dummy.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-// DEPRECATED!
-?>
diff --git a/templates/de/emails/admin/admin_support-order.tpl b/templates/de/emails/admin/admin_support-order.tpl
deleted file mode 100644
index 7a33280ae2..0000000000
--- a/templates/de/emails/admin/admin_support-order.tpl
+++ /dev/null
@@ -1 +0,0 @@
-DEPRECATED!
\ No newline at end of file
diff --git a/templates/de/emails/member/member_support-order.tpl b/templates/de/emails/member/member_support-order.tpl
deleted file mode 100644
index 7a33280ae2..0000000000
--- a/templates/de/emails/member/member_support-order.tpl
+++ /dev/null
@@ -1 +0,0 @@
-DEPRECATED!
\ No newline at end of file
diff --git a/templates/de/html/admin/admin_data_saved.tpl b/templates/de/html/admin/admin_data_saved.tpl
deleted file mode 100644
index 8be440394e..0000000000
--- a/templates/de/html/admin/admin_data_saved.tpl
+++ /dev/null
@@ -1 +0,0 @@
-<!-- DEPRECATED! //-->