From: kkalev Date: Thu, 22 Apr 2004 07:18:24 +0000 (+0000) Subject: Make nas_list actually work X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=c230a12af9cdcba3fb3ce043682a8f5636e1c757;p=freeradius-dialup-admin.git Make nas_list actually work --- diff --git a/Changelog b/Changelog index 4886701..a10c265 100644 --- a/Changelog +++ b/Changelog @@ -21,6 +21,7 @@ Ver 1.70: * Fix small bugs in accounting.php3 and user_stats.php3. Add nas_admin.php3 to the buttons page * Add da_sql_escape_string for all relevant variables in lib/sql files * Keep the nas list in a separate array $nas_list. Update various pages to use that one now. +* Make nas_list actually work Ver 1.68: * Huge PostgreSQL compatibility patch by Guy Fraser diff --git a/conf/config.php3 b/conf/config.php3 index e276a0b..412d884 100644 --- a/conf/config.php3 +++ b/conf/config.php3 @@ -26,8 +26,8 @@ if (!isset($config)){ $val=$config[$matches[1]]; $v=preg_replace("/%\{$matches[1]\}/",$val,$v); } - if (preg_match("/^general_nas(\d+)_(\w+)$/",$key,$matches)) - $nas_list[$matches[2]][$matches[1]] = $key; + if (preg_match("/^nas(\d+)_(\w+)$/",$key,$matches)) + $nas_list[$matches[1]][$matches[2]] = $v; if ($key == 'INCLUDE'){ if (is_readable($v)) array_push($EXTRA_ARR,file($v)); @@ -47,8 +47,8 @@ if (!isset($config)){ $val=$config[$matches[1]]; $v=preg_replace("/%\{$matches[1]\}/",$val,$v); } - if (preg_match("/^general_nas(\d+)_(\w+)$/",$key,$matches)) - $nas_list[$matches[2]][$matches[1]] = $key; + if (preg_match("/^nas(\d+)_(\w+)$/",$key,$matches)) + $nas_list[$matches[1]][$matches[2]] = $v; $config["$key"]="$v"; } }