summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/functions/onshutdown.php')
-rw-r--r--frontend/functions/onshutdown.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/frontend/functions/onshutdown.php b/frontend/functions/onshutdown.php
index 60c2cb4..f144275 100644
--- a/frontend/functions/onshutdown.php
+++ b/frontend/functions/onshutdown.php
@@ -1,17 +1,17 @@
<?php
function onshutdown($footerloc, $headerloc) {
- global $S, $request, $conf, $death;
+ global $S;
if (isset($S) && is_array($S) && !$S['notemplates']) {
require_once($headerloc);
- if ($death) {
- echo $death;
+ if ($S['death']) {
+ echo $S['death'];
}
require_once($footerloc);
- } elseif (isset($conf) && isset($S) && is_array($S) && isset($request) && isset($request['ajax'])) {
- if (isset($death)) {
- echo '<death_message>'.$death.'</death_message>';
+ } elseif (isset($S['conf']) && isset($S) && is_array($S) && isset($_REQUEST) && isset($_REQUEST['ajax'])) {
+ if (isset($S['death'])) {
+ echo '<death_message>'.$S['death'].'</death_message>';
}
- if ($conf['debug']) {
+ if ($S['conf']['debug']) {
foreach ($S['debug'] as $row) {
list($type, $text)=$row;
echo '<debug>';