diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-19 09:27:06 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-19 09:27:06 +0000 |
commit | 7a0fcdd836d491c288b94383ebc54de2271bb237 (patch) | |
tree | d7a6757e7596d5242c10f1290ea14d19b7d6a623 /bin | |
parent | 7b0bd9d52ed2c198868bcaef17f4f2ecff1ac099 (diff) | |
download | ampache-7a0fcdd836d491c288b94383ebc54de2271bb237.tar.gz ampache-7a0fcdd836d491c288b94383ebc54de2271bb237.tar.bz2 ampache-7a0fcdd836d491c288b94383ebc54de2271bb237.zip |
fixed a few more catalog snafus
Diffstat (limited to 'bin')
-rw-r--r-- | bin/catalog_update.php.inc | 26 | ||||
-rw-r--r-- | bin/print_tags.php.inc | 2 |
2 files changed, 26 insertions, 2 deletions
diff --git a/bin/catalog_update.php.inc b/bin/catalog_update.php.inc index 8bcc26b6..786aaec2 100644 --- a/bin/catalog_update.php.inc +++ b/bin/catalog_update.php.inc @@ -1,14 +1,38 @@ <?php +/* + + Copyright 2001 - 2006 Ampache.org + All Rights Reserved + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + $no_session='1'; require ("../modules/init.php"); +echo "[catalog_update.php.inc]\nStarting Catalog Clean/Update And Add\n\n"; + $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]); + $catalog = new Catalog($r[0]); + // Clean out dead files $catalog->clean_catalog(); diff --git a/bin/print_tags.php.inc b/bin/print_tags.php.inc index 4c9adf66..68d84b27 100644 --- a/bin/print_tags.php.inc +++ b/bin/print_tags.php.inc @@ -1,7 +1,7 @@ <?php /* - Copyright 2001 - 2005 Ampache.org + Copyright 2001 - 2006 Ampache.org All Rights Reserved This program is free software; you can redistribute it and/or |