25 lines
		
	
	
		
			699 B
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			699 B
		
	
	
	
		
			PHP
		
	
	
	
<?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");
 | 
						|
		
 | 
						|
$sql = "SELECT zone_id AS id, zone_origin AS origin, zone_soa AS soa,
 | 
						|
            zone_hostmaster AS hostmaster, zone_serial AS serial
 | 
						|
        FROM zone
 | 
						|
        ORDER BY zone_origin";
 | 
						|
$sth = $dbh->query($sql);
 | 
						|
$smarty->assign("zones", $sth->fetchAll());
 | 
						|
 | 
						|
$smarty->display("zone.tpl");
 | 
						|
		
 | 
						|
include("footer.php");
 | 
						|
?>
 |