Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
da18bf14
Commit
da18bf14
authored
Nov 09, 2005
by
Leigh B. Stoller
Browse files
Minor mod to prevent inner iframes from showing headers on error.
Set $noheaders=1 in iframed pages.
parent
664c97e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/menu.php3
View file @
da18bf14
...
...
@@ -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
(
""
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment