Changes adopted from version 0.4
This commit is contained in:
@@ -1,12 +1,4 @@
|
||||
--
|
||||
-- Database: `ipreg`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `asset`
|
||||
--
|
||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||
|
||||
CREATE TABLE `asset` (
|
||||
`asset_id` int(10) NOT NULL auto_increment,
|
||||
@@ -15,73 +7,32 @@ CREATE TABLE `asset` (
|
||||
`assetclass_id` int(10) NOT NULL default '0',
|
||||
`asset_info` text NOT NULL,
|
||||
PRIMARY KEY (`asset_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `asset`
|
||||
--
|
||||
|
||||
INSERT INTO `asset` VALUES (1, 'My Router', 'Router', 4, 'This is my router');
|
||||
INSERT INTO `asset` VALUES (2, 'My PC', 'PC', 10, 'This is my workstation');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `assetclass`
|
||||
--
|
||||
INSERT INTO `asset` (`asset_id`, `asset_name`, `hostname`, `assetclass_id`, `asset_info`) VALUES
|
||||
(1, 'TestPC', 'TestPC', 1, 'This is just a test PC');
|
||||
|
||||
CREATE TABLE `assetclass` (
|
||||
`assetclass_id` int(10) NOT NULL auto_increment,
|
||||
`assetclassgroup_id` int(10) NOT NULL default '0',
|
||||
`assetclass_name` varchar(100) NOT NULL default '',
|
||||
PRIMARY KEY (`assetclass_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `assetclass`
|
||||
--
|
||||
|
||||
INSERT INTO `assetclass` VALUES (1, 1, 'Access device');
|
||||
INSERT INTO `assetclass` VALUES (2, 1, 'Firewall');
|
||||
INSERT INTO `assetclass` VALUES (3, 1, 'HUB');
|
||||
INSERT INTO `assetclass` VALUES (4, 1, 'Router');
|
||||
INSERT INTO `assetclass` VALUES (5, 1, 'Switch');
|
||||
INSERT INTO `assetclass` VALUES (6, 2, 'Server');
|
||||
INSERT INTO `assetclass` VALUES (7, 2, 'NAS');
|
||||
INSERT INTO `assetclass` VALUES (8, 3, 'IP Phone');
|
||||
INSERT INTO `assetclass` VALUES (9, 4, 'Laptop');
|
||||
INSERT INTO `assetclass` VALUES (10, 4, 'PC');
|
||||
INSERT INTO `assetclass` VALUES (11, 4, 'Printer');
|
||||
INSERT INTO `assetclass` VALUES (12, 4, 'Thin Client');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `assetclassgroup`
|
||||
--
|
||||
INSERT INTO `assetclass` (`assetclass_id`, `assetclassgroup_id`, `assetclass_name`) VALUES
|
||||
(1, 1, 'PC'),
|
||||
(2, 2, 'Switch');
|
||||
|
||||
CREATE TABLE `assetclassgroup` (
|
||||
`assetclassgroup_id` int(10) NOT NULL auto_increment,
|
||||
`assetclassgroup_name` varchar(100) NOT NULL default '',
|
||||
`color` varchar(10) NOT NULL default '',
|
||||
`color` varchar(6) NOT NULL,
|
||||
PRIMARY KEY (`assetclassgroup_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `assetclassgroup`
|
||||
--
|
||||
|
||||
INSERT INTO `assetclassgroup` VALUES (1, 'Network', 'red');
|
||||
INSERT INTO `assetclassgroup` VALUES (2, 'Servers', 'green');
|
||||
INSERT INTO `assetclassgroup` VALUES (3, 'VOIP', 'orange');
|
||||
INSERT INTO `assetclassgroup` VALUES (4, 'Workstations', 'blue');
|
||||
INSERT INTO `assetclassgroup` VALUES (5, 'Other', 'black');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `location`
|
||||
--
|
||||
INSERT INTO `assetclassgroup` (`assetclassgroup_id`, `assetclassgroup_name`, `color`) VALUES
|
||||
(1, 'Workstations', '000000'),
|
||||
(2, 'Network', 'FF0000');
|
||||
|
||||
CREATE TABLE `location` (
|
||||
`location_id` int(10) NOT NULL auto_increment,
|
||||
@@ -89,26 +40,10 @@ CREATE TABLE `location` (
|
||||
`parent` int(1) NOT NULL default '0',
|
||||
`location_info` text NOT NULL,
|
||||
PRIMARY KEY (`location_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `location`
|
||||
--
|
||||
|
||||
INSERT INTO `location` VALUES (1, 'Head Office', 0, '');
|
||||
INSERT INTO `location` VALUES (2, '1st floor', 1, '');
|
||||
INSERT INTO `location` VALUES (3, '2nd floor', 1, '');
|
||||
INSERT INTO `location` VALUES (4, 'Administration', 2, '');
|
||||
INSERT INTO `location` VALUES (5, 'Finance', 2, '');
|
||||
INSERT INTO `location` VALUES (6, 'Branch office', 0, '');
|
||||
INSERT INTO `location` VALUES (7, 'Planning', 3, '');
|
||||
INSERT INTO `location` VALUES (8, 'Logistics', 6, '');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `node`
|
||||
--
|
||||
INSERT INTO `location` (`location_id`, `location_name`, `parent`, `location_info`) VALUES
|
||||
(1, 'Main Office', 0, 'Our Main Office Building');
|
||||
|
||||
CREATE TABLE `node` (
|
||||
`node_id` int(10) NOT NULL auto_increment,
|
||||
@@ -120,20 +55,10 @@ CREATE TABLE `node` (
|
||||
`asset_id` int(10) NOT NULL default '0',
|
||||
`node_info` text NOT NULL,
|
||||
PRIMARY KEY (`node_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `node`
|
||||
--
|
||||
|
||||
INSERT INTO `node` VALUES (1, '192.168.0.1', 'aabbcc112233', 'router1', '', 1, 1, '');
|
||||
INSERT INTO `node` VALUES (2, '192.168.0.11', 'aa11bb22cc33', 'pc1', '', 1, 2, '');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `subnet`
|
||||
--
|
||||
INSERT INTO `node` (`node_id`, `ip`, `mac`, `dns1`, `dns2`, `subnet_id`, `asset_id`, `node_info`) VALUES
|
||||
(1, '192.168.0.1', '', '', '', 1, 1, '');
|
||||
|
||||
CREATE TABLE `subnet` (
|
||||
`subnet_id` int(10) NOT NULL auto_increment,
|
||||
@@ -142,38 +67,20 @@ CREATE TABLE `subnet` (
|
||||
`vlan_id` int(10) NOT NULL default '0',
|
||||
`subnet_info` text NOT NULL,
|
||||
PRIMARY KEY (`subnet_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `subnet`
|
||||
--
|
||||
|
||||
INSERT INTO `subnet` VALUES (1, '192.168.0.0', 24, 1, '');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `subnetlocation`
|
||||
--
|
||||
INSERT INTO `subnet` (`subnet_id`, `subnet_address`, `subnet_mask`, `vlan_id`, `subnet_info`) VALUES
|
||||
(1, '192.168.0.1', 24, 1, '');
|
||||
|
||||
CREATE TABLE `subnetlocation` (
|
||||
`subnetlocation_id` int(10) NOT NULL auto_increment,
|
||||
`subnet_id` int(10) NOT NULL default '0',
|
||||
`location_id` int(10) NOT NULL default '0',
|
||||
PRIMARY KEY (`subnetlocation_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `subnetlocation`
|
||||
--
|
||||
|
||||
INSERT INTO `subnetlocation` VALUES (1, 1, 1);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `user`
|
||||
--
|
||||
INSERT INTO `subnetlocation` (`subnetlocation_id`, `subnet_id`, `location_id`) VALUES
|
||||
(1, 1, 1);
|
||||
|
||||
CREATE TABLE `user` (
|
||||
`user_id` int(10) NOT NULL auto_increment,
|
||||
@@ -181,22 +88,47 @@ CREATE TABLE `user` (
|
||||
`user_pass` varchar(32) NOT NULL default '',
|
||||
`user_level` int(1) NOT NULL default '0',
|
||||
`user_displayname` varchar(100) NOT NULL default '',
|
||||
`user_mac` int(1) NOT NULL default '0',
|
||||
`user_mac` varchar(25) NOT NULL default 'xxxxxxxxxxxx',
|
||||
`user_lang` varchar(3) NOT NULL default '',
|
||||
PRIMARY KEY (`user_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user`
|
||||
--
|
||||
INSERT INTO `user` (`user_id`, `user_name`, `user_pass`, `user_level`, `user_displayname`, `user_mac`, `user_lang`) VALUES
|
||||
(1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 2, 'admin', 'xxxxxxxxxxxx', 'en');
|
||||
|
||||
INSERT INTO `user` VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 2, 'Administrator', 0, 'en');
|
||||
CREATE TABLE `userclass` (
|
||||
`userclass_id` int(10) NOT NULL auto_increment,
|
||||
`userclass_name` varchar(100) collate latin1_general_ci NOT NULL,
|
||||
PRIMARY KEY (`userclass_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=2 ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
INSERT INTO `userclass` (`userclass_id`, `userclass_name`) VALUES
|
||||
(1, 'IP Reg Administrators');
|
||||
|
||||
--
|
||||
-- Table structure for table `vlan`
|
||||
--
|
||||
CREATE TABLE `userclassauth` (
|
||||
`userclassauth_id` int(10) NOT NULL auto_increment,
|
||||
`ordering` int(3) NOT NULL,
|
||||
`userclass_id` int(10) NOT NULL,
|
||||
`item` varchar(100) collate latin1_general_ci NOT NULL,
|
||||
`id` int(10) NOT NULL,
|
||||
`auth` int(1) NOT NULL,
|
||||
PRIMARY KEY (`userclassauth_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=2 ;
|
||||
|
||||
|
||||
INSERT INTO `userclassauth` (`userclassauth_id`, `ordering`, `userclass_id`, `item`, `id`, `auth`) VALUES
|
||||
(1, 1, 1, 'ipreg', 0, 2);
|
||||
|
||||
CREATE TABLE `useruserclass` (
|
||||
`useruserclass_id` int(10) NOT NULL auto_increment,
|
||||
`user_id` int(10) NOT NULL,
|
||||
`userclass_id` int(10) NOT NULL,
|
||||
PRIMARY KEY (`useruserclass_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=2 ;
|
||||
|
||||
|
||||
INSERT INTO `useruserclass` (`useruserclass_id`, `user_id`, `userclass_id`) VALUES
|
||||
(1, 1, 1);
|
||||
|
||||
CREATE TABLE `vlan` (
|
||||
`vlan_id` int(10) NOT NULL auto_increment,
|
||||
@@ -204,10 +136,7 @@ CREATE TABLE `vlan` (
|
||||
`vlan_name` varchar(100) NOT NULL default '',
|
||||
`vlan_info` text NOT NULL,
|
||||
PRIMARY KEY (`vlan_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `vlan`
|
||||
--
|
||||
|
||||
INSERT INTO `vlan` VALUES (1, 1, 'DEFAULT_VLAN', '');
|
||||
INSERT INTO `vlan` (`vlan_id`, `vlan_number`, `vlan_name`, `vlan_info`) VALUES
|
||||
(1, 1, 'VLAN', 'Default VLAN');
|
||||
@@ -1,18 +1,18 @@
|
||||
---
|
||||
--- IP Reg
|
||||
--- http://ipreg.sourceforge.net
|
||||
--- IP Reg 0.4
|
||||
--- http://sourceforge.net/projects/ipreg
|
||||
---
|
||||
|
||||
Installation instructions
|
||||
|
||||
1) Copy all files to your webserver
|
||||
1) Create your MYSQL-database
|
||||
|
||||
2) Create your MYSQL-database
|
||||
2) Use install.sql to create the tables and insert the first data
|
||||
|
||||
3) Use install.sql to create the tables and insert the first data
|
||||
3) Update config.php with your settings
|
||||
|
||||
4) Update config.php with your settings
|
||||
4) Copy all files to your webserver (exclude install directory)
|
||||
|
||||
5) Start your browser, log in with admin/admin
|
||||
|
||||
6) Please report your comments at http://ipreg.sourceforge.net
|
||||
6) Please report your comments at http://www.newtree.nl/ipreg
|
||||
Reference in New Issue
Block a user