Commit da18bf14 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor mod to prevent inner iframes from showing headers on error.

Set $noheaders=1 in iframed pages.
parent 664c97e5
......@@ -8,6 +8,7 @@
$login_status = CHECKLOGIN_NOTLOGGEDIN;
$login_uid = 0;
$drewheader = 0;
$noheaders = 0;
$autorefresh = 0;
#
......@@ -968,14 +969,15 @@ function PAGEFOOTER($view = NULL) {
}
function PAGEERROR($msg) {
global $drewheader;
global $drewheader, $noheaders;
if (! $drewheader)
if (! $drewheader && ! $noheaders)
PAGEHEADER("Page Error");
echo "$msg\n";
PAGEFOOTER();
if (! $noheaders)
PAGEFOOTER();
die("");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment