diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-06-24 16:22:23 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-06-24 16:22:23 +0000 |
commit | 35a129dbb7eba6ac9078286ff343a8a8db5c5089 (patch) | |
tree | 4f38c7b4e5cfab4d0f9220b4ebc78c0df9d3bd69 /bin | |
parent | 8e6cd377be0a7f4a569c54316bdb882a714e2c7c (diff) | |
download | ampache-35a129dbb7eba6ac9078286ff343a8a8db5c5089.tar.gz ampache-35a129dbb7eba6ac9078286ff343a8a8db5c5089.tar.bz2 ampache-35a129dbb7eba6ac9078286ff343a8a8db5c5089.zip |
few more stylesheet tweaks and added ability to have print_tags mail tags@ampache.org
Diffstat (limited to 'bin')
-rw-r--r-- | bin/print_tags.php.inc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/print_tags.php.inc b/bin/print_tags.php.inc index 37ba8da1..ec5fa1ad 100644 --- a/bin/print_tags.php.inc +++ b/bin/print_tags.php.inc @@ -22,6 +22,13 @@ $no_session = '1'; require ("../lib/init.php"); +/** + * Set this to true if you want it to e-mail a report + * to tags@ampache.org (usefull for troubleshooting + */ +//$send_mail = true; + + $filename = usage(); echo "Reading: $filename\n"; @@ -33,6 +40,15 @@ $results['file'] = $filename; $key = get_tag_type($results); $ampache_results = clean_tag_info($results,$key,$filename); +if ($send_mail) { + $getid3_results = print_r($info,1); + $amp_results = print_r($ampache_results,1); + $body = $getid3_results . "\n-----\n\n" . $amp_results; + $subject = "[Ampache] Print Tags - $filename"; + mail('tags@ampache.org',$subject,$body); +} + + echo "Results Seen by GetID3()\n"; print_r($info); echo "\n------------------------------------------------------------------\n"; |