a few old session-variable leftovers
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -62,7 +62,7 @@ if ($page == 'overview') {
|
|||||||
if (is_array($latestversion) && count($latestversion) >= 1) {
|
if (is_array($latestversion) && count($latestversion) >= 1) {
|
||||||
$_version = $latestversion[0];
|
$_version = $latestversion[0];
|
||||||
$_message = isset($latestversion[1]) ? $latestversion[1] : '';
|
$_message = isset($latestversion[1]) ? $latestversion[1] : '';
|
||||||
$_link = isset($latestversion[2]) ? $latestversion[2] : htmlspecialchars($filename . '?s=' . urlencode($s) . '&page=' . urlencode($page) . '&lookfornewversion=yes');
|
$_link = isset($latestversion[2]) ? $latestversion[2] : htmlspecialchars($filename . '?page=' . urlencode($page) . '&lookfornewversion=yes');
|
||||||
|
|
||||||
// add the branding so debian guys are not gettings confused
|
// add the branding so debian guys are not gettings confused
|
||||||
// about their version-number
|
// about their version-number
|
||||||
|
|||||||
@@ -145,11 +145,11 @@ class Settings
|
|||||||
public static function IsInList($setting = null, $entry = null)
|
public static function IsInList($setting = null, $entry = null)
|
||||||
{
|
{
|
||||||
self::init();
|
self::init();
|
||||||
$s = self::Get($setting);
|
$svalue = self::Get($setting);
|
||||||
if ($s == null) {
|
if ($svalue == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$slist = explode(",", $s);
|
$slist = explode(",", $svalue);
|
||||||
return in_array($entry, $slist);
|
return in_array($entry, $slist);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,11 +50,7 @@ class Response
|
|||||||
header('Location: ' . $linker->getLink());
|
header('Location: ' . $linker->getLink());
|
||||||
exit();
|
exit();
|
||||||
} elseif ($get_variables == null) {
|
} elseif ($get_variables == null) {
|
||||||
if ($isRelative) {
|
$linker = new Linker($destination);
|
||||||
$linker = new Linker($destination, $s);
|
|
||||||
} else {
|
|
||||||
$linker = new Linker($destination);
|
|
||||||
}
|
|
||||||
header('Location: ' . $linker->getLink());
|
header('Location: ' . $linker->getLink());
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user