summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-19 09:27:06 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-19 09:27:06 +0000
commit7a0fcdd836d491c288b94383ebc54de2271bb237 (patch)
treed7a6757e7596d5242c10f1290ea14d19b7d6a623 /bin
parent7b0bd9d52ed2c198868bcaef17f4f2ecff1ac099 (diff)
downloadampache-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.inc26
-rw-r--r--bin/print_tags.php.inc2
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