--- a/admin/partialdata/import.php
+++ b/admin/partialdata/import.php
@@ -1,5 +1,6 @@
0) {
$contractNoticeInsert[] = $data[$c];
@@ -136,7 +136,7 @@
if ($dhandle) {
// loop through all of the files
while (false !== ($fname = readdir($dhandle))) {
- if (($fname != '.') && ($fname != '..')) {
+ if (($fname != '.') && ($fname != '..') && (!isset($_REQUEST["filter"]) || strpos($fname,$_REQUEST["filter"]) != false)) {
echo "$fname " . filesize($path . $fname) . " " . date("c", filemtime($path . $fname)) . "
";
processFile($path . $fname, "contractnotice");
}
@@ -150,5 +150,6 @@
$success+= processFile($path . $fname, "contractnotice");
}
+}
?>