diff --git a/www/vicidial/admin_listloader_third_gen.php b/www/vicidial/admin_listloader_third_gen.php index 56562bf8..1d505cf2 100644 --- a/www/vicidial/admin_listloader_third_gen.php +++ b/www/vicidial/admin_listloader_third_gen.php @@ -36,7 +36,8 @@ # 100705-1507 - Added custom fields to field chooser, only when liast_id_override is used and only with TXT and CSV file formats # 100706-1250 - Forked script to create new script that will only load TXT(tab- # delimited files) and use a perl script to convert others to TXT -# +# 100707-1040 - Converted List Id Override and Phone Code Override to drop downs +# 100707-1156 - Made it so you cannot submit with no lead file selected. Also fixed Start Over Link $version = '2.4-37'; $build = '100706-1250'; @@ -131,6 +132,10 @@ if (isset($_GET["phone_code_override"])) {$phone_code_override=$_GET["phone_co if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} +# if the didnt select an over ride wipe out in_file +if ( $list_id_override == "in_file" ) { $list_id_override = ""; } +if ( $phone_code_override == "in_file" ) { $phone_code_override = ""; } + # $country_field=$_GET["country_field"]; if (!$country_field) {$country_field=$_POST["country_field"];} ### REGEX to prevent weird characters from ending up in the fields @@ -233,7 +238,7 @@ $server_port = getenv("SERVER_PORT"); if (eregi("443",$server_port)) {$HTTPprotocol = 'https://';} else {$HTTPprotocol = 'http://';} $admDIR = "$HTTPprotocol$server_name$script_name"; -$admDIR = eregi_replace('new_listloader_superL.php','',$admDIR); +$admDIR = eregi_replace('admin_listloader_third_gen.php','',$admDIR); $admSCR = 'admin.php'; $NWB = "   \"HELP\""; @@ -374,11 +379,45 @@ if ( (!$OK_to_process) or ( ($leadfile) and ($file_layout!="standard") ) ) List ID Override: - (numbers only or leave blank for values in the file) + + + Phone Code Override: - (numbers only or leave blank for values in the file) + + + File layout to use: @@ -868,7 +907,7 @@ if ($OK_to_process) -if ($leadfile) +if (($leadfile) && ($LF_path)) { $total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list=''; @@ -1381,7 +1420,7 @@ if ($leadfile) print " \r\n"; print " \r\n"; print " \r\n"; - print "         \r\n"; + print "         \r\n"; print " \r\n"; print "\r\n";