File Manager

Current Directory: /home/astoriaah/www/old15/administrator/components/com_admintools/sql/xml
Viewing File: /home/astoriaah/www/old15/administrator/components/com_admintools/sql/xml/sqlsrv.xml
<?xml version="1.0" encoding="UTF-8"?> <schema> <!-- Metadata --> <meta> <!-- Supported driver types --> <drivers> <driver>sqlsrv</driver> <driver>sqlazure</driver> </drivers> </meta> <!-- SQL commands to run on installation and update --> <sql> <!-- Create the #__admintools_acl table if it's missing --> <action table="#__admintools_acl" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_acl] ( [user_id] [INT] IDENTITY(1,1) NOT NULL, [permissions] [TEXT], CONSTRAINT [PK_#__admintools_acl] PRIMARY KEY CLUSTERED ( [user_id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Create the #__admintools_adminiplist table if it's missing --> <action table="#__admintools_adminiplist" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_adminiplist] ( [id] [INT] IDENTITY(1,1) NOT NULL, [ip] [NVARCHAR](255) DEFAULT NULL, [description] [NVARCHAR](255) DEFAULT NULL, CONSTRAINT [PK_#__admintools_adminiplist] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Create the #__admintools_badwords table if it's missing --> <action table="#__admintools_badwords" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_badwords] ( [id] [INT] IDENTITY(1,1) NOT NULL, [word] [NVARCHAR](255) DEFAULT NULL, CONSTRAINT [PK_#__admintools_badwords] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Create the #__admintools_customperms table if it's missing --> <action table="#__admintools_customperms" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_customperms] ( [id] [INT] IDENTITY(1,1) NOT NULL, [path] [NVARCHAR](255) NOT NULL, [perms] [NVARCHAR](4) DEFAULT '0644', CONSTRAINT [PK_#__admintools_customperms] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> <query canfail="1"><![CDATA[ CREATE NONCLUSTERED INDEX [idx_path] ON [#__admintools_customperms] ( [path] ASC )WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF) ]]></query> </action> <!-- Create the #__admintools_filescache table if it's missing --> <action table="#__admintools_filescache" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_filescache] ( [admintools_filescache_id] [INT] IDENTITY(1,1) NOT NULL, [path] [NVARCHAR](2048) NOT NULL, [filedate] [INT] NOT NULL DEFAULT '0', [filesize] [INT] NOT NULL DEFAULT '0', [data] TEXT, [checksum] [NVARCHAR](32) NOT NULL DEFAULT '', CONSTRAINT [PK_#__admintools_filescache] PRIMARY KEY CLUSTERED ( [admintools_filescache_id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Create the #__admintools_ipautoban table if it's missing --> <action table="#__admintools_ipautoban" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_ipautoban] ( [ip] [NVARCHAR](255) NOT NULL UNIQUE, [reason] [NVARCHAR](255) DEFAULT 'other', [until] [DATETIME] NOT NULL DEFAULT ('1900-01-01 00:00:00') ) ]]></query> </action> <!-- Create the #__admintools_ipblock table if it's missing --> <action table="#__admintools_ipblock" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_ipblock] ( [id] [INT] IDENTITY(1,1) NOT NULL, [ip] [NVARCHAR](255) DEFAULT NULL, [description] [NVARCHAR](255) DEFAULT NULL, CONSTRAINT [PK_#__admintools_ipblock] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Create the #__admintools_log table if it's missing --> <action table="#__admintools_log" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_log] ( [id] [INT] IDENTITY(1,1) NOT NULL, [logdate] [DATETIME] NOT NULL DEFAULT ('1900-01-01 00:00:00'), [ip] [NVARCHAR](40) DEFAULT NULL, [url] [NVARCHAR](255) DEFAULT NULL, [reason] [NVARCHAR](255) DEFAULT 'other', [extradata] [TEXT], CONSTRAINT [PK_#__admintools_log] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Create the #__admintools_redirects table if it's missing --> <action table="#__admintools_redirects" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_redirects] ( [id] [INT] IDENTITY(1,1) NOT NULL, [source] [NVARCHAR](255) DEFAULT NULL, [dest] [NVARCHAR](255) DEFAULT NULL, [ordering] [BIGINT] NOT NULL DEFAULT '0', [published] [TINYINT] NOT NULL DEFAULT '1', [keepurlparams] [TINYINT] NOT NULL DEFAULT '1', CONSTRAINT [PK_#__admintools_redirects] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Create the #__admintools_scanalerts table if it's missing --> <action table="#__admintools_scanalerts" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_scanalerts] ( [admintools_scanalert_id] [INT] IDENTITY(1,1) NOT NULL, [path] [NVARCHAR](2048) NOT NULL, [scan_id] [BIGINT] NOT NULL DEFAULT '0', [diff] [TEXT], [threat_score] [INT] NOT NULL DEFAULT '0', [acknowledged] [TINYINT] NOT NULL DEFAULT '0', CONSTRAINT [PK_#__admintools_scanalerts] PRIMARY KEY CLUSTERED ( [admintools_scanalert_id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Create the #__admintools_scans table if it's missing --> <action table="#__admintools_scans" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_scans] ( [id] [BIGINT] IDENTITY(1,1) NOT NULL, [description] [NVARCHAR](255) NOT NULL, [comment] [NVARCHAR](4000) NULL, [backupstart] [DATETIME] NOT NULL DEFAULT ('1900-01-01 00:00:00'), [backupend] [DATETIME] NOT NULL DEFAULT ('1900-01-01 00:00:00'), [status] [NVARCHAR](8) NOT NULL DEFAULT ('run'), [origin] [NVARCHAR](30) NOT NULL DEFAULT ('backend'), [type] [NVARCHAR](30) NOT NULL DEFAULT ('full'), [profile_id] [BIGINT] NOT NULL DEFAULT ('1'), [archivename] [NVARCHAR](4000), [absolute_path] [NVARCHAR](4000), [multipart] [INT] NOT NULL DEFAULT ('0'), [tag] [NVARCHAR](255) NULL, [filesexist] [TINYINT] NOT NULL DEFAULT ('1'), [remote_filename] [NVARCHAR](1000) NULL, [total_size] [BIGINT] NOT NULL DEFAULT ('0'), CONSTRAINT [PK_#__admintools_scans] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> <query canfail="1"><![CDATA[ CREATE NONCLUSTERED INDEX [idx_fullstatus] ON [#__admintools_scans] ( [filesexist] ASC, [status] ASC )WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF) ]]></query> <query canfail="1"><![CDATA[ CREATE NONCLUSTERED INDEX [idx_stale] ON [#__admintools_scans] ( [status] ASC, [origin] ASC )WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF) ]]></query> </action> <!-- Create the #__admintools_storage table if it's missing --> <action table="#__admintools_storage" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_storage] ( [key] [NVARCHAR](255) NOT NULL, [value] [TEXT] NOT NULL, CONSTRAINT [PK_#__admintools_storage] PRIMARY KEY CLUSTERED ( [key] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Create the #__admintools_wafexceptions table if it's missing --> <action table="#__admintools_wafexceptions" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_wafexceptions] ( [id] [INT] IDENTITY(1,1) NOT NULL, [option] [NVARCHAR](255) DEFAULT NULL, [view] [NVARCHAR](255) DEFAULT NULL, [query] [NVARCHAR](255) DEFAULT NULL, CONSTRAINT [PK_#__admintools_wafexceptions] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Create the #__admintools_profiles table if it's missing --> <action table="#__admintools_profiles" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_profiles] ( [id] [INT] IDENTITY(1,1) NOT NULL, [description] [NVARCHAR](255) NOT NULL, [configuration] TEXT NULL, [filters] TEXT NULL, CONSTRAINT [PK_#__admintools_profiles] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ) ]]></query> </action> <!-- Insert into #__admintools_profiles if id=1 is not there --> <action table="#__admintools_profiles" canfail="1"> <condition type="equals" operator="not" value="1"><![CDATA[ SELECT COUNT(*) FROM #__admintools_profiles WHERE id = 1 ]]></condition> <query><![CDATA[ INSERT INTO #__admintools_profiles (id, description, configuration, filters) SELECT 1, 'Default PHP Change Scanner Profile', '', '' ]]></query> </action> <action table="#__admintools_waftemplates" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_waftemplates] ( [admintools_waftemplate_id] [INT] IDENTITY(1,1) NOT NULL, [reason] [NVARCHAR](255) NOT NULL, [language] [NVARCHAR](10) NOT NULL DEFAULT '*', [subject] [NVARCHAR](255) NOT NULL, [template] text NOT NULL, [enabled] TINYINT(3) NOT NULL DEFAULT 1, [email_num] tinyint(3) unsigned NOT NULL, [email_numfreq] tinyint(3) unsigned NOT NULL, [email_freq] enum('','second','minute','hour','day') NOT NULL DEFAULT '', [created_on] datetime NOT NULL DEFAULT '0000-00-00 00:00:00', [created_by] bigint(20) NOT NULL DEFAULT '0', [modified_on] [DATETIME] NOT NULL DEFAULT '0000-00-00 00:00:00', [modified_by] bigint(20) NOT NULL DEFAULT '0', CONSTRAINT [PK_#__admintools_waftemplates] PRIMARY KEY CLUSTERED ( [admintools_waftemplate_id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ); ]]></query> </action> <action table="#__admintools_ipautobanhistory" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_ipautobanhistory] ( [id] [INT] IDENTITY(1,1) NOT NULL, [ip] [NVARCHAR](255) NOT NULL, [reason] [NVARCHAR](255) DEFAULT 'other', [until] [DATETIME] DEFAULT NULL, CONSTRAINT [PK_#__admintools_ipautobanhistory] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ); ]]></query> </action> <action table="#__admintools_cookies" canfail="0"> <condition type="missing" value=""/> <query><![CDATA[ CREATE TABLE [#__admintools_cookies] ( [series] [NVARCHAR](255) NOT NULL, [client_hash] [NVARCHAR](255) NOT NULL, [valid_to] [DATETIME] DEFAULT NULL, CONSTRAINT [PK_#__admintools_cookies] PRIMARY KEY CLUSTERED ( [series] ASC ) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ); ]]></query> </action> <action table="#__admintools_log" canfail="1"> <condition type="true"/> <query><![CDATA[ CREATE INDEX idx_admintools_log_reason_logdate ON [#__admintools_log] ([reason], [logdate]); ]]></query> </action> <action table="#__admintools_waftemplates" canfail="1"> <condition type="equals" value="0"><![CDATA[ SELECT COUNT(*) FROM `#__admintools_waftemplates`; ]]></condition> <query><![CDATA[ INSERT INTO #__admintools_waftemplates (admintools_waftemplate_id, reason, language, subject, template, enabled, email_num, email_numfreq, email_freq, created_on, created_by, modified_on, modified_by) VALUES (NULL, 'all', '*', 'Security exception on [SITENAME]', '<div style=\"background-color: #e0e0e0; padding: 10px 20px;\">\r\n<div style=\"background-color: #f9f9f9; border-radius: 10px; padding: 5px 10px;\">\r\n<p>Hello,</p>\r\n<p>We would like to notify you that a security exception was detected on your site, [SITENAME], with the following details:</p>\r\n<p>IP Address: [IP] (IP Lookup: [LOOKUP])<br />Reason: [REASON]</p>\r\n<p>If this kind of security exception repeats itself, please log in to your site\'s back-end and add this IP address to your Admin Tools\'s Web Application Firewall feature in order to completely block the misbehaving user.</p>\r\n<p>Best regards,</p>\r\n<p>The [SITENAME] team</p>\r\n</div>\r\n<p style=\"font-size: x-small; color: #667;\">You are receiving this automatic email message because you have a subscription in <em>[SITENAME]</em>. <span style=\"line-height: 1.3em;\">Do not reply to this email, it\'s sent from an unmonitored email address.</span></p>\r\n</div>\r\n<p style=\"text-align: right; font-size: 7pt; color: #ccc;\">Powered by <a style=\"color: #ccf; text-decoration: none;\" href=\"https://www.akeebabackup.com/products/admin-tools.html\">Akeeba AdminTools</a></p>', 1, 5, 1, 'hour', '2014-04-14 14:36:34', 800, '2014-04-14 14:42:38', 800); ]]></query> </action> </sql> </schema>