summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-08 21:48:34 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-08 21:48:34 +0000
commita22acbd014dae01d10639779777819d630e85b40 (patch)
treea32d5baaee7c5912ede35b1215280c73ef75bacc
parent6873ed87ef0c85cebd7091dd35aacccadefc52be (diff)
downloadampache-a22acbd014dae01d10639779777819d630e85b40.tar.gz
ampache-a22acbd014dae01d10639779777819d630e85b40.tar.bz2
ampache-a22acbd014dae01d10639779777819d630e85b40.zip
Allow print_tags to be run against any file; I don't see a good reason for it to
be restricted, especially in a broken way (didn't allow videos).
-rw-r--r--bin/print_tags.inc23
1 files changed, 0 insertions, 23 deletions
diff --git a/bin/print_tags.inc b/bin/print_tags.inc
index 4c90f110..e95d9fd8 100644
--- a/bin/print_tags.inc
+++ b/bin/print_tags.inc
@@ -26,10 +26,6 @@ $prefix = realpath($path . '/../');
require_once $prefix . '/lib/init.php';
$version = "1.0";
-$exts = Config::get('catalog_file_pattern');
-
-$allowexts = preg_split('/\|/', $exts);
-
if (count($GLOBALS['argv']) == '1') {
usage();
exit;
@@ -45,13 +41,6 @@ if(!file_exists($filename)) {
exit;
}
-if(file_check($filename, $allowexts) === false) {
- print _("File type is not allowd.");
- print "\n";
- usage();
- exit;
-}
-
printf(_('Reading: %s'), $filename);
print "\n";
@@ -103,16 +92,4 @@ function usage() {
}// usage()
-function file_check($filename, $allowexts) {
-
- $pathinfo = pathinfo($filename);
- $exts = $pathinfo['extension'];
-
- if(in_array($exts, $allowexts)) {
- return true;
- } else {
- return false;
- }
-} // file_check()
-
?>