web_interface/astpp/application/modules/package/controllers/package.php 1 location
|
@@ 511-520 (lines=10) @@
|
508 |
|
|
509 |
|
$str.= preg_match( $alpha_numeric_regex, $csvdata['destination'] ) ? null :'Destination,'; |
510 |
|
|
511 |
|
if($str){ |
512 |
|
$str=rtrim($str,','); |
513 |
|
$error_field=explode(',',$str); |
514 |
|
$count = count($error_field); |
515 |
|
$str.= $count > 1 ? ' are not valid' : ' is not Valid'; |
516 |
|
return $str; |
517 |
|
} |
518 |
|
else{ |
519 |
|
return false; |
520 |
|
} |
521 |
|
} |
522 |
|
else{ |
523 |
|
$str=rtrim($str,','); |
web_interface/astpp/application/modules/rates/controllers/rates.php 1 location
|
@@ 368-377 (lines=10) @@
|
365 |
|
$str.= !empty($csvdata['inc']) && is_numeric( $csvdata['inc']) ? null :( empty($csvdata['inc']) ? null : 'Increment,'); |
366 |
|
$str.= !empty($csvdata['precedence']) && is_numeric( $csvdata['precedence']) ? null :( empty($csvdata['precedence']) ? null : 'Precedence,'); |
367 |
|
$str.= (isset($csvdata['strip']) && !empty($csvdata['strip'])) ? (is_numeric($csvdata['strip']) ? null :'Strip,') : null; |
368 |
|
if($str){ |
369 |
|
$str=rtrim($str,','); |
370 |
|
$error_field=explode(',',$str); |
371 |
|
$count = count($error_field); |
372 |
|
$str.= $count > 1 ? ' are not valid' : ' is not Valid'; |
373 |
|
return $str; |
374 |
|
} |
375 |
|
else{ |
376 |
|
return false; |
377 |
|
} |
378 |
|
} |
379 |
|
else{ |
380 |
|
$str=rtrim($str,','); |
web_interface/astpp/application/modules/did/controllers/did.php 1 location
|
@@ 794-802 (lines=9) @@
|
791 |
|
$str.= is_numeric($csvdata['number']) ? null : 'Number,'; |
792 |
|
$str.=!empty($csvdata['connectcost']) && is_numeric($csvdata['connectcost']) ? null : ( empty($csvdata['connectcost']) ? null : 'Connect Cost,'); |
793 |
|
$str.=!empty($csvdata['includedseconds']) && is_numeric($csvdata['includedseconds']) ? null : ( empty($csvdata['includedseconds']) ? null : 'Included Seconds,'); |
794 |
|
if ($str) { |
795 |
|
$str = rtrim($str, ','); |
796 |
|
$error_field = explode(',', $str); |
797 |
|
$count = count($error_field); |
798 |
|
$str.= $count > 1 ? ' are not valid' : ' is not Valid'; |
799 |
|
return $str; |
800 |
|
} else { |
801 |
|
return false; |
802 |
|
} |
803 |
|
} else { |
804 |
|
$str = rtrim($str, ','); |
805 |
|
$error_field = explode(',', $str); |