parent
c63b500d77
commit
32bd592098
@ -1,27 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
if (($_SESSION['suser_role_admin'] == 0) && ($_SESSION['suser_role_manage'] == 0)) { |
|
||||||
header_location('comments.php?comments=accessdenied'); |
|
||||||
} |
|
||||||
|
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
$realms = db_load_enum('user','user_realm'); |
|
||||||
|
|
||||||
$smarty->assign("realm_ids", $realms); |
|
||||||
$smarty->assign("realm_names", $realms); |
|
||||||
$smarty->assign("realm_selected", $realms[0]); |
|
||||||
|
|
||||||
$smarty->display("useradd.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,28 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
if ($_SESSION['suser_role_admin'] == 0) { |
|
||||||
header_location('comments.php?comments=accessdenied'); |
|
||||||
} |
|
||||||
|
|
||||||
$user_id = sanitize($_GET['user_id']); |
|
||||||
|
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
$sth = $dbh->prepare("SELECT user_id AS id user_name AS user_name FROM user WHERE user_id=?"); |
|
||||||
$dbh->execute([$user_id]); |
|
||||||
|
|
||||||
$smarty->assign("user", $sth->fetch(PDO::FETCH_OBJ)); |
|
||||||
|
|
||||||
$smarty->display("userdel.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,39 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
if (($_SESSION['suser_role_admin'] == 0) && ($_SESSION['suser_role_manage'] == 0)) { |
|
||||||
header_location('comments.php?comments=accessdenied'); |
|
||||||
} |
|
||||||
|
|
||||||
$user_id = sanitize($_GET['user_id']); |
|
||||||
|
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
$sql = "SELECT user_id AS id, user_name AS name, user_displayname AS displayname, |
|
||||||
user_realm AS realm, user_role AS role, user_flags AS flags |
|
||||||
FROM user |
|
||||||
WHERE user_id=?"; |
|
||||||
$sth = $dbh->prepare($sql); |
|
||||||
$sth->execute([$user_id]); |
|
||||||
|
|
||||||
$user = $sth->fetch(PDO::FETCH_OBJ); |
|
||||||
$user->role = explode(',', $user->role); |
|
||||||
$smarty->assign("user", $user); |
|
||||||
|
|
||||||
// auth realms |
|
||||||
$smarty->assign("realm_ids", ['local', 'ldap']); |
|
||||||
$smarty->assign("realm_names", ['Local', 'LDAP']); |
|
||||||
$smarty->assign("realm_selected", $user->realm); |
|
||||||
|
|
||||||
$smarty->display("useredit.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,35 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
if (($_SESSION['suser_role_admin'] == 0) and ($_SESSION['suser_role_manage'] == 0)) { |
|
||||||
header_location('comments.php?comments=accessdenied'); |
|
||||||
} |
|
||||||
|
|
||||||
$user_id = sanitize($_GET['user_id']); |
|
||||||
|
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
$sql = "SELECT user_id AS id, user_name AS name, user_displayname AS displayname, |
|
||||||
user_realm as realm, user_role AS role, user_flags AS flags |
|
||||||
FROM user |
|
||||||
WHERE user_id=?"; |
|
||||||
$sth = $dbh->prepare($sql); |
|
||||||
$sth->execute([$user_id]); |
|
||||||
|
|
||||||
$user = $sth->fetch(PDO::FETCH_OBJ); |
|
||||||
$user->role = explode(',', $user->role); |
|
||||||
$user->flags = explode(',', $user->flags); |
|
||||||
$smarty->assign("user", $user); |
|
||||||
|
|
||||||
$smarty->display("userview.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,18 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
$smarty->assign("scripts", 'jscolor.js'); |
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
$smarty->display("vlanadd.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,26 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
$vlan_id = sanitize($_GET['vlan_id']); |
|
||||||
|
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
$sql = "SELECT vlan_id AS id, vlan_name AS name, vlan_number AS number |
|
||||||
FROM vlan |
|
||||||
WHERE vlan_id=?"; |
|
||||||
$sth = $dbh->prepare($sql); |
|
||||||
$sth->execute([$vlan_id]); |
|
||||||
$smarty->assign("vlan", $sth->fetch(PDO::FETCH_OBJ)); |
|
||||||
|
|
||||||
$smarty->display("vlandel.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,28 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
$vlan_id = sanitize($_GET['vlan_id']); |
|
||||||
|
|
||||||
$smarty->assign("scripts", 'jscolor.js'); |
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
$sql = "SELECT vlan_id AS id, vlan_name AS name, vlan_number AS number, |
|
||||||
vlan_color AS color, vlan_info AS info |
|
||||||
FROM vlan |
|
||||||
WHERE vlan_id=?"; |
|
||||||
$sth = $dbh->prepare($sql); |
|
||||||
$sth->execute([$vlan_id]); |
|
||||||
$smarty->assign("vlan", $sth->fetch(PDO::FETCH_OBJ)); |
|
||||||
|
|
||||||
$smarty->display("vlanedit.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,37 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
$vlan_id = sanitize($_GET['vlan_id']); |
|
||||||
|
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
// vlan |
|
||||||
$sql = "SELECT vlan_id AS id, vlan_name AS name, vlan_number AS number, |
|
||||||
vlan_info AS info, vlan_color AS color |
|
||||||
FROM vlan |
|
||||||
WHERE vlan_id=?"; |
|
||||||
$sth = $dbh->prepare($sql); |
|
||||||
$sth->execute([$vlan_id]); |
|
||||||
$smarty->assign("vlan", $sth->fetch(PDO::FETCH_OBJ)); |
|
||||||
|
|
||||||
// subnets |
|
||||||
$sql = "SELECT s.subnet_id, s.subnet_address, s.subnet_mask, s.subnet_info |
|
||||||
FROM subnet AS s LEFT JOIN subnetvlan AS v USING (subnet_id) |
|
||||||
WHERE v.vlan_id=? |
|
||||||
ORDER BY INET_ATON(s.subnet_address)"; |
|
||||||
$sth = $dbh->prepare($sql); |
|
||||||
$sth->execute([$vlan_id]); |
|
||||||
$smarty->assign("subnets", $sth->fetchAll()); |
|
||||||
|
|
||||||
$smarty->display("vlanview.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,16 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
$smarty->display("zoneadd.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,23 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
$zone_id = sanitize($_GET['zone_id']); |
|
||||||
|
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
$sth = $dbh->prepare("SELECT zone_id, zone_origin, zone_serial FROM zone WHERE zone_id=?"); |
|
||||||
$sth->execute($sql); |
|
||||||
$smarty->assign("zone", $sth->fetchAll(PDO::FETCH_ASSOC)); |
|
||||||
|
|
||||||
$smarty->display("zonedel.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,27 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
$zone_id = sanitize($_GET['zone_id']); |
|
||||||
|
|
||||||
include("header.php"); |
|
||||||
$sql = "SELECT zone_id, zone_soa, zone_hostmaster, zone_origin, zone_ttl_default, |
|
||||||
zone_refresh, zone_retry, zone_expire, zone_ttl, zone_serial, |
|
||||||
zone_ns1, zone_ns2, zone_ns3, zone_mx1, zone_mx2, zone_info |
|
||||||
FROM zone |
|
||||||
WHERE zone_id=?"; |
|
||||||
$sth = $dbh->prepare($sql); |
|
||||||
$sth->execute([$zone_id]); |
|
||||||
$smarty->assign("zone", $sth->fetch(PDO::FETCH_OBJ)); |
|
||||||
|
|
||||||
$smarty->display("zoneedit.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
@ -1,29 +0,0 @@ |
|||||||
<?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 |
|
||||||
*****************************************************************************/ |
|
||||||
|
|
||||||
include("includes.php"); |
|
||||||
|
|
||||||
$zone_id = sanitize($_GET['zone_id']); |
|
||||||
|
|
||||||
include("header.php"); |
|
||||||
|
|
||||||
$sql = "SELECT zone_id, zone_soa, zone_hostmaster, zone_origin, |
|
||||||
zone_ttl_default, zone_refresh, zone_retry, zone_expire, |
|
||||||
zone_ttl, zone_serial, zone_ns1, zone_ns2, zone_ns3, |
|
||||||
zone_mx1, zone_mx2, zone_info |
|
||||||
FROM zone |
|
||||||
WHERE zone_id=?"; |
|
||||||
$sth = $dbh->prepare($sql); |
|
||||||
$sth->execute([$zone_id]); |
|
||||||
$smarty->assign("zone", $sth->fetch(PDO::FETCH_OBJ)); |
|
||||||
|
|
||||||
$smarty->display("zoneview.tpl"); |
|
||||||
|
|
||||||
include("footer.php"); |
|
||||||
?> |
|
Reference in new issue