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
43857179
Commit
43857179
authored
Nov 07, 2013
by
Mike Hibler
Browse files
Hopefully the last round of deprecated global var references.
parent
9a9f416c
Changes
9
Hide whitespace changes
Inline
Side-by-side
www/dbdefs.php3.in
View file @
43857179
...
...
@@ -867,9 +867,9 @@ function DBQueryWarn($query, $linkid = NULL)
#
function
DBWarn
(
$message
)
{
global
$PHP_SELF
,
$DBErrorString
;
global
$DBErrorString
;
$text
=
"
$message
- In
$
PHP_SELF
\n
"
.
$text
=
"
$message
- In
"
.
$_SERVER
[
"
PHP_SELF
"
]
.
"
\n
"
.
"
$DBErrorString
\n
"
;
TBERROR
(
$text
,
0
);
...
...
@@ -882,9 +882,9 @@ function DBWarn($message)
#
function
DBFatal
(
$message
)
{
global
$PHP_SELF
,
$DBErrorString
;
global
$DBErrorString
;
$text
=
"
$message
- In
$
PHP_SELF
\n
"
.
$text
=
"
$message
- In
"
.
$_SERVER
[
"
PHP_SELF
"
]
.
"
\n
"
.
"
$DBErrorString
\n
"
;
TBERROR
(
$text
,
1
);
...
...
www/hyperviewer/docwrapper.php3
View file @
43857179
<?php
#
# Copyright (c) 2004
, 2007
University of Utah and the Flux Group.
# Copyright (c) 2004
-2013
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -67,6 +67,7 @@ if ($printable) {
<body>
\n
"
;
}
else
{
$REQUEST_URI
=
$_SERVER
[
"REQUEST_URI"
];
echo
"<b><a href=
$REQUEST_URI
&printable=1>
Printable version of this document</a></b><br>
\n
"
;
}
...
...
www/hyperviewer/hyperviewer.php3
View file @
43857179
<?php
#
# Copyright (c) 2004
, 2007
University of Utah and the Flux Group.
# Copyright (c) 2004
-2013
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -41,6 +41,7 @@ if (!$printable) {
}
if
(
!
$printable
)
{
$REQUEST_URI
=
$_SERVER
[
"REQUEST_URI"
];
echo
"<b><a href=
$REQUEST_URI
?printable=1>
Printable version of this document</a></b><br>
\n
"
;
}
...
...
www/netlab/client.php3
View file @
43857179
<?php
#
# Copyright (c) 2004
, 2005, 2007
University of Utah and the Flux Group.
# Copyright (c) 2004
-2013
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -40,6 +40,7 @@ if (!$printable) {
}
if
(
!
$printable
)
{
$REQUEST_URI
=
$_SERVER
[
"REQUEST_URI"
];
echo
"<b><a href=
$REQUEST_URI
?printable=1>
Printable version of this document</a></b><br>
\n
"
;
}
...
...
www/robotrack/robotrack.php3
View file @
43857179
...
...
@@ -142,6 +142,7 @@ PAGEHEADER("Real Time Robot Tracking Applet");
#
# Draw the legend and some explanatory text.
#
$REQUEST_URI
=
$_SERVER
[
"REQUEST_URI"
];
echo
"<table cellspacing=5 cellpadding=5 border=0 class=
\"
stealth
\"
>
<tr>
<td align=
\"
left
\"
valign=
\"
top
\"
class=
\"
stealth
\"
>
...
...
www/sdr/docwrapper.php3
View file @
43857179
<?php
#
# Copyright (c) 2005
, 2007
University of Utah and the Flux Group.
# Copyright (c) 2005
-2013
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -77,6 +77,7 @@ if ($printable) {
<body>
\n
"
;
}
else
{
$REQUEST_URI
=
$_SERVER
[
"REQUEST_URI"
];
echo
"<b><a href=
$REQUEST_URI
&printable=1>
Printable version of this document</a></b><br>
\n
"
;
}
...
...
www/tutorial/docwrapper.php3
View file @
43857179
<?php
#
# Copyright (c) 2000-20
03, 2007
University of Utah and the Flux Group.
# Copyright (c) 2000-20
13
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -80,6 +80,7 @@ if ($printable) {
<body>
\n
"
;
}
else
{
$REQUEST_URI
=
$_SERVER
[
"REQUEST_URI"
];
echo
"<b><a href=
$REQUEST_URI
&printable=1>
Printable version of this document</a></b><br>
\n
"
;
}
...
...
www/tutorial/mobilewireless.php3
View file @
43857179
<?php
#
# Copyright (c) 2004-201
0
University of Utah and the Flux Group.
# Copyright (c) 2004-201
3
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -47,6 +47,7 @@ echo "
</head>"
;
if
(
!
$printable
)
{
$REQUEST_URI
=
$_SERVER
[
"REQUEST_URI"
];
echo
"<b><a href=
$REQUEST_URI
?printable=1>
Printable version of this document</a></b><br>
\n
"
;
}
...
...
www/webdb/webdb_backend.php3
View file @
43857179
...
...
@@ -22,24 +22,24 @@ function quoteForSQL( $l ) {
}
function
linkToViewDB
(
$text
,
$dbname
)
{
global
$
PHP_SELF
;
$PHP_SELF
=
$_SERVER
[
"
PHP_SELF
"
]
;
return
"<a href=
\"
$PHP_SELF
?dbname=
$dbname
\"
>
$text
</a>"
;
}
function
linkToViewServer
(
$text
)
{
global
$
PHP_SELF
;
$PHP_SELF
=
$_SERVER
[
"
PHP_SELF
"
]
;
// use view action so we don't kick them into default database.
return
"<a href=
\"
$PHP_SELF
?action=view
\"
>
$text
</a>"
;
}
function
linkToViewTable
(
$text
,
$dbname
,
$tablename
)
{
global
$
PHP_SELF
;
$PHP_SELF
=
$_SERVER
[
"
PHP_SELF
"
]
;
return
"<a href=
\"
$PHP_SELF
?dbname=
$dbname
&tablename=
$tablename
\"
>
$text
</a>"
;
}
function
linkToViewTableExtra
(
$text
,
$extra
,
$dbname
,
$tablename
)
{
global
$
PHP_SELF
;
$PHP_SELF
=
$_SERVER
[
"
PHP_SELF
"
]
;
return
"<a href=
\"
$PHP_SELF
?dbname=
$dbname
&tablename=
$tablename
&
$extra
\"
>
$text
</a>"
;
}
...
...
@@ -92,7 +92,7 @@ function encap( $c, $tag, $first ) {
}
function
_form
(
$c
)
{
global
$
PHP_SELF
;
$PHP_SELF
=
$_SERVER
[
"
PHP_SELF
"
]
;
return
"<form action='
$PHP_SELF
' method=post>
\n
"
.
$c
.
"</form>
\n
"
;
}
...
...
@@ -117,11 +117,11 @@ function _p( $c ) { return encap( $c, "p", ""); }
function
_b
(
$c
)
{
return
encap
(
$c
,
"b"
,
""
);
}
function
_i
(
$c
)
{
return
encap
(
$c
,
"i"
,
""
);
}
function
_link
(
$c
,
$vars
)
{
global
$
PHP_SELF
;
$PHP_SELF
=
$_SERVER
[
"
PHP_SELF
"
]
;
return
encap
(
$c
,
"a"
,
"href=
\"
$PHP_SELF
?
$vars
\"
"
);
}
function
_link2
(
$c
,
$vars
,
$o
)
{
global
$
PHP_SELF
;
$PHP_SELF
=
$_SERVER
[
"
PHP_SELF
"
]
;
return
encap
(
$c
,
"a"
,
"href=
\"
$PHP_SELF
?
$vars
\"
$o
"
);
}
...
...
Write
Preview
Markdown
is supported
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