|
|
@@ -5313,7 +5313,7 @@ if ($function == 'update_list')
|
|
|
|
|
|
|
|
|
|
|
|
if ($delete_leads == 'Y')
|
|
|
|
if ($delete_leads == 'Y')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_lists='1' and delete_lists='1' and modify_leads='1' and user_level >= 8 and active='Y';";
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_lists='1' and delete_lists='1' and modify_leads IN('1','2','3','4') and user_level >= 8 and active='Y';";
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$allowed_user=$row[0];
|
|
|
|
$allowed_user=$row[0];
|
|
|
@@ -9459,7 +9459,7 @@ if ($function == 'lead_field_info')
|
|
|
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
|
|
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
|
|
|
exit;
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_leads='1' and user_level > 6 and active='Y';";
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_leads IN('1','2','3','4') and user_level > 6 and active='Y';";
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$allowed_user=$row[0];
|
|
|
|
$allowed_user=$row[0];
|
|
|
@@ -9714,7 +9714,7 @@ if ($function == 'lead_status_search')
|
|
|
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
|
|
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
|
|
|
exit;
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_leads='1' and user_level > 6 and active='Y';";
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_leads IN('1','2','3','4') and user_level > 6 and active='Y';";
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$allowed_user=$row[0];
|
|
|
|
$allowed_user=$row[0];
|
|
|
@@ -10105,7 +10105,7 @@ if ($function == 'update_log_entry')
|
|
|
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
|
|
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
|
|
|
exit;
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_leads='1' and user_level > 7 and active='Y';";
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_leads IN('1','2','3','4') and user_level > 7 and active='Y';";
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$allowed_user=$row[0];
|
|
|
|
$allowed_user=$row[0];
|
|
|
@@ -10255,7 +10255,7 @@ if ($function == 'add_lead')
|
|
|
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
|
|
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
|
|
|
exit;
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_leads='1' and user_level > 7 and active='Y';";
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_leads IN('1','2','3','4') and user_level > 7 and active='Y';";
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$modify_leads=$row[0];
|
|
|
|
$modify_leads=$row[0];
|
|
|
@@ -11070,7 +11070,7 @@ if ($function == 'update_lead')
|
|
|
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
|
|
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
|
|
|
exit;
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_leads='1' and user_level > 7 and active='Y';";
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user' and vdc_agent_api_access='1' and modify_leads IN('1','2','3','4') and user_level > 7 and active='Y';";
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$rslt=mysql_to_mysqli($stmt, $link);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$row=mysqli_fetch_row($rslt);
|
|
|
|
$modify_leads=$row[0];
|
|
|
|
$modify_leads=$row[0];
|
|
|
|