the 1.x series.
* Fix a small error in lib/sql/find.php3. This closes bug #103
* Add a small note in the FAQ about checking for sql/ldap driver availability in PHP if the user get's
a blank white page back.
+
+Ver 1.70.3:
+* Test for unset variable, rather than empty variable in clean_radacct,
+ monthly_tot_stats and truncate_radacct.
+
+Ver 1.70.2:
+* Fix redirects in dialup-admin pages on servers with register_globals
+ turned off.
+* HTTP form fields will always fail is_int, use in_numeric instead.
+
+Ver 1.70.1:
+* Report correct data transfer statistics for users.
+* Lower-case sql column names to match creation scripts.
+* Fix creation of empty groups.
+* Put quote around usernames in HTML output.
+* Properly notice when we've got a blank password to SQL.
+
Ver 1.70:
* Add the /bin postgresql compatibility patch from Guy Fraser
* Add ldap_userdn as a configuration directive. If set we use that for
die "sql command '$sqlcmd' not found or does not seem to be executable\n" if (! -x $sqlcmd);
if ($sql_type eq 'mysql'){
- $sql_password = ($sql_password eq '') ? '' : "-p$sql_password";
+ $sql_password = (!$sql_password) ? '' : "-p$sql_password";
}
$sql_password =~ s/(\W)/\\$1/g;
$realm_del = '@' if ($realm_del eq '');
$realm_for = 'suffix' if ($realm_for eq '');
if ($sql_type eq 'mysql'){
- $pass = ($sql_password ne '') ? "-p$sql_password" : '';
+ $pass = (!$sql_password) ? '' : "-p$sql_password";
}
else{
$pass = $sql_password;
die "sql command '$sqlcmd' not found or does not seem to be executable\n" if (! -x $sqlcmd);
if ($sql_type eq 'mysql'){
- $sql_password = ($sql_password eq '') ? '' : "-p$sql_password";
+ $sql_password = (!$sql_password) ? '' : "-p$sql_password";
}
$sql_password =~ s/(\W)/\\$1/g;
die "sql command '$sqlcmd' not found or does not seem to be executable\n" if (! -x $sqlcmd);
if ($sql_type eq 'mysql'){
- $sql_password = ($sql_password eq '') ? '' : "-p$sql_password";
+ $sql_password = (!$sql_password) ? '' : "-p$sql_password";
}
$sql_password =~ s/(\W)/\\$1/g;
die "sql command '$sqlcmd' not found or does not seem to be executable\n" if (! -x $sqlcmd);
if ($sql_type eq 'mysql'){
- $sql_password = ($sql_password eq '') ? '' : "-p$sql_password";
+ $sql_password = (!$sql_password) ? '' : "-p$sql_password";
}
$sql_password =~ s/(\W)/\\$1/g;
<form method=post>
- <input type=hidden name=login value=<?php echo $login ?>>
+ <input type=hidden name=login value="<?php echo $login ?>">
<input type=hidden name=do_changes value=0>
<input type=hidden name=show value=0>
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
}
?>
<form method=post>
- <input type=hidden name=login value=<?php print $login ?>>
+ <input type=hidden name=login value="<?php print $login ?>">
<input type=hidden name=delete_user value="0">
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
<tr>
?>
<form name="edituser" method=post>
- <input type=hidden name=login value=<?php print $login ?>>
+ <input type=hidden name=login value="<?php print $login ?>">
<input type=hidden name=user_type value=<?php print $user_type ?>>
<input type=hidden name=change value="0">
<input type=hidden name=add value="0">
$da_abort=1;
}
}
+ } else {
+ $res = @da_sql_query($link,$config,
+ "INSERT INTO $config[sql_usergroup_table] (groupname)
+ VALUES ('$login');");
+ if (!$res || !@da_sql_affected_rows($link,$res,$config)){
+ echo "<b>Unable to create group $login: " . da_sql_error($link,$config) . "</b><br>\n";
+ $da_abort=1;
+ }
}
- else
- echo "<b>Members list is empty!!</b><br>\n";
if (!$da_abort){
foreach($show_attrs as $key => $attr){
if ($attrmap["$key"] == 'none')