Updated all agent and admin web language builds and translation files with new phrases for 2.8
Overhaul of Spanish Agent and Admin language translations based on new contributed language files Overhaul of Dutch Agent translation, and added contributed images git-svn-id: svn://192.168.202.10@2126 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
<?php
|
||||
# audit_comments.php
|
||||
#
|
||||
# Copyright (C) 2012 poundteam.com LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 poundteam.com,vicidial.org LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed to display QC audit comments, contributed by poundteam.com
|
||||
#
|
||||
# changes:
|
||||
# 121116-1322 - First build, added to vicidial codebase
|
||||
# 130802-0957 - Changed to PHP mysqli functions
|
||||
# 140304-2154 - Enabled special characters in comments
|
||||
#
|
||||
|
||||
require_once("functions.php");
|
||||
|
||||
function audit_comments($lead_id,$list_id,$format,$user,$mel,$NOW_TIME,$link,$server_ip,$session_name,$one_mysql_log,$campaign) {
|
||||
$audit_comments_active=audit_comments_active($list_id,$format,$user,$mel,$NOW_TIME,$link,$server_ip,$session_name,$one_mysql_log);
|
||||
if ($audit_comments_active) {
|
||||
@@ -17,29 +21,29 @@ function audit_comments($lead_id,$list_id,$format,$user,$mel,$NOW_TIME,$link,$se
|
||||
if ($format=='debug') {
|
||||
echo "\n<!-- $stmt -->";
|
||||
}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {
|
||||
mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00142-AuditComments2',$user,$server_ip,$session_name,$one_mysql_log);
|
||||
}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
if (strlen($row[0]) > 0) {
|
||||
$comment=$row[0];
|
||||
//Put comment in comment table
|
||||
$stmt="INSERT INTO vicidial_comments (lead_id,user_id,list_id,campaign_id,comment) VALUES ('$lead_id','$user','$list_id','$campaign','$comment');";
|
||||
$stmt="INSERT INTO vicidial_comments (lead_id,user_id,list_id,campaign_id,comment) VALUES ('$lead_id','$user','$list_id','$campaign','".mysqli_real_escape_string($link, $comment)."');";
|
||||
if ($format=='debug') {
|
||||
echo "\n<!-- $stmt -->";
|
||||
}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {
|
||||
mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00142-AuditComments3',$user,$server_ip,$session_name,$one_mysql_log);
|
||||
}
|
||||
$affected=mysql_affected_rows();
|
||||
$affected=mysqli_affected_rows($link);
|
||||
if($affected>0) {
|
||||
$stmt="UPDATE vicidial_list set comments='' where lead_id='$lead_id';";
|
||||
if ($format=='debug') {
|
||||
echo "\n<!-- $stmt -->";
|
||||
}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {
|
||||
mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00142-AuditComments4',$user,$server_ip,$session_name,$one_mysql_log);
|
||||
}
|
||||
@@ -55,11 +59,11 @@ function audit_comments_active($list_id,$format,$user,$mel,$NOW_TIME,$link,$serv
|
||||
if ($format=='debug') {
|
||||
echo "\n<!-- $stmt -->";
|
||||
}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {
|
||||
mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00142-AuditComments5',$user,$server_ip,$session_name,$one_mysql_log);
|
||||
}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
if ($row[0] == '1') {
|
||||
return true;
|
||||
} else {
|
||||
@@ -71,18 +75,18 @@ function get_audited_comments($lead_id,$format,$user,$mel,$NOW_TIME,$link,$serve
|
||||
global $ACcomments;
|
||||
$stmt="select user_id,comment from vicidial_comments where lead_id='$lead_id';";
|
||||
if ($mel > 0) {
|
||||
mysql_error_logging($NOW_TIME,$link,$mel,$stmt,"00142-65-AuditComments:$stmt LeadID: $lead_id,$format,$user,$mel,$NOW_TIME,$link,$server_ip,$session_name,$one_mysql_log",$user,$server_ip,$session_name,$one_mysql_log);
|
||||
mysql_error_logging($NOW_TIME,$link,$mel,$stmt,"00142-65-AuditComments:$stmt LeadID: $lead_id,$format,$user,$mel,$NOW_TIME,\$link,$server_ip,$session_name,$one_mysql_log",$user,$server_ip,$session_name,$one_mysql_log);
|
||||
}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {
|
||||
mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00142-69-AuditComments',$user,$server_ip,$session_name,$one_mysql_log);
|
||||
}
|
||||
$ACcount=mysql_num_rows($rslt);
|
||||
$ACcount=mysqli_num_rows($rslt);
|
||||
mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00142-72-AuditComments $ACcount='.$ACcount,$user,$server_ip,$session_name,$one_mysql_log);
|
||||
if($ACcount>0) {
|
||||
$i=0;
|
||||
while ($i < $ACcount) {
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00142-77-AuditComments UserID='.$row[0],$user,$server_ip,$session_name,$one_mysql_log);
|
||||
$ACcomments .= "UserID: $row[0]\n";
|
||||
mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00142-79-AuditComments Comment='.$row[1],$user,$server_ip,$session_name,$one_mysql_log);
|
||||
|
||||
Reference in New Issue
Block a user