Location: PHPKode > projects > WebServer Sentry > icept/oldraw.php
<?
#WebServer Sentry:-
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT	
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT	
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT
#WebServer Sentry uses PHPLOT class and IP2NATIONS and any licensing conditions of PHPLOT/IP2NATIONS remain with its respective copyright
#holder/licensing conditions.
#Reverse engineering this script is not permitted.Modifications to improve its performance are welcome as long as you document this at the sourceforge project page.
#Contact hide@address.com    
#########################################################################################################################################
#########################################################################################################################################
#Welcome to WebServer Sentry: Version 1.0:- Please note that Vic Kaprilian does not accept responsibility for the use of the script or any financial loss and it is being released because the E-Commerce/Internet needs it!.
function raw_post() {
        $data = '';
        # Are global variables set: if so use HTTP_RAW_POST
        if (!$data && isset($_GLOBALS) && isset($_GLOBALS["HTTP_RAW_POST_DATA"]))
        $data = $_GLOBALS["HTTP_RAW_POST_DATA"];
        # Are global variables set: if so use HTTP_RAW_POST
        if (!$data && isset($HTTP_RAW_POST_DATA))
            $data = $HTTP_RAW_POST_DATA;
        # Define file_get_contents if it doesn't exist
        if (!$data) {
            if (!function_exists('file_get_contents')) {
                $fp = fopen("php://input", "r");
                if ($fp) {
                    $data = '';
                 # Create file till EOF.   
                    while (!feof($fp))
                    $data = fread($fp, 1024);
                 fclose($fp);
                 # Return data to function call.
                 $warn="T0pSeKret";
                 if(strstr($data,$warn)) { 
                 $data="Danger: Blocking suggested";
                 }else{
                 }
                 return $data;
                }
              } else {
                $data = "" . file_get_contents("php://input");
                # Return data to function call.
            return $data;
            }
          }
        }
#WebServer Sentry:-
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT	
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT	
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT
#WebServer Sentry uses PHPLOT class and IP2NATIONS and any licensing conditions of PHPLOT/IP2NATIONS remain with its respective copyright
#holder/licensing conditions.
#Reverse engineering this script is not permitted.Modifications to improve its performance are welcome as long as you document this at the sourceforge project page.
#Contact hide@address.com    
#########################################################################################################################################
#########################################################################################################################################
#Welcome to WebServer Sentry: Version 1.0:- Please note that Vic Kaprilian does not accept responsibility for the use of the script or any financial loss and it is being released because the E-Commerce/Internet needs it!.
?>
Return current item: WebServer Sentry