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 c9f8c7abd2 see changelog...
2005-07-08 05:12:03 +00:00

21 lines
399 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();
// Verify Existing
$catalog->verify_catalog();
// Look for new files
$catalog->add_to_catalog();
}
?>