* In the show groups page, note that we only show groups with members
* In lib/sql/group_info.php3 only unset variables if we need to. In lib/sql/defaults.php3 don't run for groups
only for users
+* Fix Bug #167
Ver 1.72:
* Move the xlat function to a separate file in lib/xlat.php3
* Add a lib/sql/nas_list.php3 to also get the nas list from sql (naslist.conf still works)
die "sql_command directive is not set in admin.conf\n" if ($sqlcmd eq '');
die "Could not find sql binary. Please make sure that the \$sqlcmd variable points to the right location\n" if (! -x $sqlcmd);
-$sql_password = ($sql_password == '') ? '' : "-p$sql_password";
+$sql_password = ($sql_password eq '') ? '' : "-p$sql_password";
$sql_password =~ s/(\W)/\\$1/g;
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
die "sql_command directive is not set in admin.conf\n" if ($sqlcmd eq '');
die "Could not find sql binary. Please make sure that the \$sqlcmd variable points to the right location\n" if (! -x $sqlcmd);
-$sql_password = ($sql_password == '') ? '' : "-p$sql_password";
+$sql_password = ($sql_password eq '') ? '' : "-p$sql_password";
$sql_password =~ s/(\W)/\\$1/g;
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;