@ -90,9 +90,10 @@ if (! isset($_REQUEST['p']))
if (isset($_REQUEST['p']) & & preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) & & (in_array($_REQUEST['p'], $free_pages) || in_array($_REQUEST['p'], $privileges))) {
if (isset($_REQUEST['p']) & & preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) & & (in_array($_REQUEST['p'], $free_pages) || in_array($_REQUEST['p'], $privileges))) {
$p = $_REQUEST['p'];
$p = $_REQUEST['p'];
if (isset($user)) {
$title = $p;
$hints = "";
$content = "";
if (isset($user)) {
if (User_is_freeloader($user))
if (User_is_freeloader($user))
error(sprintf(_("You freeloaded at least %s shifts. Shift signup is locked. Please go to heavens desk to be unlocked again."), $max_freeloadable_shifts));
error(sprintf(_("You freeloaded at least %s shifts. Shift signup is locked. Please go to heavens desk to be unlocked again."), $max_freeloadable_shifts));
@ -113,9 +114,6 @@ if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (i
user_angeltypes_unconfirmed_hint();
user_angeltypes_unconfirmed_hint();
}
}
$title = $p;
$content = "";
if ($p == "api") {
if ($p == "api") {
require_once realpath(__DIR__ . '/../includes/controller/api.php');
require_once realpath(__DIR__ . '/../includes/controller/api.php');
error("Api disabled temporily.");
error("Api disabled temporily.");
@ -240,7 +238,7 @@ echo template_render('../templates/layout.html', array(
'title' => $title,
'title' => $title,
'atom_link' => ($p == 'news' || $p == 'user_meetings') ? '< link href = "' . page_link_to('atom') . (($p == 'user_meetings') ? '&meetings=1' : '') . '&key=' . $user['api_key'] . '" type = "application/atom+xml" rel = "alternate" title = "Atom Feed" > ' : '',
'atom_link' => ($p == 'news' || $p == 'user_meetings') ? '< link href = "' . page_link_to('atom') . (($p == 'user_meetings') ? '&meetings=1' : '') . '&key=' . $user['api_key'] . '" type = "application/atom+xml" rel = "alternate" title = "Atom Feed" > ' : '',
'menu' => make_menu(),
'menu' => make_menu(),
'content' => $content,
'content' => msg() . $content,
'header_toolbar' => header_toolbar(),
'header_toolbar' => header_toolbar(),
'faq_url' => $faq_url,
'faq_url' => $faq_url,
'locale' => $_SESSION['locale']
'locale' => $_SESSION['locale']