1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +02:00

vile hack to make playback work while I go sleep

This commit is contained in:
Karl 'vollmerk' Vollmer 2008-05-26 11:06:51 +00:00
parent a8b553d73f
commit 2571a7f2d0

View file

@ -34,12 +34,21 @@ if (!vauth::session_exists('interface',$_COOKIE[$session_name])) {
} }
$data = vauth::read($_COOKIE[$session_name]); $data = vauth::read($_COOKIE[$session_name]);
preg_match_all("/(\w+)\|(a\:[^\|]+;})/",$data,$matches);
foreach ($matches['1'] as $key=>$value) {
if ($value == 'iframe') {
$data = unserialize($matches['2'][$key]);
}
}
// This is a little bit of a special file, it takes the // This is a little bit of a special file, it takes the
// content of $_SESSION['iframe']['target'] and does a header // content of $_SESSION['iframe']['target'] and does a header
// redirect to that spot! // redirect to that spot!
if (isset($data['iframe']['target'])) { if (isset($data['target'])) {
$target = $data['iframe']['target']; $target = $data['target'];
unset($data['iframe']['target']); unset($data['target']);
header("Location: " . $target); header("Location: " . $target);
} }
?> ?>