Added location import capability, cleaned up some import wording, renamed clean_file_name function to just strto_AZaz09 and clean export and sample csv client names

This commit is contained in:
johnnyq
2022-05-13 13:29:03 -04:00
parent 74cf007ef3
commit 08a669e3bb
6 changed files with 174 additions and 23 deletions

View File

@@ -409,16 +409,16 @@ function getDomainExpirationDate($name){
}
function clean_file_name($string){
function strto_AZaz09($string){
$string = strtolower($string);
// Gets rid of spaces
$clean_file_name = preg_replace('/\s/', '', $string);
$strto_AZaz09 = preg_replace('/\s/', '', $string);
// Gets rid of non-alphanumerics
$clean_file_name = preg_replace( '/[^A-Za-z0-9_]/', '', $string );
$strto_AZaz09 = preg_replace( '/[^A-Za-z0-9_]/', '', $string );
return $clean_file_name;
return $strto_AZaz09;
}
// Cross-Site Request Forgery check for sensitive functions