From 3f00f78f08f56ed404763882f8da51b7b7d1821e Mon Sep 17 00:00:00 2001 From: quix0r Date: Tue, 23 Dec 2008 01:27:40 +0000 Subject: [PATCH] General directory structure added for debug extension --- .gitattributes | 5 +++++ debug.php | 43 +++++++++++++++++++++++++++++++----- inc/databases.php | 2 +- inc/debug/.htaccess | 1 + inc/debug/client/.htaccess | 1 + inc/debug/relay/.htaccess | 1 + inc/debug/request_ | 41 ++++++++++++++++++++++++++++++++++ inc/debug/server/.htaccess | 1 + inc/extensions/ext-debug.php | 1 + 9 files changed, 89 insertions(+), 7 deletions(-) create mode 100644 inc/debug/.htaccess create mode 100644 inc/debug/client/.htaccess create mode 100644 inc/debug/relay/.htaccess create mode 100644 inc/debug/request_ create mode 100644 inc/debug/server/.htaccess diff --git a/.gitattributes b/.gitattributes index c0c87f725c..67b6872cff 100644 --- a/.gitattributes +++ b/.gitattributes @@ -93,6 +93,11 @@ inc/databases.php -text inc/db/.htaccess -text inc/db/lib-mysql3.php -text inc/db/lib.php -text +inc/debug/.htaccess -text +inc/debug/client/.htaccess -text +inc/debug/relay/.htaccess -text +inc/debug/request_ -text +inc/debug/server/.htaccess -text inc/doubler_send.php -text inc/extensions.php -text inc/extensions/.htaccess -text diff --git a/debug.php b/debug.php index dd213e44f9..0d6150cadb 100644 --- a/debug.php +++ b/debug.php @@ -1,7 +1,7 @@ diff --git a/inc/debug/server/.htaccess b/inc/debug/server/.htaccess new file mode 100644 index 0000000000..14249c50bd --- /dev/null +++ b/inc/debug/server/.htaccess @@ -0,0 +1 @@ +Deny from all \ No newline at end of file diff --git a/inc/extensions/ext-debug.php b/inc/extensions/ext-debug.php index 193ae3200c..886c135548 100644 --- a/inc/extensions/ext-debug.php +++ b/inc/extensions/ext-debug.php @@ -130,6 +130,7 @@ PRIMARY KEY (`id`) $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `debug_new_log` ENUM('ACCEPT','FIRST','REG') NOT NULL DEFAULT 'FIRST'"; $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `debug_new_client` ENUM('ACTIVE','NEW','REG') NOT NULL DEFAULT 'NEW'"; $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `debug_reject_log` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getConfig('one_day') * 30).""; + $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `debug_master_url` VARCHAR(255) NOT NULL DEFAULT '{!SERVER_URL!}'"; break; case "remove": // Do stuff when removing extension -- 2.39.5