1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +02:00
ampache/bin/catalog_update.php.inc
Karl 'vollmerk' Vollmer d8b8c6a131 fluf for catalog update
2006-01-08 22:37:09 +00:00

30 lines
477 B
PHP

<?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]);
// Clean out dead files
$catalog->clean_catalog();
$catalog->count = 0;
// Verify Existing
$catalog->verify_catalog();
$catalog->count = 0;
echo "\n\n";
// Look for new files
$catalog->add_to_catalog();
echo "\n\n";
}
?>