From: kkalev Date: Sat, 17 Apr 2004 15:07:39 +0000 (+0000) Subject: Fix small bugs in accounting.php3 and user_stats.php3. Add nas_admin.php3 to the... X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=d76a67288187d4b77cb640faf11cde51a6d8c034;p=freeradius-dialup-admin.git Fix small bugs in accounting.php3 and user_stats.php3. Add nas_admin.php3 to the buttons page --- diff --git a/Changelog b/Changelog index e832790..9b13e20 100644 --- a/Changelog +++ b/Changelog @@ -18,6 +18,7 @@ Ver 1.70: * Use the ldap_userdn directive where applicable in the functions.php3 file * Add an sql_xlat function * Add a nas administration page for sql based clients +* Fix small bugs in accounting.php3 and user_stats.php3. Add nas_admin.php3 to the buttons page TODO: Check out the sql queries in lin/sql for sql injection. diff --git a/htdocs/accounting.php3 b/htdocs/accounting.php3 index df5f4a2..1d42015 100644 --- a/htdocs/accounting.php3 +++ b/htdocs/accounting.php3 @@ -213,7 +213,7 @@ while (${"item_of_w$i"}){ } if (!$op_found) die("Operator passed is not valid. Exiting abnormaly."); - ${"item_of_w$i"} = preg_replace('/\s/','',${"item_of_w$i}); + ${"item_of_w$i"} = preg_replace('/\s/','',${"item_of_w$i"}); ${"value_of_w$i"} = da_sql_escape_string(${"value_of_w$i"}); $where .= ($i == 1) ? ' WHERE ' . ${"item_of_w$i"} . ' ' . ${"operator_of_w$i"} . " '" . ${"value_of_w$i"} . "'" : ' AND ' . ${"item_of_w$i"} . ' ' . ${"operator_of_w$i"} . " '" . ${"value_of_w$i"} . "'" ; diff --git a/htdocs/user_stats.php3 b/htdocs/user_stats.php3 index 2d6c4bb..d96a17c 100644 --- a/htdocs/user_stats.php3 +++ b/htdocs/user_stats.php3 @@ -206,7 +206,7 @@ while(1){ } ksort($servers); foreach ($servers as $name => $ip){ - if ($server == $ip]) + if ($server == $ip) echo "