Added several security changes to the admin interface, including freezing a user's account for 15 minutes after 10 failed login attempts.
Added 3 new reports to the admin interface: url log, lagged log and user group login reports Added new AST_phone_update.pl --agent-lookup flag to allow for logging of the IP address of the agent's SIP or IAX phone connection. Can be enabled as a crontab entry to perform the lookups on each asterisk server. git-svn-id: svn://192.168.202.10@1997 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
#
|
||||
# ADMIN_keepalive_ALL.pl version 2.6
|
||||
# ADMIN_keepalive_ALL.pl version 2.8
|
||||
#
|
||||
# Designed to keep the astGUIclient processes alive and check every minute
|
||||
# Replaces all other ADMIN_keepalive scripts
|
||||
@@ -84,6 +84,7 @@
|
||||
# 130402-2148 - Changes to allow for native IAX bridging to other servers
|
||||
# 130424-1607 - Added NOINT prefix option for call menu prompts to do Playback() instead of Background()
|
||||
# 130508-1009 - Small fix for INVALID_2ND and 3RD
|
||||
# 130624-0733 - Added optimize for vicidial_users due to logging IP and auth timestamp
|
||||
#
|
||||
|
||||
$DB=0; # Debug flag
|
||||
@@ -914,6 +915,15 @@ if ($timeclock_end_of_day_NOW > 0)
|
||||
if ($DB) {print "|",$aryA[0],"|",$aryA[1],"|",$aryA[2],"|",$aryA[3],"|","\n";}
|
||||
$sthA->finish();
|
||||
|
||||
$stmtA = "optimize table vicidial_users;";
|
||||
if($DBX){print STDERR "\n|$stmtA|\n";}
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
if ($DB) {print "|",$aryA[0],"|",$aryA[1],"|",$aryA[2],"|",$aryA[3],"|","\n";}
|
||||
$sthA->finish();
|
||||
|
||||
$stmtA = "update vicidial_campaign_agents SET calls_today=0;";
|
||||
if($DBX){print STDERR "\n|$stmtA|\n";}
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
|
||||
Reference in New Issue
Block a user