Location: PHPKode > projects > Simple Management for BIND > smbind-0.4.7/php/src/newzone.php
<?php
include("include.php");

if(is_admin())  {
	$smarty->assign("pagetitle", "New zone");
	$smarty->assign("userlist", sql_query("SELECT id, username " .
					      "FROM users " .
					      "ORDER BY username")
				    );
	$smarty->assign("current_user", $userid);
	$smarty->assign("pri_dns", $_CONF['pri_dns']);
	$smarty->assign("sec_dns", $_CONF['sec_dns']);
	$smarty->assign("template", "newzone.tpl");
	$smarty->assign("help", help("newzone"));
	$smarty->assign("menu_button", menu_buttons());
	$smarty->display("main.tpl");
}
else {
	// The user is not an administrator.
	notadmin($smarty);
}
?>
Return current item: Simple Management for BIND