parent
808ae831bf
commit
37f4bd4185
@ -1,2 +1,3 @@ |
|||||||
*~ |
*~ |
||||||
tpl_c/*.php |
tpl_c/*.php |
||||||
|
config.php |
||||||
|
@ -1,59 +1,33 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
if((isset($_GET['assetclass_id'])) ? $assetclass_id = sanitize($_GET['assetclass_id']) : $assetclass_id = ""); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// includes |
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// get id |
|
||||||
if((isset($_GET['assetclass_id'])) ? $assetclass_id = sanitize($_GET['assetclass_id']) : $assetclass_id = ""); |
|
||||||
|
|
||||||
// start output |
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
// set language variables |
|
||||||
$smarty->assign($lang); |
|
||||||
|
|
||||||
// setup assetclass |
|
||||||
// build query |
|
||||||
$query = "SELECT |
|
||||||
assetclass_id, |
assetclass_id, |
||||||
assetclass_name |
assetclass_name |
||||||
FROM |
FROM |
||||||
assetclass |
assetclass |
||||||
ORDER BY |
ORDER BY |
||||||
assetclass_name"; |
assetclass_name"; |
||||||
|
|
||||||
// run query |
$assetclasses = $db->db_select($query); |
||||||
$assetclasses = $db->db_select($query); |
foreach ($assetclasses as $assetclass) { |
||||||
foreach ($assetclasses as $assetclass) { |
|
||||||
$assetclass_options[$assetclass['assetclass_id']] = $assetclass['assetclass_name']; |
$assetclass_options[$assetclass['assetclass_id']] = $assetclass['assetclass_name']; |
||||||
} |
} |
||||||
$smarty->assign("assetclass_options", $assetclass_options); |
|
||||||
|
|
||||||
// end page |
$smarty->assign("assetclass_options", $assetclass_options); |
||||||
// output |
$smarty->display("assetadd.tpl"); |
||||||
$smarty->display("assetadd.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,45 +1,20 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
if((isset($_GET['assetclassgroup_id'])) ? $assetclassgroup_id = sanitize($_GET['assetclassgroup_id']) : $assetclassgroup_id = ""); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$smarty->assign("assetclassgroup_options", $db->options_assetclassgroup()); |
||||||
// includes |
$smarty->display("assetclassadd.tpl"); |
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// get id |
include("footer.php"); |
||||||
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,54 +1,29 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
include("header.php"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
$query = "SELECT |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
|
||||||
// includes |
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// start output |
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
// set language variables |
|
||||||
$smarty->assign($lang); |
|
||||||
|
|
||||||
// setup assetclassgroup |
|
||||||
// build query |
|
||||||
$query = "SELECT |
|
||||||
assetclassgroup_id, |
assetclassgroup_id, |
||||||
assetclassgroup_name, |
assetclassgroup_name, |
||||||
assetclassgroup_color |
assetclassgroup_color |
||||||
FROM |
FROM |
||||||
assetclassgroup |
assetclassgroup |
||||||
ORDER BY |
ORDER BY |
||||||
assetclassgroup_name"; |
assetclassgroup_name"; |
||||||
|
|
||||||
// run query |
$assetclassgroups = $db->db_select($query); |
||||||
$assetclassgroups = $db->db_select($query); |
|
||||||
$smarty->assign("assetclassgroups", $assetclassgroups); |
|
||||||
|
|
||||||
// end page |
$smarty->assign("assetclassgroups", $assetclassgroups); |
||||||
// output |
$smarty->display("assetclassgroup.tpl"); |
||||||
$smarty->display("assetclassgroup.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,39 +1,16 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
include("header.php"); |
||||||
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 |
$smarty->display("assetclassgroupadd.tpl"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("footer.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
the Free Software Foundation, either version 3 of the License, or |
*****************************************************************************/ |
||||||
(at your option) any later version. |
|
||||||
|
include("includes.php"); |
||||||
This program is distributed in the hope that it will be useful, |
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
$assetclassgroup_id = sanitize($_GET['assetclassgroup_id']); |
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
GNU General Public License for more details. |
$smarty->assign("scripts", 'jscolor.js'); |
||||||
|
include("header.php"); |
||||||
You should have received a copy of the GNU General Public License |
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
$smarty->assign($lang); |
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
$query = "SELECT |
||||||
or contact me at wietsew@users.sourceforge.net |
assetclassgroup_id, |
||||||
*****************************************************************************/ |
assetclassgroup_name, |
||||||
|
assetclassgroup_color |
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
assetclassgroup |
assetclassgroup |
||||||
WHERE |
WHERE |
||||||
assetclassgroup.assetclassgroup_id=" . $assetclassgroup_id; |
assetclassgroup_id=" . $assetclassgroup_id; |
||||||
|
|
||||||
// run query |
$assetclassgroup = $db->db_select($query); |
||||||
$assetclassgroup = $db->db_select($query); |
|
||||||
|
|
||||||
// send to tpl |
$smarty->assign("assetclassgroup_id", $assetclassgroup[0]['assetclassgroup_id']); |
||||||
$smarty->assign("assetclassgroup_id", $assetclassgroup[0]['assetclassgroup_id']); |
$smarty->assign("assetclassgroup_name", $assetclassgroup[0]['assetclassgroup_name']); |
||||||
$smarty->assign("assetclassgroup_name", $assetclassgroup[0]['assetclassgroup_name']); |
$smarty->assign("assetclassgroup_color", $assetclassgroup[0]['assetclassgroup_color']); |
||||||
$smarty->assign("assetclassgroup_color", $assetclassgroup[0]['assetclassgroup_color']); |
|
||||||
|
|
||||||
// end page |
$smarty->display("assetclassgroupedit.tpl"); |
||||||
// output |
|
||||||
$smarty->display("assetclassgroupedit.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,42 +1,22 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
include("header.php"); |
||||||
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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// includes |
$comments = sanitize($_GET['comments']); |
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// start output |
$smarty->assign("comments", $lang['lang_comments_' . $comments]); |
||||||
include("header.php"); |
|
||||||
|
|
||||||
// set language variables |
$smarty->display("comments.tpl"); |
||||||
$smarty->assign($lang); |
|
||||||
|
|
||||||
// get error |
include("footer.php"); |
||||||
$comments = sanitize($_GET['comments']); |
|
||||||
|
|
||||||
// set veriables |
|
||||||
$smarty->assign("comments", $lang['lang_comments_' . $comments]); |
|
||||||
|
|
||||||
// output |
|
||||||
$smarty->display("comments.tpl"); |
|
||||||
|
|
||||||
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 |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
$dblink = mysqli_connect($config_mysql_host,$config_mysql_username,$config_mysql_password); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
mysqli_select_db($dblink, $config_mysql_dbname); |
||||||
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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
$smarty->assign("config_version", $config_version); |
||||||
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 |
$smarty->display("footer.tpl"); |
||||||
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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
|
||||||
|
|
||||||
// get version for the footer-stamp |
|
||||||
$smarty->assign("config_version", $config_version); |
|
||||||
|
|
||||||
// end page |
|
||||||
// output |
|
||||||
$smarty->display("footer.tpl"); |
|
||||||
?> |
?> |
@ -1,69 +1,41 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include('lang/' . $_SESSION['suser_language'] . '.php'); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
$smarty->assign($lang); |
||||||
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 |
// search box |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
if (isset($_POST['search'])) { |
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
|
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
|
||||||
// include language file |
|
||||||
include('lang/' . $_SESSION['suser_language'] . '.php'); |
|
||||||
|
|
||||||
// set language variables |
|
||||||
$smarty->assign($lang); |
|
||||||
|
|
||||||
// search box |
|
||||||
// new search? |
|
||||||
if (isset($_POST['search'])) { |
|
||||||
// set var |
|
||||||
$search = sanitize($_POST['search']); |
$search = sanitize($_POST['search']); |
||||||
|
|
||||||
// store var |
|
||||||
$_SESSION['search'] = $search; |
$_SESSION['search'] = $search; |
||||||
} else { |
} else { |
||||||
// check for stored var |
if (isset($_SESSION['search'])) { |
||||||
if(isset($_SESSION['search'])) { |
|
||||||
// set var |
|
||||||
$search = $_SESSION['search']; |
$search = $_SESSION['search']; |
||||||
} else { |
} else { |
||||||
// empty var |
|
||||||
$search = ''; |
$search = ''; |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
// to tpl |
$smarty->assign("config_version", $config_version); |
||||||
// set global template vars |
$smarty->assign("suser_name", $_SESSION['suser_displayname']); |
||||||
$smarty->assign("config_version", $config_version); |
$smarty->assign("search", $search); |
||||||
$smarty->assign("suser_name", $_SESSION['suser_displayname']); |
|
||||||
$smarty->assign("search", $search); |
// menu |
||||||
|
$smarty->assign("menu_assets", $_SESSION['suser_menu_assets']=='on'); |
||||||
// menu |
$smarty->assign("menu_assetclasses", $_SESSION['suser_menu_assetclasses']=='on'); |
||||||
$smarty->assign("menu_assets", $_SESSION['suser_menu_assets']=='on'); |
$smarty->assign("menu_assetclassgroups", $_SESSION['suser_menu_assetclassgroups']=='on'); |
||||||
$smarty->assign("menu_assetclasses", $_SESSION['suser_menu_assetclasses']=='on'); |
$smarty->assign("menu_locations", $_SESSION['suser_menu_locations']=='on'); |
||||||
$smarty->assign("menu_assetclassgroups", $_SESSION['suser_menu_assetclassgroups']=='on'); |
$smarty->assign("menu_nodes", $_SESSION['suser_menu_nodes']=='on'); |
||||||
$smarty->assign("menu_locations", $_SESSION['suser_menu_locations']=='on'); |
$smarty->assign("menu_subnets", $_SESSION['suser_menu_subnets']=='on'); |
||||||
$smarty->assign("menu_nodes", $_SESSION['suser_menu_nodes']=='on'); |
$smarty->assign("menu_users", $_SESSION['suser_menu_users']=='on'); |
||||||
$smarty->assign("menu_subnets", $_SESSION['suser_menu_subnets']=='on'); |
$smarty->assign("menu_vlans", $_SESSION['suser_menu_vlans']=='on'); |
||||||
$smarty->assign("menu_users", $_SESSION['suser_menu_users']=='on'); |
$smarty->assign("menu_zones", $_SESSION['suser_menu_zones']=='on'); |
||||||
$smarty->assign("menu_vlans", $_SESSION['suser_menu_vlans']=='on'); |
|
||||||
$smarty->assign("menu_zones", $_SESSION['suser_menu_zones']=='on'); |
$smarty->display("header.tpl"); |
||||||
|
|
||||||
// end page |
|
||||||
// output |
|
||||||
$smarty->display("header.tpl"); |
|
||||||
?> |
?> |
@ -1,50 +1,26 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
session_name('ipreg'); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
session_start(); |
||||||
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 |
// check for user_id, if unnkown, redirect to login |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
if(empty($_SESSION['suser_id'])) { |
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
|
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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"); |
header("Location: login.php"); |
||||||
exit; |
exit; |
||||||
} |
} |
||||||
|
|
||||||
// headers |
|
||||||
// raw http headers |
|
||||||
header("Content-Type: text/html; charset=utf-8"); |
|
||||||
|
|
||||||
// includes |
include("config.php"); |
||||||
// includes |
include("dbconnect.php"); |
||||||
include("config.php"); |
|
||||||
include("dbconnect.php"); |
|
||||||
|
|
||||||
// load lib |
include("lib.php"); |
||||||
include("lib.php"); |
|
||||||
|
|
||||||
// set language |
$language = lang_getfrombrowser($config_lang, $config_lang_default, null, false); |
||||||
$language = lang_getfrombrowser($config_lang, $config_lang_default, null, false); |
|
||||||
|
|
||||||
?> |
?> |
@ -1,118 +1,69 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
include("header.php"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
// asset |
||||||
or contact me at wietsew@users.sourceforge.net |
$query = "SELECT |
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
|
||||||
// includes |
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// start output |
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
// set language variables |
|
||||||
$smarty->assign($lang); |
|
||||||
|
|
||||||
// setup asset |
|
||||||
// build query |
|
||||||
$query = "SELECT |
|
||||||
COUNT(asset_id) AS asset_counter |
COUNT(asset_id) AS asset_counter |
||||||
FROM |
FROM |
||||||
asset"; |
asset"; |
||||||
|
|
||||||
// run query |
$assets = $db->db_select($query); |
||||||
$assets = $db->db_select($query); |
$smarty->assign("asset_counter", $assets[0]['asset_counter']); |
||||||
|
|
||||||
// counter to tpl |
// location |
||||||
$smarty->assign("asset_counter", $assets[0]['asset_counter']); |
$query = "SELECT |
||||||
|
|
||||||
// setup location |
|
||||||
// build query |
|
||||||
$query = "SELECT |
|
||||||
COUNT(location_id) AS location_counter |
COUNT(location_id) AS location_counter |
||||||
FROM |
FROM |
||||||
location"; |
location"; |
||||||
|
|
||||||
// run query |
$locations = $db->db_select($query); |
||||||
$locations = $db->db_select($query); |
$smarty->assign("location_counter", $locations[0]['location_counter']); |
||||||
|
|
||||||
// counter to tpl |
|
||||||
$smarty->assign("location_counter", $locations[0]['location_counter']); |
|
||||||
|
|
||||||
// setup node |
// node |
||||||
// build query |
$query = "SELECT |
||||||
$query = "SELECT |
|
||||||
COUNT(node_id) AS node_counter |
COUNT(node_id) AS node_counter |
||||||
FROM |
FROM |
||||||
node"; |
node"; |
||||||
|
|
||||||
// run query |
$nodes = $db->db_select($query); |
||||||
$nodes = $db->db_select($query); |
$smarty->assign("node_counter", $nodes[0]['node_counter']); |
||||||
|
|
||||||
// counter to tpl |
|
||||||
$smarty->assign("node_counter", $nodes[0]['node_counter']); |
|
||||||
|
|
||||||
// setup subnet |
// subnet |
||||||
// build query |
$query = "SELECT |
||||||
$query = "SELECT |
|
||||||
COUNT(subnet_id) AS subnet_counter |
COUNT(subnet_id) AS subnet_counter |
||||||
FROM |
FROM |
||||||
subnet"; |
subnet"; |
||||||
|
$subnets = $db->db_select($query); |
||||||
|
$smarty->assign("subnet_counter", $subnets[0]['subnet_counter']); |
||||||
|
|
||||||
// run query |
// vlan |
||||||
$subnets = $db->db_select($query); |
$query = "SELECT |
||||||
|
|
||||||
// counter to tpl |
|
||||||
$smarty->assign("subnet_counter", $subnets[0]['subnet_counter']); |
|
||||||
|
|
||||||
// setup vlan |
|
||||||
// build query |
|
||||||
$query = "SELECT |
|
||||||
COUNT(vlan_id) AS vlan_counter |
COUNT(vlan_id) AS vlan_counter |
||||||
FROM |
FROM |
||||||
vlan"; |
vlan"; |
||||||
|
|
||||||
// run query |
$vlans = $db->db_select($query); |
||||||
$vlans = $db->db_select($query); |
$smarty->assign("vlan_counter", $vlans[0]['vlan_counter']); |
||||||
|
|
||||||
// counter to tpl |
|
||||||
$smarty->assign("vlan_counter", $vlans[0]['vlan_counter']); |
|
||||||
|
|
||||||
// setup zone |
// zone |
||||||
// build query |
$query = "SELECT |
||||||
$query = "SELECT |
|
||||||
COUNT(zone_id) AS zone_counter |
COUNT(zone_id) AS zone_counter |
||||||
FROM |
FROM |
||||||
zone"; |
zone"; |
||||||
|
$zones = $db->db_select($query); |
||||||
|
$smarty->assign("zone_counter", $zones[0]['zone_counter']); |
||||||
|
|
||||||
// run query |
$smarty->display("index.tpl"); |
||||||
$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"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,48 +1,25 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("lib/functions.php"); |
||||||
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 |
require("lib/db.class.php"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
$db = new Db($dblink); |
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
require("lib/user.class.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
$user = new User(); |
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// functions |
require_once('smarty3/Smarty.class.php'); |
||||||
include("lib/functions.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']); |
||||||
|
|
||||||
// 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,58 +1,31 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$location_id = sanitize($_GET['location_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// includes |
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// get id |
|
||||||
$location_id = sanitize($_GET['location_id']); |
|
||||||
|
|
||||||
// start output |
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
// set language variables |
|
||||||
$smarty->assign($lang); |
|
||||||
|
|
||||||
// setup location |
|
||||||
// build query |
|
||||||
$query = "SELECT |
|
||||||
location_name |
location_name |
||||||
FROM |
FROM |
||||||
location |
location |
||||||
WHERE |
WHERE |
||||||
location_id=" . $location_id; |
location_id=" . $location_id; |
||||||
|
|
||||||
// run query |
$location = $db->db_select($query); |
||||||
$location = $db->db_select($query); |
|
||||||
|
|
||||||
// send to tpl |
$smarty->assign("location_id", $location_id); |
||||||
$smarty->assign("location_id", $location_id); |
$smarty->assign("location_name", $location[0]['location_name']); |
||||||
$smarty->assign("location_name", $location[0]['location_name']); |
|
||||||
|
|
||||||
// end page |
$smarty->display("locationdel.tpl"); |
||||||
// output |
|
||||||
$smarty->display("locationdel.tpl"); |
|
||||||
|
|
||||||
// footer |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,60 +1,31 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$location_id = sanitize($_GET['location_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// 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 |
|
||||||
$query = "SELECT |
|
||||||
location_name |
location_name |
||||||
FROM |
FROM |
||||||
location |
location |
||||||
WHERE |
WHERE |
||||||
location_id=" . $location_id; |
location_id=" . $location_id; |
||||||
|
|
||||||
// run query |
$location = $db->db_select($query); |
||||||
$location = $db->db_select($query); |
|
||||||
|
|
||||||
$smarty->assign("location_id", $location_id); |
|
||||||
$smarty->assign("location_name", $location[0]['location_name']); |
|
||||||
|
|
||||||
// setup subnet |
|
||||||
$smarty->assign("subnet_options", $db->options_subnet()); |
|
||||||
|
|
||||||
// end page |
$smarty->assign("location_id", $location_id); |
||||||
// output |
$smarty->assign("location_name", $location[0]['location_name']); |
||||||
$smarty->display("locationsubnetadd.tpl"); |
$smarty->assign("subnet_options", $db->options_subnet()); |
||||||
|
$smarty->display("locationsubnetadd.tpl"); |
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,76 +1,47 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$location_id = sanitize($_GET['location_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
// location |
||||||
// includes |
$query = "SELECT |
||||||
include("includes.php"); |
location_name |
||||||
|
FROM |
||||||
// 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 |
|
||||||
$query = "SELECT |
|
||||||
location.location_name AS location_name |
|
||||||
FROM |
|
||||||
location |
location |
||||||
WHERE |
WHERE |
||||||
location.location_id=" . $location_id; |
location_id=" . $location_id; |
||||||
|
|
||||||
// run query |
$location = $db->db_select($query); |
||||||
$location = $db->db_select($query); |
|
||||||
|
|
||||||
$smarty->assign("location_id", $location_id); |
$smarty->assign("location_id", $location_id); |
||||||
$smarty->assign("location_name", $location[0]['location_name']); |
$smarty->assign("location_name", $location[0]['location_name']); |
||||||
|
|
||||||
// setup subnet |
// subnet |
||||||
// build query |
$query = "SELECT |
||||||
$query = "SELECT |
s.subnet_id, |
||||||
subnet.subnet_id AS subnet_id, |
s.subnet_address, |
||||||
subnet.subnet_address AS subnet_address, |
s.subnet_mask |
||||||
subnet.subnet_mask AS subnet_mask |
|
||||||
FROM |
FROM |
||||||
subnetlocation, |
subnetlocation AS l LEFT JOIN subnet AS s USING (subnet_id) |
||||||
subnet |
|
||||||
WHERE |
WHERE |
||||||
subnetlocation.location_id=" . $location_id . " |
l.location_id=" . $location_id . " |
||||||
AND subnet.subnet_id=subnetlocation.subnet_id |
|
||||||
ORDER BY |
ORDER BY |
||||||
INET_ATON(subnet.subnet_address)"; |
INET_ATON(s.subnet_address)"; |
||||||
|
|
||||||
// run query |
$subnets = $db->db_select($query); |
||||||
$subnets = $db->db_select($query); |
$smarty->assign($subnets); |
||||||
$smarty->assign($subnets); |
|
||||||
|
|
||||||
// end page |
$smarty->display("locationsubnetdel.tpl"); |
||||||
// output |
|
||||||
$smarty->display("locationsubnetdel.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,58 +1,31 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$location_id = sanitize($_GET['location_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
// location |
||||||
*****************************************************************************/ |
$query = "SELECT |
||||||
|
|
||||||
// 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 |
|
||||||
$query = "SELECT |
|
||||||
location_name |
location_name |
||||||
FROM |
FROM |
||||||
location |
location |
||||||
WHERE |
WHERE |
||||||
location_id=" . $location_id; |
location_id=" . $location_id; |
||||||
|
|
||||||
// run query |
$location = $db->db_select($query); |
||||||
$location = $db->db_select($query); |
|
||||||
|
|
||||||
// send to tpl |
$smarty->assign("location_id", $location_id); |
||||||
$smarty->assign("location_id", $location_id); |
$smarty->assign("location_name", $location[0]['location_name']); |
||||||
$smarty->assign("location_name", $location[0]['location_name']); |
|
||||||
|
|
||||||
// end page |
$smarty->display("locationsubnetedit.tpl"); |
||||||
// output |
|
||||||
$smarty->display("locationsubnetedit.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,33 +1,17 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
// user logout: clear session |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
$_SESSION = array(); |
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
// redirect to start page |
||||||
or contact me at wietsew@users.sourceforge.net |
header("Location: index.php"); |
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
|
||||||
// includes |
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// logout |
|
||||||
// user logout |
|
||||||
$user->user_logout(); |
|
||||||
|
|
||||||
// redirect |
|
||||||
header("Location: index.php"); |
|
||||||
?> |
?> |
@ -1,57 +1,31 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$node_id = sanitize($_GET['node_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// includes |
node_ip |
||||||
include("includes.php"); |
FROM |
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
|
||||||
node |
node |
||||||
WHERE |
WHERE |
||||||
node.node_id=" . $node_id; |
node.node_id=" . $node_id; |
||||||
|
|
||||||
// run query |
$node = $db->db_select($query); |
||||||
$node = $db->db_select($query); |
|
||||||
|
|
||||||
$smarty->assign("node_id", $node_id); |
$smarty->assign("node_id", $node_id); |
||||||
$smarty->assign("node_ip", $node[0]['node_ip']); |
$smarty->assign("node_ip", $node[0]['node_ip']); |
||||||
|
|
||||||
// end page |
$smarty->display("natedit.tpl"); |
||||||
// output |
|
||||||
$smarty->display("natedit.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,78 +1,40 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
include("header.php"); |
||||||
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 |
if(isset($_GET['subnet_id'])) { |
||||||
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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
|
||||||
// includes |
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// start output |
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
// set language variables |
|
||||||
$smarty->assign($lang); |
|
||||||
|
|
||||||
// start node |
|
||||||
// setup view |
|
||||||
// subnet |
|
||||||
if(isset($_GET['subnet_id'])) { |
|
||||||
// get id |
|
||||||
$subnet_id = sanitize($_GET['subnet_id']); |
$subnet_id = sanitize($_GET['subnet_id']); |
||||||
|
$subnet_view = "WHERE node.subnet_id=" . $subnet_id; |
||||||
// build query part |
|
||||||
$subnet_view = "AND node.subnet_id=" . $subnet_id; |
|
||||||
|
|
||||||
// to tpl |
|
||||||
$smarty->assign("subnet_id", $subnet_id); |
$smarty->assign("subnet_id", $subnet_id); |
||||||
} else { |
} else { |
||||||
// to tpl |
|
||||||
$smarty->assign("subnet_id", ""); |
$smarty->assign("subnet_id", ""); |
||||||
} |
} |
||||||
|
|
||||||
// build query |
$query = "SELECT |
||||||
$query = "SELECT |
|
||||||
asset.asset_id, |
asset.asset_id, |
||||||
REPLACE(asset.asset_name, ' ', ' ') AS asset_name, |
REPLACE(asset.asset_name, ' ', ' ') AS asset_name, |
||||||
asset.asset_info, |
asset.asset_info, |
||||||
node.node_id, |
node.node_id, |
||||||
node.node_ip |
node.node_ip |
||||||
FROM |
FROM |
||||||
asset, |
asset LEFT JOIN node USING (asset_id) |
||||||
node |
|
||||||
WHERE |
|
||||||
asset.asset_id=node.asset_id |
|
||||||
" . $subnet_view . " |
" . $subnet_view . " |
||||||
GROUP BY |
GROUP BY |
||||||
node.node_id |
node.node_id |
||||||
ORDER BY |
ORDER BY |
||||||
INET_ATON(node.node_ip)"; |
INET_ATON(node.node_ip)"; |
||||||
|
|
||||||
// run query |
$nodes = $db->db_select($query); |
||||||
$nodes = $db->db_select($query); |
$smarty->assign("nodes", $nodes); |
||||||
$smarty->assign("nodes", $nodes); |
$smarty->display("node.tpl"); |
||||||
|
|
||||||
// end page |
|
||||||
// output |
|
||||||
$smarty->display("node.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
||||||
|
@ -1,54 +1,26 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
if ((isset($_GET['node_ip'])) ? $node_ip = sanitize($_GET['node_ip']) : $node_ip = ''); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
if ((isset($_GET['subnet_id'])) ? $subnet_id = sanitize($_GET['subnet_id']) : $subnet_id = ''); |
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$smarty->assign("user_dns1suffix", $_SESSION['suser_dns1suffix']); |
||||||
// includes |
$smarty->assign("user_dns2suffix", $_SESSION['suser_dns2suffix']); |
||||||
include("includes.php"); |
$smarty->assign("node_ip", $node_ip); |
||||||
|
|
||||||
// check for set ip and/or subnet_id |
$smarty->assign("subnet_options", $db->options_subnet()); |
||||||
if ((isset($_GET['node_ip'])) ? $node_ip = sanitize($_GET['node_ip']) : $node_ip = ''); |
$smarty->assign("assetclass_options", $db->options_assetclass()); |
||||||
if ((isset($_GET['subnet_id'])) ? $subnet_id = sanitize($_GET['subnet_id']) : $subnet_id = ''); |
$smarty->display("nodeadd.tpl"); |
||||||
|
|
||||||
// start output |
include("footer.php"); |
||||||
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 |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
include("header.php"); |
||||||
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 |
$smarty->display("options.tpl"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("footer.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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,123 +1,99 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
include("header.php"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
$smarty->assign("language", $language); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
|
||||||
// includes |
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// start output |
if($_SESSION['suser_menu_assets']=='on') { |
||||||
include("header.php"); |
|
||||||
|
|
||||||
// set language variables |
|
||||||
$smarty->assign($lang); |
|
||||||
$smarty->assign("language", $language); |
|
||||||
|
|
||||||
// setup options |
|
||||||
// set menu checkboxes |
|
||||||
// assets |
|
||||||
if($_SESSION['suser_menu_assets']=='on') { |
|
||||||
$user_menu_assets_checked = 'checked'; |
$user_menu_assets_checked = 'checked'; |
||||||
} else { |
} else { |
||||||
$user_menu_assets_checked = ''; |
$user_menu_assets_checked = ''; |
||||||
} |
} |
||||||
// assetclasses |
// assetclasses |
||||||
if($_SESSION['suser_menu_assetclasses']=='on') { |
if($_SESSION['suser_menu_assetclasses']=='on') { |
||||||
$user_menu_assetclasses_checked = 'checked'; |
$user_menu_assetclasses_checked = 'checked'; |
||||||
} else { |
} else { |
||||||
$user_menu_assetclasses_checked = ''; |
$user_menu_assetclasses_checked = ''; |
||||||
} |
} |
||||||
// assetclassgroups |
// assetclassgroups |
||||||
if($_SESSION['suser_menu_assetclassgroups']=='on') { |
if($_SESSION['suser_menu_assetclassgroups']=='on') { |
||||||
$user_menu_assetclassgroups_checked = 'checked'; |
$user_menu_assetclassgroups_checked = 'checked'; |
||||||
} else { |
} else { |
||||||
$user_menu_assetclassgroups_checked = ''; |
$user_menu_assetclassgroups_checked = ''; |
||||||
} |
} |
||||||
// locations |
// locations |
||||||
if($_SESSION['suser_menu_locations']=='on') { |
if($_SESSION['suser_menu_locations']=='on') { |
||||||
$user_menu_locations_checked = 'checked'; |
$user_menu_locations_checked = 'checked'; |
||||||
} else { |
} else { |
||||||
$user_menu_locations_checked = ''; |
$user_menu_locations_checked = ''; |
||||||
} |
} |
||||||
// nodes |
// nodes |
||||||
if($_SESSION['suser_menu_nodes']=='on') { |
if($_SESSION['suser_menu_nodes']=='on') { |
||||||
$user_menu_nodes_checked = 'checked'; |
$user_menu_nodes_checked = 'checked'; |
||||||
} else { |
} else { |
||||||
$user_menu_nodes_checked = ''; |
$user_menu_nodes_checked = ''; |
||||||
} |
} |
||||||
// subnets |
// subnets |
||||||
if($_SESSION['suser_menu_subnets']=='on') { |
if($_SESSION['suser_menu_subnets']=='on') { |
||||||
$user_menu_subnets_checked = 'checked'; |
$user_menu_subnets_checked = 'checked'; |
||||||
} else { |
} else { |
||||||
$user_menu_subnets_checked = ''; |
$user_menu_subnets_checked = ''; |
||||||
} |
} |
||||||
// users |
// users |
||||||
if($_SESSION['suser_menu_users']=='on') { |
if($_SESSION['suser_menu_users']=='on') { |
||||||
$user_menu_users_checked = 'checked'; |
$user_menu_users_checked = 'checked'; |
||||||
} else { |
} else { |
||||||
$user_menu_users_checked = ''; |
$user_menu_users_checked = ''; |
||||||
} |
} |
||||||
// vlans |
// vlans |
||||||
if($_SESSION['suser_menu_vlans']=='on') { |
if($_SESSION['suser_menu_vlans']=='on') { |
||||||
$user_menu_vlans_checked = 'checked'; |
$user_menu_vlans_checked = 'checked'; |
||||||
} else { |
} else { |
||||||
$user_menu_vlans_checked = ''; |
$user_menu_vlans_checked = ''; |
||||||
} |
} |
||||||
// zones |
// zones |
||||||
if($_SESSION['suser_menu_zones']=='on') { |
if($_SESSION['suser_menu_zones']=='on') { |
||||||
$user_menu_zones_checked = 'checked'; |
$user_menu_zones_checked = 'checked'; |
||||||
} else { |
} else { |
||||||
$user_menu_zones_checked = ''; |
$user_menu_zones_checked = ''; |
||||||
} |
} |
||||||
// tooltips |
// tooltips |
||||||
if($_SESSION['suser_tooltips']=='on') { |
if($_SESSION['suser_tooltips']=='on') { |
||||||
$user_tooltips_checked = 'checked'; |
$user_tooltips_checked = 'checked'; |
||||||
} else { |
} else { |
||||||
$user_tooltips_checked = ''; |
$user_tooltips_checked = ''; |
||||||
} |
} |
||||||
|
|
||||||
// send to tpl |
$smarty->assign("user_id", $_SESSION['suser_id']); |
||||||
$smarty->assign("user_id", $_SESSION['suser_id']); |
$smarty->assign("user_imagesize", $_SESSION['suser_imagesize']); |
||||||
$smarty->assign("user_imagesize", $_SESSION['suser_imagesize']); |
$smarty->assign("user_imagecount", $_SESSION['suser_imagecount']); |
||||||
$smarty->assign("user_imagecount", $_SESSION['suser_imagecount']); |
$smarty->assign("user_mac", $_SESSION['suser_mac']); |
||||||
$smarty->assign("user_mac", $_SESSION['suser_mac']); |
$smarty->assign("user_dateformat", $_SESSION['suser_dateformat']); |
||||||
$smarty->assign("user_dateformat", $_SESSION['suser_dateformat']); |
$smarty->assign("user_dns1suffix", $_SESSION['suser_dns1suffix']); |
||||||
$smarty->assign("user_dns1suffix", $_SESSION['suser_dns1suffix']); |
$smarty->assign("user_dns2suffix", $_SESSION['suser_dns2suffix']); |
||||||
$smarty->assign("user_dns2suffix", $_SESSION['suser_dns2suffix']); |
$smarty->assign("user_language", $_SESSION['suser_language']); |
||||||
$smarty->assign("user_language", $_SESSION['suser_language']); |
$smarty->assign("user_menu_assets_checked", $user_menu_assets_checked); |
||||||
$smarty->assign("user_menu_assets_checked", $user_menu_assets_checked); |
$smarty->assign("user_menu_assetclasses_checked", $user_menu_assetclasses_checked); |
||||||
$smarty->assign("user_menu_assetclasses_checked", $user_menu_assetclasses_checked); |
$smarty->assign("user_menu_assetclassgroups_checked", $user_menu_assetclassgroups_checked); |
||||||
$smarty->assign("user_menu_assetclassgroups_checked", $user_menu_assetclassgroups_checked); |
$smarty->assign("user_menu_locations_checked", $user_menu_locations_checked); |
||||||
$smarty->assign("user_menu_locations_checked", $user_menu_locations_checked); |
$smarty->assign("user_menu_nodes_checked", $user_menu_nodes_checked); |
||||||
$smarty->assign("user_menu_nodes_checked", $user_menu_nodes_checked); |
$smarty->assign("user_menu_subnets_checked", $user_menu_subnets_checked); |
||||||
$smarty->assign("user_menu_subnets_checked", $user_menu_subnets_checked); |
$smarty->assign("user_menu_users_checked", $user_menu_users_checked); |
||||||
$smarty->assign("user_menu_users_checked", $user_menu_users_checked); |
$smarty->assign("user_menu_vlans_checked", $user_menu_vlans_checked); |
||||||
$smarty->assign("user_menu_vlans_checked", $user_menu_vlans_checked); |
$smarty->assign("user_menu_zones_checked", $user_menu_zones_checked); |
||||||
$smarty->assign("user_menu_zones_checked", $user_menu_zones_checked); |
$smarty->assign("user_tooltips_checked", $user_tooltips_checked); |
||||||
$smarty->assign("user_tooltips_checked", $user_tooltips_checked); |
|
||||||
|
|
||||||
// end page |
$smarty->display("optionseditdisplay.tpl"); |
||||||
// output |
|
||||||
$smarty->display("optionseditdisplay.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,39 +1,16 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
include("header.php"); |
||||||
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 |
$smarty->display("optionseditpassword.tpl"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("footer.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$subnet_id = sanitize($_GET['subnet_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// includes |
subnet_address, |
||||||
include("includes.php"); |
subnet_mask |
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
subnet |
subnet |
||||||
WHERE |
WHERE |
||||||
subnet.subnet_id=" . $subnet_id; |
subnet_id=" . $subnet_id; |
||||||
|
|
||||||
// run query |
|
||||||
$subnet = $db->db_select($query); |
|
||||||
|
|
||||||
$smarty->assign("subnet_id", $subnet_id); |
$subnet = $db->db_select($query); |
||||||
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
|
||||||
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
|
||||||
|
|
||||||
// start parent |
$smarty->assign("subnet_id", $subnet_id); |
||||||
// build query |
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
||||||
$smarty->assign("location_options", $db->options_location()); |
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
||||||
|
|
||||||
// end page |
$smarty->assign("location_options", $db->options_location()); |
||||||
// output |
$smarty->display("subnetlocationadd.tpl"); |
||||||
$smarty->display("subnetlocationadd.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,82 +1,54 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$subnet_id = sanitize($_GET['subnet_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
// subnet |
||||||
// includes |
$query = "SELECT |
||||||
include("includes.php"); |
subnet_address, |
||||||
|
subnet_mask |
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
subnet |
subnet |
||||||
WHERE |
WHERE |
||||||
subnet.subnet_id=" . $subnet_id; |
subnet_id=" . $subnet_id; |
||||||
|
|
||||||
// run query |
// run query |
||||||
$subnet = $db->db_select($query); |
$subnet = $db->db_select($query); |
||||||
|
|
||||||
$smarty->assign("subnet_id", $subnet_id); |
$smarty->assign("subnet_id", $subnet_id); |
||||||
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
||||||
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
||||||
|
|
||||||
// setup location |
// location |
||||||
// build query |
$query = "SELECT |
||||||
$query = "SELECT |
l.location_id, |
||||||
location.location_id AS location_id, |
l.location_name |
||||||
location.location_name AS location_name |
|
||||||
FROM |
FROM |
||||||
subnetlocation, |
subnetlocation AS s LEFT JOIN location USING (location_id) |
||||||
location |
|
||||||
WHERE |
WHERE |
||||||
subnetlocation.subnet_id=" . $subnet_id . " |
s.subnet_id=" . $subnet_id . " |
||||||
AND location.location_id=subnetlocation.location_id |
|
||||||
ORDER BY |
ORDER BY |
||||||
location.location_name"; |
l.location_name"; |
||||||
|
|
||||||
// run query |
// run query |
||||||
$records = $db->db_select($query); |
$records = $db->db_select($query); |
||||||
$locations = array(); |
$locations = array(); |
||||||
foreach ($records as $rec) { |
foreach ($records as $rec) { |
||||||
$locations[$rec['location_id']] = $rec['location_name']; |
$locations[$rec['location_id']] = $rec['location_name']; |
||||||
} |
} |
||||||
$smarty->assign("location_options", $locations); |
$smarty->assign("location_options", $locations); |
||||||
|
|
||||||
|
|
||||||
// end page |
$smarty->display("subnetlocationdel.tpl"); |
||||||
// output |
|
||||||
$smarty->display("subnetlocationdel.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
||||||
|
@ -1,59 +1,34 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$subnet_id = sanitize($_GET['subnet_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// includes |
subnet_address, |
||||||
include("includes.php"); |
subnet_mask |
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
subnet |
subnet |
||||||
WHERE |
WHERE |
||||||
subnet.subnet_id=" . $subnet_id; |
subnet_id=" . $subnet_id; |
||||||
|
|
||||||
// run query |
// run query |
||||||
$subnet = $db->db_select($query); |
$subnet = $db->db_select($query); |
||||||
|
|
||||||
$smarty->assign("subnet_id", $subnet_id); |
$smarty->assign("subnet_id", $subnet_id); |
||||||
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
||||||
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
||||||
|
|
||||||
// end page |
$smarty->display("subnetlocationedit.tpl"); |
||||||
// output |
|
||||||
$smarty->display("subnetlocationedit.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,78 +1,51 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$subnet_id = sanitize($_GET['subnet_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
// subnet |
||||||
// includes |
$query = "SELECT |
||||||
include("includes.php"); |
subnet_address, |
||||||
|
subnet_mask |
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
subnet |
subnet |
||||||
WHERE |
WHERE |
||||||
subnet.subnet_id=" . $subnet_id; |
subnet_id=" . $subnet_id; |
||||||
|
|
||||||
// run query |
// run query |
||||||
$subnet = $db->db_select($query); |
$subnet = $db->db_select($query); |
||||||
|
|
||||||
$smarty->assign("subnet_id", $subnet_id); |
$smarty->assign("subnet_id", $subnet_id); |
||||||
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
||||||
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
||||||
|
|
||||||
// setup vlan |
// vlan |
||||||
// build query |
$query = "SELECT |
||||||
$query = "SELECT |
v.vlan_id, |
||||||
vlan.vlan_id AS vlan_id, |
v.vlan_number, |
||||||
vlan.vlan_number AS vlan_number, |
v.vlan_name |
||||||
vlan.vlan_name AS vlan_name |
|
||||||
FROM |
FROM |
||||||
subnetvlan, |
subnetvlan AS s LEFT JOIN vlan AS v USING (vlan_id) |
||||||
vlan |
|
||||||
WHERE |
WHERE |
||||||
subnetvlan.subnet_id=" . $subnet_id . " |
s.subnet_id=" . $subnet_id . " |
||||||
AND vlan.vlan_id=subnetvlan.vlan_id |
|
||||||
ORDER BY |
ORDER BY |
||||||
vlan.vlan_number"; |
v.vlan_number"; |
||||||
|
|
||||||
// run query |
// run query |
||||||
$vlans = $db->db_select($query); |
$vlans = $db->db_select($query); |
||||||
$smarty->assign("vlans", $vlans); |
$smarty->assign("vlans", $vlans); |
||||||
|
|
||||||
// end page |
$smarty->display("subnetvlandel.tpl"); |
||||||
// output |
|
||||||
$smarty->display("subnetvlandel.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,59 +1,33 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$subnet_id = sanitize($_GET['subnet_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// includes |
subnet_address, |
||||||
include("includes.php"); |
subnet_mask |
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
subnet |
subnet |
||||||
WHERE |
WHERE |
||||||
subnet.subnet_id=" . $subnet_id; |
subnet_id=" . $subnet_id; |
||||||
|
|
||||||
// run query |
$subnet = $db->db_select($query); |
||||||
$subnet = $db->db_select($query); |
|
||||||
|
|
||||||
$smarty->assign("subnet_id", $subnet_id); |
$smarty->assign("subnet_id", $subnet_id); |
||||||
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
$smarty->assign("subnet_address", $subnet[0]['subnet_address']); |
||||||
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
$smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); |
||||||
|
|
||||||
// end page |
$smarty->display("subnetvlanedit.tpl"); |
||||||
// output |
|
||||||
$smarty->display("subnetvlanedit.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,54 +1,28 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
include("header.php"); |
||||||
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 |
$query = "SELECT |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
user_id, |
||||||
|
user_name, |
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
user_displayname |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
user |
user |
||||||
ORDER BY |
ORDER BY |
||||||
user.user_name"; |
user_name"; |
||||||
|
|
||||||
// run query |
$users = $db->db_select($query); |
||||||
$users = $db->db_select($query); |
|
||||||
$smarty->assign("users", $users); |
|
||||||
|
|
||||||
// end page |
$smarty->assign("users", $users); |
||||||
// output |
$smarty->display("user.tpl"); |
||||||
$smarty->display("user.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,39 +1,16 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
include("header.php"); |
||||||
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 |
$smarty->display("useradd.tpl"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("footer.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$user_id = sanitize($_GET['user_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// includes |
user_name |
||||||
include("includes.php"); |
FROM |
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
|
||||||
user |
user |
||||||
WHERE |
WHERE |
||||||
user.user_id=" . $user_id; |
user_id=" . $user_id; |
||||||
|
|
||||||
// run query |
$user = $db->db_select($query); |
||||||
$user = $db->db_select($query); |
|
||||||
|
|
||||||
// send to tpl |
$smarty->assign("user_id", $user_id); |
||||||
$smarty->assign("user_id", $user_id); |
$smarty->assign("user_name", $user[0]['user_name']); |
||||||
$smarty->assign("user_name", $user[0]['user_name']); |
|
||||||
|
|
||||||
// end page |
$smarty->display("userdel.tpl"); |
||||||
// output |
|
||||||
$smarty->display("userdel.tpl"); |
|
||||||
|
|
||||||
// footer |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,60 +1,33 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
the Free Software Foundation, either version 3 of the License, or |
*****************************************************************************/ |
||||||
(at your option) any later version. |
|
||||||
|
include("includes.php"); |
||||||
This program is distributed in the hope that it will be useful, |
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
$user_id = sanitize($_GET['user_id']); |
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
GNU General Public License for more details. |
include("header.php"); |
||||||
|
|
||||||
You should have received a copy of the GNU General Public License |
$query = "SELECT |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
user_name, |
||||||
|
user_displayname |
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
FROM |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
|
||||||
user |
user |
||||||
WHERE |
WHERE |
||||||
user.user_id=" . $user_id; |
user_id=" . $user_id; |
||||||
|
|
||||||
// run query |
$user = $db->db_select($query); |
||||||
$user = $db->db_select($query); |
|
||||||
|
|
||||||
// send to tpl |
$smarty->assign("user_id", $user_id); |
||||||
$smarty->assign("user_id", $user_id); |
$smarty->assign("user_name", $user[0]['user_name']); |
||||||
$smarty->assign("user_name", $user[0]['user_name']); |
$smarty->assign("user_displayname", $user[0]['user_displayname']); |
||||||
$smarty->assign("user_displayname", $user[0]['user_displayname']); |
|
||||||
|
|
||||||
// end page |
$smarty->display("useredit.tpl"); |
||||||
// output |
|
||||||
$smarty->display("useredit.tpl"); |
|
||||||
|
|
||||||
// footer |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,60 +1,35 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$user_id = sanitize($_GET['user_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// includes |
user_name, |
||||||
include("includes.php"); |
user_displayname |
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
user |
user |
||||||
WHERE |
WHERE |
||||||
user.user_id=" . $user_id; |
user_id=" . $user_id; |
||||||
|
|
||||||
// run query |
// run query |
||||||
$user = $db->db_select($query); |
$user = $db->db_select($query); |
||||||
|
|
||||||
// send to tpl |
// send to tpl |
||||||
$smarty->assign("user_id", $user_id); |
$smarty->assign("user_id", $user_id); |
||||||
$smarty->assign("user_name", $user[0]['user_name']); |
$smarty->assign("user_name", $user[0]['user_name']); |
||||||
$smarty->assign("user_displayname", $user[0]['user_displayname']); |
$smarty->assign("user_displayname", $user[0]['user_displayname']); |
||||||
|
|
||||||
// end page |
$smarty->display("userview.tpl"); |
||||||
// output |
|
||||||
$smarty->display("userview.tpl"); |
|
||||||
|
|
||||||
// footer |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,55 +1,29 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
the Free Software Foundation, either version 3 of the License, or |
*****************************************************************************/ |
||||||
(at your option) any later version. |
|
||||||
|
include("includes.php"); |
||||||
This program is distributed in the hope that it will be useful, |
include("header.php"); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
$query = "SELECT |
||||||
GNU General Public License for more details. |
vlan_id, |
||||||
|
vlan_number, |
||||||
You should have received a copy of the GNU General Public License |
vlan_name, |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
LEFT(vlan_info, 60) AS vlan_info |
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
|
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
vlan |
vlan |
||||||
ORDER BY |
ORDER BY |
||||||
vlan.vlan_number"; |
vlan_number"; |
||||||
|
|
||||||
// run query |
$vlans = $db->db_select($query); |
||||||
$vlans = $db->db_select($query); |
|
||||||
$smarty->assign("vlans", $vlans); |
|
||||||
|
|
||||||
// end page |
$smarty->assign("vlans", $vlans); |
||||||
// output |
$smarty->display("vlan.tpl"); |
||||||
$smarty->display("vlan.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,39 +1,16 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
include("header.php"); |
||||||
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 |
$smarty->display("vlanadd.tpl"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("footer.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
the Free Software Foundation, either version 3 of the License, or |
*****************************************************************************/ |
||||||
(at your option) any later version. |
|
||||||
|
include("includes.php"); |
||||||
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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
|
||||||
vlan |
|
||||||
WHERE |
|
||||||
vlan.vlan_id=" . $vlan_id; |
|
||||||
|
|
||||||
// run query |
$vlan_id = sanitize($_GET['vlan_id']); |
||||||
$vlan = $db->db_select($query); |
|
||||||
|
include("header.php"); |
||||||
|
|
||||||
|
$query = "SELECT |
||||||
|
vlan_name, |
||||||
|
vlan_number |
||||||
|
FROM |
||||||
|
vlan |
||||||
|
WHERE |
||||||
|
vlan_id=" . $vlan_id; |
||||||
|
|
||||||
// send to tpl |
$vlan = $db->db_select($query); |
||||||
$smarty->assign("vlan_id", $vlan_id); |
|
||||||
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
|
||||||
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
|
||||||
|
|
||||||
// end page |
$smarty->assign("vlan_id", $vlan_id); |
||||||
// output |
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
||||||
$smarty->display("vlandel.tpl"); |
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
||||||
|
$smarty->display("vlandel.tpl"); |
||||||
|
|
||||||
// footer |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,62 +1,35 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$vlan_id = sanitize($_GET['vlan_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
// setup vlan |
||||||
// build query |
$query = "SELECT |
||||||
$query = "SELECT |
vlan_name, |
||||||
vlan.vlan_name AS vlan_name, |
vlan_number, |
||||||
vlan.vlan_number AS vlan_number, |
vlan_info |
||||||
vlan.vlan_info AS vlan_info |
FROM |
||||||
FROM |
|
||||||
vlan |
vlan |
||||||
WHERE |
WHERE |
||||||
vlan.vlan_id=" . $vlan_id; |
vlan_id=" . $vlan_id; |
||||||
|
|
||||||
// run query |
|
||||||
$vlan = $db->db_select($query); |
|
||||||
|
|
||||||
// send to tpl |
$vlan = $db->db_select($query); |
||||||
$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 |
$smarty->assign("vlan_id", $vlan_id); |
||||||
// output |
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
||||||
$smarty->display("vlanedit.tpl"); |
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
||||||
|
$smarty->assign("vlan_info", $vlan[0]['vlan_info']); |
||||||
|
$smarty->display("vlanedit.tpl"); |
||||||
|
|
||||||
// footer |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,81 +1,53 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$vlan_id = sanitize($_GET['vlan_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
// vlan |
||||||
// includes |
$query = "SELECT |
||||||
include("includes.php"); |
vlan_name, |
||||||
|
vlan_number |
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
vlan |
vlan |
||||||
WHERE |
WHERE |
||||||
vlan.vlan_id=" . $vlan_id; |
vlan_id=" . $vlan_id; |
||||||
|
|
||||||
// run query |
// run query |
||||||
$vlan = $db->db_select($query); |
$vlan = $db->db_select($query); |
||||||
|
|
||||||
$smarty->assign("vlan_id", $vlan_id); |
$smarty->assign("vlan_id", $vlan_id); |
||||||
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
||||||
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
||||||
|
|
||||||
// setup subnet |
// setup subnet |
||||||
// build query |
$query = "SELECT |
||||||
$query = "SELECT |
s.subnet_id, |
||||||
subnet.subnet_id AS subnet_id, |
s.subnet_address, |
||||||
subnet.subnet_address AS subnet_address, |
s.subnet_mask |
||||||
subnet.subnet_mask AS subnet_mask |
|
||||||
FROM |
FROM |
||||||
subnetvlan, |
subnetvlan AS v LEFT JOIN subnet AS s USING(subnet_id) |
||||||
subnet |
|
||||||
WHERE |
WHERE |
||||||
subnetvlan.vlan_id=" . $vlan_id . " |
v.vlan_id=" . $vlan_id . " |
||||||
AND subnet.subnet_id=subnetvlan.subnet_id |
|
||||||
ORDER BY |
ORDER BY |
||||||
INET_ATON(subnet.subnet_address)"; |
INET_ATON(s.subnet_address)"; |
||||||
|
|
||||||
// run query |
$subnets = $db->db_select($query); |
||||||
$subnets = $db->db_select($query); |
foreach ($subnets as $subnet) { |
||||||
foreach ($subnets as $subnet) { |
|
||||||
$subnet_options[$subnet['subnet_id']] = $subnet['subnet_address'].'/'.$subnet['subnet_mask']; |
$subnet_options[$subnet['subnet_id']] = $subnet['subnet_address'].'/'.$subnet['subnet_mask']; |
||||||
} |
} |
||||||
$smarty->assign("subnet_options", $subnet_options); |
$smarty->assign("subnet_options", $subnet_options); |
||||||
|
|
||||||
// end page |
$smarty->display("vlansubnetdel.tpl"); |
||||||
// output |
|
||||||
$smarty->display("vlansubnetdel.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,60 +1,33 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$vlan_id = sanitize($_GET['vlan_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// includes |
vlan_name, |
||||||
include("includes.php"); |
vlan_number |
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
FROM |
||||||
vlan |
vlan |
||||||
WHERE |
WHERE |
||||||
vlan.vlan_id=" . $vlan_id; |
vlan_id=" . $vlan_id; |
||||||
|
|
||||||
// run query |
$vlan = $db->db_select($query); |
||||||
$vlan = $db->db_select($query); |
|
||||||
|
|
||||||
// send to tpl |
$smarty->assign("vlan_id", $vlan_id); |
||||||
$smarty->assign("vlan_id", $vlan_id); |
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
||||||
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
||||||
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
|
||||||
|
|
||||||
// end page |
$smarty->display("vlansubnetedit.tpl"); |
||||||
// output |
|
||||||
$smarty->display("vlansubnetedit.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,82 +1,52 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$vlan_id = sanitize($_GET['vlan_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
// vlan |
||||||
// includes |
$query = "SELECT |
||||||
include("includes.php"); |
vlan_name, |
||||||
|
vlan_number, |
||||||
// get id |
vlan_info |
||||||
$vlan_id = sanitize($_GET['vlan_id']); |
FROM |
||||||
|
|
||||||
// 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 |
|
||||||
FROM |
|
||||||
vlan |
vlan |
||||||
WHERE |
WHERE |
||||||
vlan.vlan_id=" . $vlan_id; |
vlan_id=" . $vlan_id; |
||||||
|
|
||||||
// run query |
$vlan = $db->db_select($query); |
||||||
$vlan = $db->db_select($query); |
|
||||||
|
$smarty->assign("vlan_id", $vlan_id); |
||||||
// send to tpl |
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
||||||
$smarty->assign("vlan_id", $vlan_id); |
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
||||||
$smarty->assign("vlan_name", $vlan[0]['vlan_name']); |
$smarty->assign("vlan_info", nl2br($vlan[0]['vlan_info'])); |
||||||
$smarty->assign("vlan_number", $vlan[0]['vlan_number']); |
|
||||||
$smarty->assign("vlan_info", nl2br($vlan[0]['vlan_info'])); |
// subnets |
||||||
|
$query = "SELECT |
||||||
// setup subnets |
s.subnet_id, |
||||||
// build query |
s.subnet_address, |
||||||
$query = "SELECT |
s.subnet_mask, |
||||||
subnet.subnet_id, |
s.subnet_info |
||||||
subnet.subnet_address, |
FROM |
||||||
subnet.subnet_mask, |
subnet AS s LEFT JOIN subnetvlan AS v USING (subnet_id) |
||||||
subnet.subnet_info |
WHERE |
||||||
FROM |
v.vlan_id=" . $vlan_id . " |
||||||
subnet, |
ORDER BY |
||||||
subnetvlan |
INET_ATON(s.subnet_address)"; |
||||||
WHERE |
|
||||||
subnetvlan.vlan_id=" . $vlan_id . " |
$subnets = $db->db_select($query); |
||||||
AND subnet.subnet_id=subnetvlan.subnet_id |
$smarty->assign("subnets", $subnets); |
||||||
ORDER BY |
|
||||||
INET_ATON(subnet.subnet_address)"; |
$smarty->display("vlanview.tpl"); |
||||||
|
|
||||||
// run query |
include("footer.php"); |
||||||
$subnets = $db->db_select($query); |
|
||||||
$smarty->assign("subnets", $subnets); |
|
||||||
|
|
||||||
// end page |
|
||||||
// output |
|
||||||
$smarty->display("vlanview.tpl"); |
|
||||||
|
|
||||||
// end output |
|
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,55 +1,31 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
include("header.php"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
$query = "SELECT |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
|
||||||
// includes |
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// start output |
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
// set language variables |
|
||||||
$smarty->assign($lang); |
|
||||||
|
|
||||||
// build query |
|
||||||
$query = "SELECT |
|
||||||
zone_id, |
zone_id, |
||||||
zone_origin, |
zone_origin, |
||||||
zone_soa, |
zone_soa, |
||||||
zone_hostmaster, |
zone_hostmaster, |
||||||
zone_serial |
zone_serial |
||||||
FROM |
FROM |
||||||
zone |
zone |
||||||
ORDER BY |
ORDER BY |
||||||
zone_origin"; |
zone_origin"; |
||||||
|
|
||||||
// run query |
$zones = $db->db_select($query); |
||||||
$zones = $db->db_select($query); |
|
||||||
$smarty->assign("zones", $zones); |
|
||||||
|
|
||||||
// end page |
$smarty->assign("zones", $zones); |
||||||
// output |
$smarty->display("zone.tpl"); |
||||||
$smarty->display("zone.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,39 +1,16 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
include("header.php"); |
||||||
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 |
$smarty->display("zoneadd.tpl"); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("footer.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$zone_id = sanitize($_GET['zone_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT zone_id, zone_origin, zone_serial FROM zone WHERE zone_id=" . $zone_id; |
||||||
// includes |
$zone = $db->db_select($query); |
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// get id |
$smarty->assign("zone", $zone[0]); |
||||||
$zone_id = sanitize($_GET['zone_id']); |
$smarty->display("zonedel.tpl"); |
||||||
|
|
||||||
// start output |
include("footer.php"); |
||||||
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"); |
|
||||||
?> |
?> |
@ -1,57 +1,30 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$zone_id = sanitize($_GET['zone_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
$query = "SELECT |
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// 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 assetclassgroup |
|
||||||
// build query |
|
||||||
$query = "SELECT |
|
||||||
zone_id, zone_soa, zone_hostmaster, zone_origin, zone_ttl_default, |
zone_id, zone_soa, zone_hostmaster, zone_origin, zone_ttl_default, |
||||||
zone_refresh, zone_retry, zone_expire, zone_ttl, zone_serial, |
zone_refresh, zone_retry, zone_expire, zone_ttl, zone_serial, |
||||||
zone_ns1, zone_ns2, zone_ns3, zone_mx1, zone_mx2, zone_info |
zone_ns1, zone_ns2, zone_ns3, zone_mx1, zone_mx2, zone_info |
||||||
FROM |
FROM |
||||||
zone |
zone |
||||||
WHERE |
WHERE |
||||||
zone_id=" . $zone_id; |
zone_id=" . $zone_id; |
||||||
|
|
||||||
// run query |
$zone = $db->db_select($query); |
||||||
$zone = $db->db_select($query); |
|
||||||
$smarty->assign("zone", $zone[0]); |
|
||||||
|
|
||||||
// end page |
$smarty->assign("zone", $zone[0]); |
||||||
// output |
$smarty->display("zoneedit.tpl"); |
||||||
$smarty->display("zoneedit.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
@ -1,57 +1,31 @@ |
|||||||
<?php |
<?php |
||||||
/***************************************************************************** |
/***************************************************************************** |
||||||
IP Reg, a PHP/MySQL IPAM tool |
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 |
SPDX-License-Identifier: GPL-3.0-or-later |
||||||
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, |
include("includes.php"); |
||||||
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 |
$zone_id = sanitize($_GET['zone_id']); |
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
||||||
|
|
||||||
For more information, visit http://sourceforge.net/projects/ipreg, |
include("header.php"); |
||||||
or contact me at wietsew@users.sourceforge.net |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
// start page |
$query = "SELECT |
||||||
// includes |
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
// get id |
|
||||||
$zone_id = sanitize($_GET['zone_id']); |
|
||||||
|
|
||||||
// start output |
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
// set language variables |
|
||||||
$smarty->assign($lang); |
|
||||||
|
|
||||||
// setup assetclassgroup |
|
||||||
// build query |
|
||||||
$query = "SELECT |
|
||||||
zone_id, zone_soa, zone_hostmaster, zone_origin, zone_ttl_default, |
zone_id, zone_soa, zone_hostmaster, zone_origin, zone_ttl_default, |
||||||
zone_refresh, zone_retry, zone_expire, zone_ttl, zone_serial, |
zone_refresh, zone_retry, zone_expire, zone_ttl, zone_serial, |
||||||
zone_ns1, zone_ns2, zone_ns3, zone_mx1, zone_mx2, zone_info |
zone_ns1, zone_ns2, zone_ns3, zone_mx1, zone_mx2, zone_info |
||||||
FROM |
FROM |
||||||
zone |
zone |
||||||
WHERE |
WHERE |
||||||
zone_id=" . $zone_id; |
zone_id=" . $zone_id; |
||||||
|
|
||||||
// run query |
$zone = $db->db_select($query); |
||||||
$zone = $db->db_select($query); |
|
||||||
$smarty->assign("zone", $zone[0]); |
|
||||||
|
|
||||||
// end page |
$smarty->assign("zone", $zone[0]); |
||||||
// output |
$smarty->display("zoneview.tpl"); |
||||||
$smarty->display("zoneview.tpl"); |
|
||||||
|
|
||||||
// end output |
include("footer.php"); |
||||||
include("footer.php"); |
|
||||||
?> |
?> |
Reference in new issue