~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to dialup_admin/bin/tot_stats

  • Committer: Bazaar Package Importer
  • Author(s): Paul Hampson
  • Date: 2006-01-15 13:34:13 UTC
  • mto: (3.1.3 dapper) (4.1.3 sid) (1.1.14 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060115133413-zo1dslttvdoalqym
Tags: upstream-1.1.0
ImportĀ upstreamĀ versionĀ 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
die "sql_command directive is not set in admin.conf\n" if ($sqlcmd eq '');
29
29
die "Could not find sql binary. Please make sure that the \$sqlcmd variable points to the right location\n" if (! -x $sqlcmd);
30
30
 
31
 
$sql_password = ($sql_password == '') ? '' : "-p$sql_password";
 
31
$sql_password = (!$sql_password) ? '' : "-p$sql_password";
32
32
 
33
33
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
34
34
$date_start = POSIX::strftime("%Y-%m-%d %T",0,0,0,($mday - 1),$mon,$year,$wday,$yday,$isdst);