|
|
|
@ -1,23 +1,10 @@ |
|
|
|
|
<?php |
|
|
|
|
/***************************************************************************** |
|
|
|
|
IP Reg, a PHP/MySQL IPAM tool |
|
|
|
|
Copyright (C) 2007-2009 Wietse Warendorff |
|
|
|
|
Copyright (C) 2007-2009 Wietse Warendorff (up to v0.5) |
|
|
|
|
Copyright (C) 2011-2023 Thomas Hooge |
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
|
|
|
|
it under the terms of the GNU General Public License as published by |
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
|
|
|
|
(at your option) any later version. |
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
|
GNU General Public License for more details. |
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
|
|
|
|
|
|
For more information, visit http://sourceforge.net/projects/ipreg, |
|
|
|
|
or contact me at wietsew@users.sourceforge.net |
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later |
|
|
|
|
*****************************************************************************/ |
|
|
|
|
|
|
|
|
|
// strip mac address to 12 char string |
|
|
|
@ -154,7 +141,8 @@ |
|
|
|
|
return $output; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function print_tree ($params, &$smarty) { |
|
|
|
|
//function print_tree($params, &$smarty) { |
|
|
|
|
function print_tree($params, Smarty_Internal_Template $template) { |
|
|
|
|
if (empty($params['level'])) { |
|
|
|
|
$level = 0; |
|
|
|
|
} else { |
|
|
|
|