Code: Select all
-- Insert the following into your database to create the new settings.
delete from `setting` where `group` = 'admin_ip';
insert into `setting` (`type`, `group`, `key`, `value`) values('global','admin_ip','admin_ip_address','0.0.0.0');
insert into `setting` (`type`, `group`, `key`, `value`) values('global','admin_ip','admin_ip_status','0');
-- !!! ONLY USE THE FOLLOWING IF USING THE DB-BASED ADMIN MENU !!!
-- Insert new menu option for admin menu db table
-- !!! ONLY USE THE FOLLOWING IF USING THE DB-BASED ADMIN MENU !!!
# Dynamic-level db-based menu
delete from `ad_menu` where title = 'Admin IP';
SET @mid=0;
SELECT @mid:=menu_id
FROM ad_menu
WHERE title = 'Configuration';
insert into `ad_menu` (`menu_id`, `parent_id`, `title`, `icon`, `href`, `language_id`, `sort_order`) values(NULL,@mid,'Admin IP','user.png','admin/index.php?controller=admin_ip',1,5);
Thanks