"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/init.php" between
froxlor-0.10.26.tar.gz and froxlor-0.10.27.tar.gz

About: Froxlor is a web-based server management panel. It’s a fork of SysCP and has its main focus on simplicity and usability.

init.php  (froxlor-0.10.26):init.php  (froxlor-0.10.27)
skipping to change at line 383 skipping to change at line 383
$_themeoptions = json_decode(file_get_contents('templates/' . $theme . '/config. json'), true); $_themeoptions = json_decode(file_get_contents('templates/' . $theme . '/config. json'), true);
// check for existence of variant in theme // check for existence of variant in theme
if (! array_key_exists('variants', $_themeoptions) || ! array_key_exists($themev ariant, $_themeoptions['variants'])) { if (! array_key_exists('variants', $_themeoptions) || ! array_key_exists($themev ariant, $_themeoptions['variants'])) {
$themevariant = "default"; $themevariant = "default";
} }
// check for custom header-graphic // check for custom header-graphic
$hl_path = 'templates/' . $theme . '/assets/img'; $hl_path = 'templates/' . $theme . '/assets/img';
$header_logo = $hl_path . '/logo.png'; $header_logo = Settings::Get('panel.logo_image_header') ?: $hl_path . '/logo.png
';
if (file_exists($hl_path . '/logo_custom.png')) { $header_logo_login = Settings::Get('panel.logo_image_login') ?: $hl_path . '/log
$header_logo = $hl_path . '/logo_custom.png'; o.png';
}
/** /**
* Redirects to index.php (login page) if no session exists * Redirects to index.php (login page) if no session exists
*/ */
if ($nosession == 1 && AREA != 'login') { if ($nosession == 1 && AREA != 'login') {
unset($userinfo); unset($userinfo);
$params = array( $params = array(
"script" => basename($_SERVER["SCRIPT_NAME"]), "script" => basename($_SERVER["SCRIPT_NAME"]),
"qrystr" => $_SERVER["QUERY_STRING"] "qrystr" => $_SERVER["QUERY_STRING"]
); );
 End of changes. 1 change blocks. 
5 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)