Added Dialer Inventory Report options for excluding lists and ranking shifts display order
Added User Group multi-selection option to the real-time report Added HTML bar chart display options to most of the reports Removed password logging from admin scripts failed login attempts Made webroot-writable system setting function the same on all admin scripts Fixed list lastcalldate for manual dial calls git-svn-id: svn://192.168.202.10@1789 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -43,10 +43,11 @@
|
||||
# 110424-0926 - Added option for time zone code in the owner field
|
||||
# 110705-1947 - Added USACAN check for prefix and areacode
|
||||
# 120221-0140 - Added User Group restrictions
|
||||
# 120223-2318 - Removed logging of good login passwords if webroot writable is enabled
|
||||
#
|
||||
|
||||
$version = '2.4-42';
|
||||
$build = '120221-0140';
|
||||
$version = '2.4-43';
|
||||
$build = '120223-2318';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -154,7 +155,7 @@ $vicidial_list_fields = '|lead_id|vendor_lead_code|source_id|list_id|gmt_offset_
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,admin_web_directory,custom_fields_enabled FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,admin_web_directory,custom_fields_enabled,webroot_writable FROM system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
@@ -164,6 +165,7 @@ if ($qm_conf_ct > 0)
|
||||
$non_latin = $row[0];
|
||||
$admin_web_directory = $row[1];
|
||||
$custom_fields_enabled = $row[2];
|
||||
$webroot_writable = $row[3];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -192,7 +194,7 @@ $rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if ($WeBRooTWritablE > 0) {$fp = fopen ("./project_auth_entries.txt", "a");}
|
||||
if ($webroot_writable > 0) {$fp = fopen ("./project_auth_entries.txt", "a");}
|
||||
$date = date("r");
|
||||
$ip = getenv("REMOTE_ADDR");
|
||||
$browser = getenv("HTTP_USER_AGENT");
|
||||
@@ -225,17 +227,17 @@ else
|
||||
echo "You do not have permissions to load leads\n";
|
||||
exit;
|
||||
}
|
||||
if ($WeBRooTWritablE > 0)
|
||||
if ($webroot_writable > 0)
|
||||
{
|
||||
fwrite ($fp, "LIST_LOAD|GOOD|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|$LOGfullname|\n");
|
||||
fwrite ($fp, "LIST_LOAD|GOOD|$date|$PHP_AUTH_USER|XXXX|$ip|$browser|$LOGfullname|\n");
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($WeBRooTWritablE > 0)
|
||||
if ($webroot_writable > 0)
|
||||
{
|
||||
fwrite ($fp, "LIST_LOAD|FAIL|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|\n");
|
||||
fwrite ($fp, "LIST_LOAD|FAIL|$date|$PHP_AUTH_USER|XXXX|$ip|$browser|\n");
|
||||
fclose($fp);
|
||||
}
|
||||
exit;
|
||||
@@ -538,7 +540,7 @@ if ($OK_to_process)
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
|
||||
$file=fopen("$lead_file", "r");
|
||||
if ($WeBRooTWritablE > 0)
|
||||
if ($webroot_writable > 0)
|
||||
{
|
||||
$stmt_file=fopen("listloader_stmts.txt", "w");
|
||||
}
|
||||
@@ -903,7 +905,7 @@ if ($OK_to_process)
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
$lead_id = mysql_insert_id($link);
|
||||
if ($DB > 0) {echo "<!-- $affected_rows|$lead_id|$stmtZ -->";}
|
||||
if ($WeBRooTWritablE > 0)
|
||||
if ($webroot_writable > 0)
|
||||
{fwrite($stmt_file, $stmtZ."\r\n");}
|
||||
$multistmt='';
|
||||
|
||||
@@ -919,7 +921,7 @@ if ($OK_to_process)
|
||||
### insert good record into vicidial_list table ###
|
||||
$stmtZ = "INSERT INTO vicidial_list (lead_id,entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,gmt_offset_now,called_since_last_reset,phone_code,phone_number,title,first_name,middle_initial,last_name,address1,address2,address3,city,state,province,postal_code,country_code,gender,date_of_birth,alt_phone,email,security_phrase,comments,called_count,last_local_call_time,rank,owner,entry_list_id) values$multistmt('','$entry_date','$modify_date','$status','$user','$vendor_lead_code','$source_id','$list_id','$gmt_offset','$called_since_last_reset','$phone_code','$phone_number','$title','$first_name','$middle_initial','$last_name','$address1','$address2','$address3','$city','$state','$province','$postal_code','$country_code','$gender','$date_of_birth','$alt_phone','$email','$security_phrase','$comments',0,'2008-01-01 00:00:00','$rank','$owner','0');";
|
||||
$rslt=mysql_query($stmtZ, $link);
|
||||
if ($WeBRooTWritablE > 0)
|
||||
if ($webroot_writable > 0)
|
||||
{fwrite($stmt_file, $stmtZ."\r\n");}
|
||||
$multistmt='';
|
||||
$multi_insert_counter=0;
|
||||
@@ -967,7 +969,7 @@ if ($OK_to_process)
|
||||
{
|
||||
$stmtZ = "INSERT INTO vicidial_list (lead_id,entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,gmt_offset_now,called_since_last_reset,phone_code,phone_number,title,first_name,middle_initial,last_name,address1,address2,address3,city,state,province,postal_code,country_code,gender,date_of_birth,alt_phone,email,security_phrase,comments,called_count,last_local_call_time,rank,owner,entry_list_id) values".substr($multistmt, 0, -1).";";
|
||||
mysql_query($stmtZ, $link);
|
||||
if ($WeBRooTWritablE > 0)
|
||||
if ($webroot_writable > 0)
|
||||
{fwrite($stmt_file, $stmtZ."\r\n");}
|
||||
}
|
||||
|
||||
@@ -1030,7 +1032,7 @@ if (($leadfile) && ($LF_path))
|
||||
$lead_file = "/tmp/vicidial_temp_file.txt";
|
||||
}
|
||||
$file=fopen("$lead_file", "r");
|
||||
if ($WeBRooTWritablE > 0)
|
||||
if ($webroot_writable > 0)
|
||||
{$stmt_file=fopen("$WeBServeRRooT/$admin_web_directory/listloader_stmts.txt", "w");}
|
||||
|
||||
$buffer=fgets($file, 4096);
|
||||
@@ -1318,7 +1320,7 @@ if (($leadfile) && ($LF_path))
|
||||
### insert good deal into pending_transactions table ###
|
||||
$stmtZ = "INSERT INTO vicidial_list (lead_id,entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,gmt_offset_now,called_since_last_reset,phone_code,phone_number,title,first_name,middle_initial,last_name,address1,address2,address3,city,state,province,postal_code,country_code,gender,date_of_birth,alt_phone,email,security_phrase,comments,called_count,last_local_call_time,rank,owner,entry_list_id) values$multistmt('','$entry_date','$modify_date','$status','$user','$vendor_lead_code','$source_id','$list_id','$gmt_offset','$called_since_last_reset','$phone_code','$phone_number','$title','$first_name','$middle_initial','$last_name','$address1','$address2','$address3','$city','$state','$province','$postal_code','$country_code','$gender','$date_of_birth','$alt_phone','$email','$security_phrase','$comments',0,'2008-01-01 00:00:00','$rank','$owner','0');";
|
||||
$rslt=mysql_query($stmtZ, $link);
|
||||
if ($WeBRooTWritablE > 0)
|
||||
if ($webroot_writable > 0)
|
||||
{fwrite($stmt_file, $stmtZ."\r\n");}
|
||||
$multistmt='';
|
||||
$multi_insert_counter=0;
|
||||
@@ -1365,7 +1367,7 @@ if (($leadfile) && ($LF_path))
|
||||
{
|
||||
$stmtZ = "INSERT INTO vicidial_list (lead_id,entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,gmt_offset_now,called_since_last_reset,phone_code,phone_number,title,first_name,middle_initial,last_name,address1,address2,address3,city,state,province,postal_code,country_code,gender,date_of_birth,alt_phone,email,security_phrase,comments,called_count,last_local_call_time,rank,owner,entry_list_id) values".substr($multistmt, 0, -1).";";
|
||||
mysql_query($stmtZ, $link);
|
||||
if ($WeBRooTWritablE > 0)
|
||||
if ($webroot_writable > 0)
|
||||
{fwrite($stmt_file, $stmtZ."\r\n");}
|
||||
}
|
||||
### LOG INSERTION Admin Log Table ###
|
||||
@@ -1474,7 +1476,7 @@ if (($leadfile) && ($LF_path))
|
||||
$lead_file = "/tmp/vicidial_temp_file.txt";
|
||||
}
|
||||
$file=fopen("$lead_file", "r");
|
||||
if ($WeBRooTWritablE > 0)
|
||||
if ($webroot_writable > 0)
|
||||
{$stmt_file=fopen("$WeBServeRRooT/$admin_web_directory/listloader_stmts.txt", "w");}
|
||||
|
||||
$buffer=fgets($file, 4096);
|
||||
|
||||
Reference in New Issue
Block a user