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 1.99 Year Ago
 
 
WHERE ARE YOUR BRACKETS!! AHHH....
Page 1 of 1
 
 
Latest News About Coder Profile
Coder Profile Poll
Why do you get bored with programming?

Not enough time to do something productive
I run out of ideas
Too hard to show people my creations
Everything i do has too many errors, and it's too hard
I don't get bored!!!


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
1.67 Year Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2010, Scott Thompson, All Rights Reserved