]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Make 'Add NAS' function in the nas admin page more easily accessible
authorkkalev <kkalev>
Thu, 2 Sep 2004 16:28:50 +0000 (16:28 +0000)
committerkkalev <kkalev>
Thu, 2 Sep 2004 16:28:50 +0000 (16:28 +0000)
Changelog
htdocs/nas_admin.php3

index 38e56c43d473c739794a46a5b199454aed9fef16..dd1d3656bda1cf1be39008793c03ea75edaebe49 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -22,6 +22,7 @@ Ver 1.75:
 * Move a few header() calls after including config.php3 so that we have access to the relevant
   variables.
 * Make pagesize 'all' work again. Bug found by apellido jr., wilfredo p.
+* Make 'Add NAS' function in the nas admin page more easily accessible
 Ver 1.72:
 * Move the xlat function to a separate file in lib/xlat.php3
 * Add a lib/sql/nas_list.php3 to also get the nas list from sql (naslist.conf still works)
index 6a6b5e9f0b0c0ad8ca9611ff3554c4c521161d3e..1175805419381a27388755993006d6d4273bf942 100644 (file)
@@ -34,7 +34,7 @@ EOM;
 }
 
 
-if ($clear_fields == 1)
+if ($clear_fields == 1 || ($do_it == 0 && $select_nas == 0))
        $selected_nas = $readonly = '';
 else
        $readonly = 'readonly';
@@ -264,9 +264,9 @@ EOM;
 <br>
 <select name=action size=1>
 <?php
-if ($clear_fields == 1)
+if ($clear_fields == 1 || ($do_it == 0 && $select_nas == 0))
        echo "<option value=\"add_nas\">Add NAS\n";
-else
+if ($clear_fields == 0)
        echo <<<EOM
 <option value="change_nas">Change NAS Info
 <option value="del_nas">Delete Selected NAS