Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
domainepublic
alternc
Commits
6cd7bdd3
Commit
6cd7bdd3
authored
Feb 23, 2014
by
Chris
Committed by
fred
Aug 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout equivalent register_global suite à la migration PHP.
parent
d2569fa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
dirty_hack_restore_register_globals.php
dirty_hack_restore_register_globals.php
+20
-0
No files found.
dirty_hack_restore_register_globals.php
0 → 100644
View file @
6cd7bdd3
<?php
// Restore register_globals-like behavior
// -_-
foreach
(
$_REQUEST
as
$key
=>
$val
)
{
${$key}
=
$val
;
}
foreach
(
$_SERVER
as
$key
=>
$val
)
{
${$key}
=
$val
;
}
foreach
(
$_COOKIE
as
$key
=>
$val
)
{
${$key}
=
$val
;
}
foreach
(
$_POST
as
$key
=>
$val
)
{
${$key}
=
$val
;
}
foreach
(
$_GET
as
$key
=>
$val
)
{
${$key}
=
$val
;
}
?>
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