oops
This commit is contained in:
parent
fcc1dcdf1f
commit
fb29f726c3
1 changed files with 33 additions and 21 deletions
|
@ -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 {
|
||||||
) :
|
// If not allowed print the restricted page
|
||||||
Templates::render('global/information.tpl', $renderData);
|
$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 {
|
||||||
) :
|
// If not allowed print the restricted page
|
||||||
Templates::render('global/information.tpl', $renderData);
|
$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 {
|
||||||
) :
|
// If not allowed print the restricted page
|
||||||
Templates::render('global/information.tpl', $renderData);
|
$template->setVariables($renderData);
|
||||||
|
|
||||||
|
// Print page contents
|
||||||
|
echo $template->render('global/information.tpl');
|
||||||
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue