summaryrefslogtreecommitdiffstats
path: root/bin/catalog_update.php.inc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/catalog_update.php.inc')
-rw-r--r--bin/catalog_update.php.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/catalog_update.php.inc b/bin/catalog_update.php.inc
new file mode 100644
index 00000000..3f8e9a76
--- /dev/null
+++ b/bin/catalog_update.php.inc
@@ -0,0 +1,18 @@
+<?php
+
+$no_session='1';
+require ("../modules/init.php");
+
+$sql = "SELECT id FROM catalog WHERE catalog_type='local'";
+$db_results = mysql_query($sql, dbh());
+
+while ($r = mysql_fetch_row($db_results)) {
+ $catalog = new Catalog($r[0]);
+
+ // Verify Existing
+ $catalog->verify_catalog();
+
+ // Look for new files
+ $catalog->add_to_catalog();
+}
+?>