parent
808ae831bf
commit
37f4bd4185
@ -1,2 +1,3 @@ |
||||
*~ |
||||
tpl_c/*.php |
||||
config.php |
||||
|
@ -1,45 +1,20 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get id |
||||
if((isset($_GET['assetclassgroup_id'])) ? $assetclassgroup_id = sanitize($_GET['assetclassgroup_id']) : $assetclassgroup_id = ""); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup assetclassgroup |
||||
$smarty->assign("assetclassgroup_options", $db->options_assetclassgroup()); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("assetclassadd.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,39 +1,16 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("assetclassgroupadd.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,62 +1,37 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get id |
||||
$assetclassgroup_id = sanitize($_GET['assetclassgroup_id']); |
||||
|
||||
// start output |
||||
$smarty->assign("scripts", 'jscolor.js'); |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup assetclassgroup |
||||
// build query |
||||
$query = "SELECT |
||||
assetclassgroup.assetclassgroup_id AS assetclassgroup_id, |
||||
assetclassgroup.assetclassgroup_name AS assetclassgroup_name, |
||||
assetclassgroup.assetclassgroup_color AS assetclassgroup_color |
||||
assetclassgroup_id, |
||||
assetclassgroup_name, |
||||
assetclassgroup_color |
||||
FROM |
||||
assetclassgroup |
||||
WHERE |
||||
assetclassgroup.assetclassgroup_id=" . $assetclassgroup_id; |
||||
assetclassgroup_id=" . $assetclassgroup_id; |
||||
|
||||
// run query |
||||
$assetclassgroup = $db->db_select($query); |
||||
|
||||
// send to tpl |
||||
$smarty->assign("assetclassgroup_id", $assetclassgroup[0]['assetclassgroup_id']); |
||||
$smarty->assign("assetclassgroup_name", $assetclassgroup[0]['assetclassgroup_name']); |
||||
$smarty->assign("assetclassgroup_color", $assetclassgroup[0]['assetclassgroup_color']); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("assetclassgroupedit.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,41 +0,0 @@ |
||||
<?php
|
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
*****************************************************************************/ |
||||
|
||||
// version |
||||
$config_version = 'v0.7'; |
||||
|
||||
// db connection |
||||
$config_mysql_host = 'localhost'; |
||||
$config_mysql_username = 'ipreg'; |
||||
$config_mysql_password = 'changeme!'; |
||||
$config_mysql_dbname = 'ipreg'; |
||||
|
||||
// default values for IP blocks |
||||
$config_color_blocked = 'dcdcdc'; |
||||
$config_color_unused = 'ffffff'; |
||||
$config_color_dynamic = 'e0e0e0'; |
||||
|
||||
// language |
||||
$config_lang = array('de', 'en'); |
||||
$config_lang_default = 'en'; |
||||
|
||||
?> |
@ -0,0 +1,28 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// version |
||||
$config_version = 'v0.7'; |
||||
|
||||
// db connection |
||||
$config_mysql_host = 'localhost'; |
||||
$config_mysql_username = 'ipreg'; |
||||
$config_mysql_password = 'changeme!'; |
||||
$config_mysql_dbname = 'ipreg'; |
||||
|
||||
// default values for IP blocks |
||||
$config_color_blocked = 'dcdcdc'; |
||||
$config_color_unused = 'ffffff'; |
||||
$config_color_dynamic = 'e0e0e0'; |
||||
|
||||
// language |
||||
$config_lang = array('de', 'en'); |
||||
$config_lang_default = 'en'; |
||||
|
||||
?> |
@ -1,28 +1,13 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// build connection |
||||
$dblink = mysqli_connect($config_mysql_host,$config_mysql_username,$config_mysql_password); |
||||
|
||||
// select db |
||||
mysqli_select_db($dblink, $config_mysql_dbname); |
||||
|
||||
?> |
||||
|
@ -1,31 +1,13 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
|
||||
// get version for the footer-stamp |
||||
$smarty->assign("config_version", $config_version); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("footer.tpl"); |
||||
?> |
@ -1,50 +1,26 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// session |
||||
// start session |
||||
session_name('ipreg'); |
||||
session_start(); |
||||
|
||||
// check for user_id, if unnkown, redirect to login |
||||
if(empty($_SESSION['suser_id'])) { |
||||
// redirect |
||||
header("Location: login.php"); |
||||
exit; |
||||
} |
||||
|
||||
// headers |
||||
// raw http headers |
||||
header("Content-Type: text/html; charset=utf-8"); |
||||
|
||||
// includes |
||||
// includes |
||||
include("config.php"); |
||||
include("dbconnect.php"); |
||||
|
||||
// load lib |
||||
include("lib.php"); |
||||
|
||||
// set language |
||||
$language = lang_getfrombrowser($config_lang, $config_lang_default, null, false); |
||||
|
||||
?> |
@ -1,118 +1,69 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup asset |
||||
// build query |
||||
// asset |
||||
$query = "SELECT |
||||
COUNT(asset_id) AS asset_counter |
||||
FROM |
||||
asset"; |
||||
|
||||
// run query |
||||
$assets = $db->db_select($query); |
||||
|
||||
// counter to tpl |
||||
$smarty->assign("asset_counter", $assets[0]['asset_counter']); |
||||
|
||||
// setup location |
||||
// build query |
||||
// location |
||||
$query = "SELECT |
||||
COUNT(location_id) AS location_counter |
||||
FROM |
||||
location"; |
||||
|
||||
// run query |
||||
$locations = $db->db_select($query); |
||||
|
||||
// counter to tpl |
||||
$smarty->assign("location_counter", $locations[0]['location_counter']); |
||||
|
||||
// setup node |
||||
// build query |
||||
// node |
||||
$query = "SELECT |
||||
COUNT(node_id) AS node_counter |
||||
FROM |
||||
node"; |
||||
|
||||
// run query |
||||
$nodes = $db->db_select($query); |
||||
|
||||
// counter to tpl |
||||
$smarty->assign("node_counter", $nodes[0]['node_counter']); |
||||
|
||||
// setup subnet |
||||
// build query |
||||
// subnet |
||||
$query = "SELECT |
||||
COUNT(subnet_id) AS subnet_counter |
||||
FROM |
||||
subnet"; |
||||
|
||||
// run query |
||||
$subnets = $db->db_select($query); |
||||
|
||||
// counter to tpl |
||||
$smarty->assign("subnet_counter", $subnets[0]['subnet_counter']); |
||||
|
||||
// setup vlan |
||||
// build query |
||||
// vlan |
||||
$query = "SELECT |
||||
COUNT(vlan_id) AS vlan_counter |
||||
FROM |
||||
vlan"; |
||||
|
||||
// run query |
||||
$vlans = $db->db_select($query); |
||||
|
||||
// counter to tpl |
||||
$smarty->assign("vlan_counter", $vlans[0]['vlan_counter']); |
||||
|
||||
// setup zone |
||||
// build query |
||||
// zone |
||||
$query = "SELECT |
||||
COUNT(zone_id) AS zone_counter |
||||
FROM |
||||
zone"; |
||||
|
||||
// run query |
||||
$zones = $db->db_select($query); |
||||
|
||||
// counter to tpl |
||||
$smarty->assign("zone_counter", $zones[0]['zone_counter']); |
||||
|
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("index.tpl"); |
||||
|
||||
// footer |
||||
include("footer.php"); |
||||
?> |
@ -1,48 +1,25 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// functions |
||||
include("lib/functions.php"); |
||||
|
||||
// classes |
||||
// db |
||||
// load class |
||||
require("lib/db.class.php"); |
||||
|
||||
// create instance |
||||
$db = new Db($dblink); |
||||
|
||||
// user |
||||
// load class |
||||
require("lib/user.class.php"); |
||||
|
||||
// create instance |
||||
$user = new User(); |
||||
|
||||
// tpl |
||||
require_once('smarty3/Smarty.class.php'); |
||||
$smarty = new Smarty(); |
||||
$smarty->template_dir = 'tpl'; |
||||
$smarty->compile_dir = 'tpl_c'; |
||||
$smarty->registerPlugin('function', 'treelist', 'print_tree'); |
||||
$smarty->assign("suser_tooltips", $_SESSION['suser_tooltips']); |
||||
|
||||
?> |
||||
|
@ -1,76 +1,47 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get ip and id |
||||
$location_id = sanitize($_GET['location_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup location |
||||
// build query |
||||
// location |
||||
$query = "SELECT |
||||
location.location_name AS location_name |
||||
location_name |
||||
FROM |
||||
location |
||||
WHERE |
||||
location.location_id=" . $location_id; |
||||
location_id=" . $location_id; |
||||
|
||||
// run query |
||||
$location = $db->db_select($query); |
||||
|
||||
$smarty->assign("location_id", $location_id); |
||||
$smarty->assign("location_name", $location[0]['location_name']); |
||||
|
||||
// setup subnet |
||||
// build query |
||||
// subnet |
||||
$query = "SELECT |
||||
subnet.subnet_id AS subnet_id, |
||||
subnet.subnet_address AS subnet_address, |
||||
subnet.subnet_mask AS subnet_mask |
||||
s.subnet_id, |
||||
s.subnet_address, |
||||
s.subnet_mask |
||||
FROM |
||||
subnetlocation, |
||||
subnet |
||||
subnetlocation AS l LEFT JOIN subnet AS s USING (subnet_id) |
||||
WHERE |
||||
subnetlocation.location_id=" . $location_id . " |
||||
AND subnet.subnet_id=subnetlocation.subnet_id |
||||
l.location_id=" . $location_id . " |
||||
ORDER BY |
||||
INET_ATON(subnet.subnet_address)"; |
||||
INET_ATON(s.subnet_address)"; |
||||
|
||||
// run query |
||||
$subnets = $db->db_select($query); |
||||
$smarty->assign($subnets); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("locationsubnetdel.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,33 +1,17 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// logout |
||||
// user logout |
||||
$user->user_logout(); |
||||
// user logout: clear session |
||||
$_SESSION = array(); |
||||
|
||||
// redirect |
||||
// redirect to start page |
||||
header("Location: index.php"); |
||||
?> |
@ -1,57 +1,31 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get id |
||||
$node_id = sanitize($_GET['node_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup node |
||||
// build query |
||||
$query = "SELECT |
||||
node.node_ip AS node_ip |
||||
node_ip |
||||
FROM |
||||
node |
||||
WHERE |
||||
node.node_id=" . $node_id; |
||||
|
||||
// run query |
||||
$node = $db->db_select($query); |
||||
|
||||
$smarty->assign("node_id", $node_id); |
||||
$smarty->assign("node_ip", $node[0]['node_ip']); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("natedit.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,54 +1,26 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// check for set ip and/or subnet_id |
||||
if ((isset($_GET['node_ip'])) ? $node_ip = sanitize($_GET['node_ip']) : $node_ip = ''); |
||||
if ((isset($_GET['subnet_id'])) ? $subnet_id = sanitize($_GET['subnet_id']) : $subnet_id = ''); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// set vars |
||||
$smarty->assign("user_dns1suffix", $_SESSION['suser_dns1suffix']); |
||||
$smarty->assign("user_dns2suffix", $_SESSION['suser_dns2suffix']); |
||||
$smarty->assign("node_ip", $node_ip); |
||||
|
||||
// setup subnet |
||||
$smarty->assign("subnet_options", $db->options_subnet()); |
||||
|
||||
// setup assetclass |
||||
$smarty->assign("assetclass_options", $db->options_assetclass()); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("nodeadd.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,39 +1,16 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("options.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,39 +1,16 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("optionseditpassword.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
File diff suppressed because it is too large
Load Diff
@ -1,63 +1,34 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get ip and id |
||||
$subnet_id = sanitize($_GET['subnet_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup subnet |
||||
// build query |
||||
$query = "SELECT |
||||
subnet.subnet_address AS subnet_address, |
||||
subnet.subnet_mask AS subnet_mask |
||||
subnet_address, |
||||
subnet_mask |
||||
FROM |
||||
subnet |
||||
WHERE |
||||
subnet.subnet_id=" . $subnet_id; |
||||
subnet_id=" . $subnet_id; |
||||
|
||||
// run query |
||||
$subnet = $db->db_select($query); |
||||
|
||||
$smarty->assign("subnet_id", $subnet_id); |
||||
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
||||
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
||||
|
||||
// start parent |
||||
// build query |
||||
$smarty->assign("location_options", $db->options_location()); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("subnetlocationadd.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,59 +1,33 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get ip and id |
||||
$subnet_id = sanitize($_GET['subnet_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup subnet |
||||
// build query |
||||
$query = "SELECT |
||||
subnet.subnet_address AS subnet_address, |
||||
subnet.subnet_mask AS subnet_mask |
||||
subnet_address, |
||||
subnet_mask |
||||
FROM |
||||
subnet |
||||
WHERE |
||||
subnet.subnet_id=" . $subnet_id; |
||||
subnet_id=" . $subnet_id; |
||||
|
||||
// run query |
||||
$subnet = $db->db_select($query); |
||||
|
||||
$smarty->assign("subnet_id", $subnet_id); |
||||
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
||||
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("subnetvlanedit.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,54 +1,28 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup user |
||||
// build query |
||||
$query = "SELECT |
||||
user.user_id AS user_id, |
||||
user.user_name AS user_name, |
||||
user.user_displayname AS user_displayname |
||||
user_id, |
||||
user_name, |
||||
user_displayname |
||||
FROM |
||||
user |
||||
ORDER BY |
||||
user.user_name"; |
||||
user_name"; |
||||
|
||||
// run query |
||||
$users = $db->db_select($query); |
||||
$smarty->assign("users", $users); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->assign("users", $users); |
||||
$smarty->display("user.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,39 +1,16 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("useradd.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,58 +1,31 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get id |
||||
$user_id = sanitize($_GET['user_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup user |
||||
// build query |
||||
$query = "SELECT |
||||
user.user_name AS user_name |
||||
user_name |
||||
FROM |
||||
user |
||||
WHERE |
||||
user.user_id=" . $user_id; |
||||
user_id=" . $user_id; |
||||
|
||||
// run query |
||||
$user = $db->db_select($query); |
||||
|
||||
// send to tpl |
||||
$smarty->assign("user_id", $user_id); |
||||
$smarty->assign("user_name", $user[0]['user_name']); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("userdel.tpl"); |
||||
|
||||
// footer |
||||
include("footer.php"); |
||||
?> |
@ -1,60 +1,33 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get id |
||||
$user_id = sanitize($_GET['user_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup user |
||||
// build query |
||||
$query = "SELECT |
||||
user.user_name AS user_name, |
||||
user.user_displayname AS user_displayname |
||||
user_name, |
||||
user_displayname |
||||
FROM |
||||
user |
||||
WHERE |
||||
user.user_id=" . $user_id; |
||||
user_id=" . $user_id; |
||||
|
||||
// run query |
||||
$user = $db->db_select($query); |
||||
|
||||
// send to tpl |
||||
$smarty->assign("user_id", $user_id); |
||||
$smarty->assign("user_name", $user[0]['user_name']); |
||||
$smarty->assign("user_displayname", $user[0]['user_displayname']); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("useredit.tpl"); |
||||
|
||||
// footer |
||||
include("footer.php"); |
||||
?> |
@ -1,55 +1,29 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup vlan |
||||
// build query |
||||
$query = "SELECT |
||||
vlan.vlan_id AS vlan_id, |
||||
vlan.vlan_number AS vlan_number, |
||||
vlan.vlan_name AS vlan_name, |
||||
LEFT(vlan.vlan_info, 60) AS vlan_info |
||||
vlan_id, |
||||
vlan_number, |
||||
vlan_name, |
||||
LEFT(vlan_info, 60) AS vlan_info |
||||
FROM |
||||
vlan |
||||
ORDER BY |
||||
vlan.vlan_number"; |
||||
vlan_number"; |
||||
|
||||
// run query |
||||
$vlans = $db->db_select($query); |
||||
$smarty->assign("vlans", $vlans); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->assign("vlans", $vlans); |
||||
$smarty->display("vlan.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,39 +1,16 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("vlanadd.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,60 +1,32 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get id |
||||
$vlan_id = sanitize($_GET['vlan_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup vlan |
||||
// build query |
||||
$query = "SELECT |
||||
vlan.vlan_name AS vlan_name, |
||||
vlan.vlan_number AS vlan_number |
||||
vlan_name, |
||||
vlan_number |
||||
FROM |
||||
vlan |
||||
WHERE |
||||
vlan.vlan_id=" . $vlan_id; |
||||
vlan_id=" . $vlan_id; |
||||
|
||||
// run query |
||||
$vlan = $db->db_select($query); |
||||
|
||||
// send to tpl |
||||
$smarty->assign("vlan_id", $vlan_id); |
||||
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
||||
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("vlandel.tpl"); |
||||
|
||||
// footer |
||||
include("footer.php"); |
||||
?> |
@ -1,62 +1,35 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get id |
||||
$vlan_id = sanitize($_GET['vlan_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup vlan |
||||
// build query |
||||
$query = "SELECT |
||||
vlan.vlan_name AS vlan_name, |
||||
vlan.vlan_number AS vlan_number, |
||||
vlan.vlan_info AS vlan_info |
||||
vlan_name, |
||||
vlan_number, |
||||
vlan_info |
||||
FROM |
||||
vlan |
||||
WHERE |
||||
vlan.vlan_id=" . $vlan_id; |
||||
vlan_id=" . $vlan_id; |
||||
|
||||
// run query |
||||
$vlan = $db->db_select($query); |
||||
|
||||
// send to tpl |
||||
$smarty->assign("vlan_id", $vlan_id); |
||||
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
||||
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
||||
$smarty->assign("vlan_info", $vlan[0]['vlan_info']); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("vlanedit.tpl"); |
||||
|
||||
// footer |
||||
include("footer.php"); |
||||
?> |
@ -1,60 +1,33 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get ip and id |
||||
$vlan_id = sanitize($_GET['vlan_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup vlan |
||||
// build query |
||||
$query = "SELECT |
||||
vlan.vlan_name AS vlan_name, |
||||
vlan.vlan_number AS vlan_number |
||||
vlan_name, |
||||
vlan_number |
||||
FROM |
||||
vlan |
||||
WHERE |
||||
vlan.vlan_id=" . $vlan_id; |
||||
vlan_id=" . $vlan_id; |
||||
|
||||
// run query |
||||
$vlan = $db->db_select($query); |
||||
|
||||
// send to tpl |
||||
$smarty->assign("vlan_id", $vlan_id); |
||||
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
||||
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("vlansubnetedit.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,82 +1,52 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get id |
||||
$vlan_id = sanitize($_GET['vlan_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup vlan |
||||
// build query |
||||
// vlan |
||||
$query = "SELECT |
||||
vlan.vlan_name AS vlan_name, |
||||
vlan.vlan_number AS vlan_number, |
||||
vlan.vlan_info AS vlan_info |
||||
vlan_name, |
||||
vlan_number, |
||||
vlan_info |
||||
FROM |
||||
vlan |
||||
WHERE |
||||
vlan.vlan_id=" . $vlan_id; |
||||
vlan_id=" . $vlan_id; |
||||
|
||||
// run query |
||||
$vlan = $db->db_select($query); |
||||
|
||||
// send to tpl |
||||
$smarty->assign("vlan_id", $vlan_id); |
||||
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
||||
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
||||
$smarty->assign("vlan_info", nl2br($vlan[0]['vlan_info'])); |
||||
|
||||
// setup subnets |
||||
// build query |
||||
// subnets |
||||
$query = "SELECT |
||||
subnet.subnet_id, |
||||
subnet.subnet_address, |
||||
subnet.subnet_mask, |
||||
subnet.subnet_info |
||||
s.subnet_id, |
||||
s.subnet_address, |
||||
s.subnet_mask, |
||||
s.subnet_info |
||||
FROM |
||||
subnet, |
||||
subnetvlan |
||||
subnet AS s LEFT JOIN subnetvlan AS v USING (subnet_id) |
||||
WHERE |
||||
subnetvlan.vlan_id=" . $vlan_id . " |
||||
AND subnet.subnet_id=subnetvlan.subnet_id |
||||
v.vlan_id=" . $vlan_id . " |
||||
ORDER BY |
||||
INET_ATON(subnet.subnet_address)"; |
||||
INET_ATON(s.subnet_address)"; |
||||
|
||||
// run query |
||||
$subnets = $db->db_select($query); |
||||
$smarty->assign("subnets", $subnets); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("vlanview.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,39 +1,16 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("zoneadd.tpl"); |
||||
|
||||
// end output |
||||
include("footer.php"); |
||||
?> |
@ -1,52 +1,23 @@ |
||||
<?php |
||||
/***************************************************************************** |
||||
IP Reg, a PHP/MySQL IPAM tool |
||||
Copyright (C) 2007-2009 Wietse Warendorff |
||||
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
||||
Copyright (C) 2011-2023 Thomas Hooge |
||||
|
||||
This program is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation, either version 3 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
||||
For more information, visit http://sourceforge.net/projects/ipreg, |
||||
or contact me at wietsew@users.sourceforge.net |
||||
SPDX-License-Identifier: GPL-3.0-or-later |
||||
*****************************************************************************/ |
||||
|
||||
// start page |
||||
// includes |
||||
include("includes.php"); |
||||
|
||||
// get id |
||||
$zone_id = sanitize($_GET['zone_id']); |
||||
|
||||
// start output |
||||
include("header.php"); |
||||
|
||||
// set language variables |
||||
$smarty->assign($lang); |
||||
|
||||
// setup vlan |
||||
// build query |
||||
$query = "SELECT zone_id, zone_origin, zone_serial FROM zone WHERE zone_id=" . $zone_id; |
||||
|
||||
// run query |
||||
$zone = $db->db_select($query); |
||||
|
||||
// send to tpl |
||||
$smarty->assign("zone", $zone[0]); |
||||
|
||||
// end page |
||||
// output |
||||
$smarty->display("zonedel.tpl"); |
||||
|
||||
// footer |
||||
include("footer.php"); |
||||
?> |
Reference in new issue