Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Register Globals Fix
- if (ini_get('register_globals')) {
- ini_set('session.use_cookies', '1');
- ini_set('session.use_trans_sid', '0');
- session_set_cookie_params(0, '/');
- session_start();
- echo "got here2!";
- $globals = array($_REQUEST, $_SESSION, $_SERVER, $_FILES);
- foreach ($globals as $global) {
- foreach(array_keys($global) as $key) {
- unset($$key);
- }
- }
- ini_set('register_globals', 'Off');
- }
Add Comment
Please, Sign In to add comment