]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Fix small bugs in accounting.php3 and user_stats.php3. Add nas_admin.php3 to the...
authorkkalev <kkalev>
Sat, 17 Apr 2004 15:07:39 +0000 (15:07 +0000)
committerkkalev <kkalev>
Sat, 17 Apr 2004 15:07:39 +0000 (15:07 +0000)
Changelog
htdocs/accounting.php3
htdocs/user_stats.php3
html/buttons/default/buttons.html.php3

index e8327901b0f82950a949392a1708f7a3cfe030c1..9b13e201bbbe277b97f179b82209baaa7738a19e 100644 (file)
--- 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.
 
index df5f4a2bb8a4e5771d3642b89bafb377819731f6..1d42015bd0766040f8988ceea2e007e902cc3a9a 100644 (file)
@@ -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"} . "'" ;
index 2d6c4bbf51d2007da90d469cf10ae63f2ee5c4c9..d96a17cb8bc068eee351d78f57d89dc4e5262d7a 100644 (file)
@@ -206,7 +206,7 @@ while(1){
 }
 ksort($servers);
 foreach ($servers as $name => $ip){
-       if ($server == $ip])
+       if ($server == $ip)
                echo "<option selected value=\"$ip\">$name\n";
        else
                echo "<option value=\"$ip\">$name\n";
index 4ed3dbb1f799bb331a439bce56bb2f176934f6f0..7a7b9db64fbe00e9a8aaa4fd135b79fd19046a80 100644 (file)
@@ -48,6 +48,9 @@ if ($HTTP_SERVER_VARS["PHP_AUTH_USER"])
        <tr align=left><td id="menu3" onmouseover='myin("3");' onmouseout='myout("3");'>
        <a id="a3" href="user_finger.php3" target="content" title="Show Online Users">Online Users</a>
        </td></tr>
+       <tr align=left><td id="menu18" onmouseover='myin("18");' onmouseout='myout("18");'>
+       <a id="a18" href="nas_admin.php3" target="content" title="Administer RADIUS Clients">RADIUS Clients</a>
+       </td></tr>
        <tr align=left><td id="menu7" onmouseover='myin("7");' onmouseout='myout("7");'>
        <a id="a7" href="badusers.php3?login=anyone" target="content" title="Show Bad Users">Bad Users</a>
        </td></tr>