check_ip() should now work in nas_admin.php3. Only require lib/functions.php3 once
authorkkalev <kkalev>
Fri, 18 Mar 2005 14:01:45 +0000 (14:01 +0000)
committerkkalev <kkalev>
Fri, 18 Mar 2005 14:01:45 +0000 (14:01 +0000)
in stats.php3

dialup_admin/htdocs/nas_admin.php3
dialup_admin/htdocs/stats.php3

index f2bb7f0..c4b3cfc 100644 (file)
@@ -45,6 +45,7 @@ if ($link){
                $selected_nas = da_sql_escape_string($selected_nas);
                switch ($action) {
                        case 'check_nas':
+                               require_once('../lib/functions.php3');
                                if (!check_ip($selected_nas) && $selected_nas == gethostbyname($selected_nas))
                                        $msg = "<b>The NAS name <font color=red>is not</font> valid</b><br>\n";
                                else
index 7f2c07c..d29a3f4 100644 (file)
@@ -13,7 +13,7 @@ require_once('../lib/xlat.php3');
 <center>
 
 <?php
-require('../lib/functions.php3');
+require_once('../lib/functions.php3');
 
 if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php3"))
        include_once("../lib/sql/drivers/$config[sql_type]/functions.php3");