Skip to content

Commit

Permalink
Merge pull request #24 from Devenet/v1.4.1
Browse files Browse the repository at this point in the history
Fix #23 of empty page after logged in
  • Loading branch information
Devenet authored Sep 6, 2019
2 parents 6904469 + 5a5b217 commit 15c8b5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
define('PHPPREFIX','<?php /* ');
define('PHPSUFFIX',' */ ?>');
define('MYMOVIES', 'MyMovies');
define('MYMOVIES_VERSION', '1.4.0');
define('MYMOVIES_VERSION', '1.4.1');
define('INACTIVITY_TIMEOUT', 3600);
define('RSS', 'movies.rss');
define('RSS_BOXOFFICE', 'box-office.rss');
Expand Down Expand Up @@ -69,7 +69,7 @@
define('AUTHOR', empty($_CONFIG['author']) ? $_CONFIG['login'] : $_CONFIG['author'] );
define('BASE_LANG', $_CONFIG['language']);
define('BASE_URL', (empty($_SERVER['REQUEST_SCHEME']) ? 'http' : $_SERVER['REQUEST_SCHEME']).'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']).'/');
define('CURRENT_URL_QUERY', htmlspecialchars(parse_url($_SERVER[REQUEST_URI], PHP_URL_QUERY)));
define('CURRENT_URL_QUERY', htmlspecialchars(parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY)));


$tpl->assign('MyMoviesVersion', preg_replace('#(\d+\.\d+)(\.\d+)#', '$1', MYMOVIES_VERSION));
Expand Down Expand Up @@ -1427,7 +1427,7 @@ function signin() {
session_set_cookie_params(0, $cookiedir, $_SERVER['HTTP_HOST']);
session_regenerate_id(TRUE);
// check if we need to redirect the user
$target = (isset($_GET['target']) && targetIsAllowed($_GET['target'])) ? Path::$_GET['target']() : './';
$target = (isset($_GET['target']) && targetIsAllowed($_GET['target'])) ? Path::{$_GET['target']}() : './';
header('Location: '.$target);
exit();
}
Expand Down

0 comments on commit 15c8b5d

Please sign in to comment.