This commit is contained in:
flash 2015-11-06 23:36:05 +01:00
parent fcc1dcdf1f
commit fb29f726c3

View file

@ -219,13 +219,17 @@ if (isset($_REQUEST['request-notifications']) && $_REQUEST['request-notification
} }
// Print page contents or if the AJAX request is set only display the render data // Print page contents or if the AJAX request is set only display the render data
print isset($_REQUEST['ajax']) ? if (isset($_REQUEST['ajax'])) {
( echo $renderData['page']['message'] . '|' .
$renderData['page']['message'] . '|' .
$renderData['page']['success'] . '|' . $renderData['page']['success'] . '|' .
$renderData['page']['redirect'] $renderData['page']['redirect'];
) : } else {
Templates::render('global/information.tpl', $renderData); // If not allowed print the restricted page
$template->setVariables($renderData);
// Print page contents
echo $template->render('global/information.tpl');
}
exit; exit;
} elseif (isset($_REQUEST['friend-action']) && $_REQUEST['friend-action'] && Users::checkLogin()) { } elseif (isset($_REQUEST['friend-action']) && $_REQUEST['friend-action'] && Users::checkLogin()) {
// Continue // Continue
@ -350,13 +354,17 @@ if (isset($_REQUEST['request-notifications']) && $_REQUEST['request-notification
} }
// Print page contents or if the AJAX request is set only display the render data // Print page contents or if the AJAX request is set only display the render data
print isset($_REQUEST['ajax']) ? if (isset($_REQUEST['ajax'])) {
( echo $renderData['page']['message'] . '|' .
$renderData['page']['message'] . '|' .
$renderData['page']['success'] . '|' . $renderData['page']['success'] . '|' .
$renderData['page']['redirect'] $renderData['page']['redirect'];
) : } else {
Templates::render('global/information.tpl', $renderData); // If not allowed print the restricted page
$template->setVariables($renderData);
// Print page contents
echo $template->render('global/information.tpl');
}
exit; exit;
} elseif (isset($_POST['submit']) && isset($_POST['submit'])) { } elseif (isset($_POST['submit']) && isset($_POST['submit'])) {
$continue = true; $continue = true;
@ -977,13 +985,17 @@ if (isset($_REQUEST['request-notifications']) && $_REQUEST['request-notification
} }
// Print page contents or if the AJAX request is set only display the render data // Print page contents or if the AJAX request is set only display the render data
print isset($_REQUEST['ajax']) ? if (isset($_REQUEST['ajax'])) {
( echo $renderData['page']['message'] . '|' .
$renderData['page']['message'] . '|' .
$renderData['page']['success'] . '|' . $renderData['page']['success'] . '|' .
$renderData['page']['redirect'] $renderData['page']['redirect'];
) : } else {
Templates::render('global/information.tpl', $renderData); // If not allowed print the restricted page
$template->setVariables($renderData);
// Print page contents
echo $template->render('global/information.tpl');
}
exit; exit;
} }