system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
cmd: 

Direktori : /home/pfhr/public_html/Bin/
Upload File :
Current File : /home/pfhr/public_html/Bin/Security.php

<?php
class Bin_Security
{
	
	public function escapePost()
	{
		foreach($_POST as $key=>$item)
			$_POST[$key] = mysql_escape_string(stripslashes($item));	
	}
	
	public function escapeGet()
	{
		foreach($_GET as $key=>$item)
			$_GET[$key] = mysql_escape_string(stripslashes($item));	
	}
	
	public function escapeCookie()
	{
		foreach($_GET as $key=>$item)
			$_COOKIE[$key] = mysql_escape_string(stripslashes($item));	
	}

	public function escapeSession()
	{
		foreach($_SESSION as $key=>$item)
			$_SESSION[$key] = mysql_escape_string(stripslashes($item));	
	}
	
	public function checkConfigFile()
	{
		if(file_exists(ROOT_FOLDER.'Bin/Configuration.php'))
		{
			include(ROOT_FOLDER.'Bin/Configuration.php');
			if(class_exists("Bin_Configuration"))
				return true;
			else
				return false;
		}
		else
			return false;
	}
}

if(!Bin_Security::checkConfigFile())
	die("Configuration file corrupted or missing...")

?>