Fixed extended alt dial bug in agent scripts

Changed agent screen to not delete session reservations at logout, instead ADMIN_keepalive will clear them out once a day at timeclock reset time
Changed callback purge to clear out ACTIVE callbacks older than month/week as well as LIVE

git-svn-id: svn://192.168.202.10@1202 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2009-08-12 05:44:35 +00:00
parent c0bbceebb6
commit cf282e76fe
8 changed files with 313 additions and 152 deletions
+8 -8
View File
@@ -21332,13 +21332,13 @@ if ($ADD==8)
{
if ($SUB==89)
{
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user='$user' and status='LIVE' and callback_time < '$past_month_date';";
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user='$user' and status IN('LIVE','ACTIVE') and callback_time < '$past_month_date';";
$rslt=mysql_query($stmt, $link);
echo "<br>User($user) callback listings LIVE for more than one month have been made INACTIVE\n";
}
if ($SUB==899)
{
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user='$user' and status='LIVE' and callback_time < '$past_week_date';";
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user='$user' and status IN('LIVE','ACTIVE') and callback_time < '$past_week_date';";
$rslt=mysql_query($stmt, $link);
echo "<br>User($user) callback listings LIVE for more than one week have been made INACTIVE\n";
}
@@ -21363,13 +21363,13 @@ if ($ADD==81)
{
if ($SUB==89)
{
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where campaign_id='$campaign_id' and status='LIVE' and callback_time < '$past_month_date';";
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where campaign_id='$campaign_id' and status IN('LIVE','ACTIVE') and callback_time < '$past_month_date';";
$rslt=mysql_query($stmt, $link);
echo "<br>campaign($campaign_id) callback listings LIVE for more than one month have been made INACTIVE\n";
}
if ($SUB==899)
{
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where campaign_id='$campaign_id' and status='LIVE' and callback_time < '$past_week_date';";
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where campaign_id='$campaign_id' and status IN('LIVE','ACTIVE') and callback_time < '$past_week_date';";
$rslt=mysql_query($stmt, $link);
echo "<br>campaign($campaign_id) callback listings LIVE for more than one week have been made INACTIVE\n";
}
@@ -21394,13 +21394,13 @@ if ($ADD==811)
{
if ($SUB==89)
{
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where list_id='$list_id' and status='LIVE' and callback_time < '$past_month_date';";
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where list_id='$list_id' and status IN('LIVE','ACTIVE') and callback_time < '$past_month_date';";
$rslt=mysql_query($stmt, $link);
echo "<br>list($list_id) callback listings LIVE for more than one month have been made INACTIVE\n";
}
if ($SUB==899)
{
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where list_id='$list_id' and status='LIVE' and callback_time < '$past_week_date';";
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where list_id='$list_id' and status IN('LIVE','ACTIVE') and callback_time < '$past_week_date';";
$rslt=mysql_query($stmt, $link);
echo "<br>list($list_id) callback listings LIVE for more than one week have been made INACTIVE\n";
}
@@ -21425,13 +21425,13 @@ if ($ADD==8111)
{
if ($SUB==89)
{
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user_group='$user_group' and status='LIVE' and callback_time < '$past_month_date';";
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user_group='$user_group' and status IN('LIVE','ACTIVE') and callback_time < '$past_month_date';";
$rslt=mysql_query($stmt, $link);
echo "<br>user group($user_group) callback listings LIVE for more than one month have been made INACTIVE\n";
}
if ($SUB==899)
{
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user_group='$user_group' and status='LIVE' and callback_time < '$past_week_date';";
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user_group='$user_group' and status IN('LIVE','ACTIVE') and callback_time < '$past_week_date';";
$rslt=mysql_query($stmt, $link);
echo "<br>user group($user_group) callback listings LIVE for more than one week have been made INACTIVE\n";
}