Coder Profile - Show off your skills, get a coder profile.
 
 
 
code pin board Securing globals Download Source Code
Author Details Code Information
Skepsis ( Matt )

Pinned 4 Codes
Posted 0 Coding Articles

Send A Message
View Coders Profile
Language PHP (Hypertext Preprocessor)
Expires Never
Length 880 Characters (20 Lines)
Password no password
  1. /*
  2. |---------------------------------------------------------------
  3. | SECURE ALL $_POST, $_GET, $_SESSION, $_REQUEST and $_COOKIE
  4. |---------------------------------------------------------------
  5. */
  6.  
  7.           if( preg_match( '/MICROSOFT URL CONTROL - 6.00.(88.62|81.69)/i', getenv('HTTP_USER_AGENT') ) === true ) die( '<h1>You did wrong...</h1>' );
  8.  
  9.           $methods = array( $_POST, $_GET, $_SESSION, $_REQUEST, $_COOKIE );
  10.  
  11.           foreach( $methods as $method ):
  12.                     if( is_array( $method ) ):
  13.                               foreach( $method as $key => $val ):
  14.                                         $method[$key] = escapeshellcmd( stripslashes( strip_tags( htmlspecialchars( $val, ENT_QUOTES ) ) ) );
  15.                                         $$key = escapeshellcmd( stripslashes( strip_tags( htmlspecialchars( $val, ENT_QUOTES ) ) ) );
  16.                               endforeach;
  17.                     else:
  18.                               $method = escapeshellcmd( stripslashes( strip_tags( htmlspecialchars( $method, ENT_QUOTES ) ) ) );
  19.                     endif;
  20.           endforeach;
code pin board Back To Code Pin Board Post New Code
Please login to post comments.
 
Izzmo     Posted 73 Days Ago
 
 
WHERE ARE YOUR BRACKETS!! AHHH....
Page 1 of 1
 
 
Part of the MyPingle Network
Development Blog :: Make A Donation :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents
Version 1.44.00
Copyright © 2007 - 2008, Scott Thompson, All Rights Reserved