Fixing PHPCI so that it'll work in a subdirectory.

This commit is contained in:
Dan Cryer 2013-05-17 17:34:31 +01:00
commit f256db237b
14 changed files with 66 additions and 53 deletions

View file

@ -34,7 +34,7 @@ class SessionController extends b8\Controller
if ($user && password_verify($this->getParam('password', ''), $user->getHash())) {
$_SESSION['user_id'] = $user->getId();
header('Location: /');
header('Location: ' . PHPCI_URL);
die;
}
}
@ -72,7 +72,7 @@ class SessionController extends b8\Controller
{
$_SESSION = array();
session_destroy();
header('Location: /');
header('Location: ' . PHPCI_URL);
die;
}
}