* 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.
}
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"} . "'" ;
}
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";
<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>