summaryrefslogtreecommitdiffstats
path: root/templates/list_header.inc
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-28 22:56:55 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-28 22:56:55 +0000
commitd6e28b752f3f04e418a4c27f37fa67b76596d5ec (patch)
tree7425e8a886db303672c97ccebc3d145bf5fa8b5d /templates/list_header.inc
parent223143ed3a95ad59ff2945f6746da73992012354 (diff)
downloadampache-d6e28b752f3f04e418a4c27f37fa67b76596d5ec.tar.gz
ampache-d6e28b752f3f04e418a4c27f37fa67b76596d5ec.tar.bz2
ampache-d6e28b752f3f04e418a4c27f37fa67b76596d5ec.zip
* Added new Snoopy, fixes some minor bugs
* Rewrote Album Art collection, fixing tons of logic flaws, single album art find is currently broken might even be a little faster now when using folder and id3 methods at the same time * Fixed some issues with FastCGI installs * Removed another upload file that wasn't used anymore * Tweaked Recently Played to show 'played XXX ago'
Diffstat (limited to 'templates/list_header.inc')
-rw-r--r--templates/list_header.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/list_header.inc b/templates/list_header.inc
index 58c7fa61..257c5220 100644
--- a/templates/list_header.inc
+++ b/templates/list_header.inc
@@ -88,8 +88,16 @@ while ($page <= $pages) {
ksort($page_data['up']);
ksort($page_data['down']);
-/* Take the script name and passed action and setup the next action */
+/* Detect the current script, this take a little work because we have to
+ * account for FastCGI
+ */
preg_match("/.*\/(.+\.php)$/", $_SERVER['SCRIPT_NAME'], $matches);
+// Must be running Fast CGI or something similar
+if (!isset($matches['1'])) {
+ // Try PHP_SELF
+ preg_match("/.*\/(.+\.php)$/",$_SERVER['PHP_SELF'],$matches);
+}
+
$action = "action=" . scrub_in($_REQUEST['action']);
$script = conf('web_path') . "/" . $admin_menu . $matches[1];