Alex Trofimov 10 лет назад
Родитель
Сommit
e5fb0618b2

+ 4 - 0
modules/boonex/datafox/install/sql/disable.sql

@@ -9,3 +9,7 @@ SET @iHandler := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_data
 DELETE FROM `sys_alerts` WHERE `handler_id` = @iHandler;
 DELETE FROM `sys_alerts` WHERE `handler_id` = @iHandler;
 DELETE FROM `sys_alerts_handlers` WHERE `id` = @iHandler;
 DELETE FROM `sys_alerts_handlers` WHERE `id` = @iHandler;
 
 
+-- injections
+
+DELETE FROM `sys_injections` WHERE `name` = 'bx_datafox';
+

+ 5 - 0
modules/boonex/datafox/install/sql/enable.sql

@@ -23,3 +23,8 @@ SET @iHandler := LAST_INSERT_ID();
 INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
 INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
 ('system', 'clear_xss', @iHandler);
 ('system', 'clear_xss', @iHandler);
 
 
+-- injections
+
+INSERT INTO `sys_injections` (`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
+('bx_datafox', 0, 'injection_head', 'service', 'a:2:{s:6:"module";s:10:"bx_datafox";s:6:"method";s:14:"include_css_js";}', 0, 1);
+