summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-22 00:54:20 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-22 00:54:20 +0000
commitbba84d172a89e5621c29f2e4359d87bb09f346ff (patch)
tree83b9f02bbcb15d7df0bd3b9b40b800fa8b4984b3 /lib
parent0f5c3ddf3aa9e75289af56536806c220fec5d776 (diff)
downloadampache-bba84d172a89e5621c29f2e4359d87bb09f346ff.tar.gz
ampache-bba84d172a89e5621c29f2e4359d87bb09f346ff.tar.bz2
ampache-bba84d172a89e5621c29f2e4359d87bb09f346ff.zip
last commit before beta3 release
Diffstat (limited to 'lib')
-rw-r--r--lib/general.lib.php25
-rw-r--r--lib/init.php2
2 files changed, 26 insertions, 1 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index 085f33af..b8e8d1e8 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -932,4 +932,29 @@ return sprintf ("%d:%02d", $seconds/60, $seconds % 60);
} //format_time
+/**
+ * translate_pattern_code
+ * This just contains a key'd array which it checks against to give you the 'tag' name
+ * that said pattern code corrasponds to, it returns false if nothing is found
+ */
+function translate_pattern_code($code) {
+
+ $code_array = array('%A'=>'album',
+ '%a'=>'artist',
+ '%c'=>'comment',
+ '%g'=>'genre',
+ '%T'=>'track',
+ '%t'=>'title',
+ '%y'=>'year',
+ '%o'=>'zz_other');
+
+ if (isset($code_array[$code])) {
+ return $code_array[$code];
+ }
+
+
+ return false;
+
+} // translate_pattern_code
+
?>
diff --git a/lib/init.php b/lib/init.php
index 8a97f5c9..45d71625 100644
--- a/lib/init.php
+++ b/lib/init.php
@@ -80,7 +80,7 @@ if (!$results['allow_stream_playback']) {
/** This is the version.... fluf nothing more... **/
-$results['version'] = '3.3.2-Beta3 (Build 009)';
+$results['version'] = '3.3.2-Beta3';
$results['raw_web_path'] = $results['web_path'];
$results['web_path'] = $http_type . $_SERVER['HTTP_HOST'] . $results['web_path'];