Login   Register  
PHP Classes
elePHPant
Icontem

File: getRequestVar.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Muhammad Sameer  >  Database Abstraction plus SQL Injection  >  getRequestVar.php  >  Download  
File: getRequestVar.php
Role: Auxiliary script
Content type: text/plain
Description: SupportFile For Get/Post Variable
Class: Database Abstraction plus SQL Injection
MySQL access wrapper with SQL injection protection
Author: By
Last change:
Date: 2006-04-05 17:07
Size: 893 bytes
 

Contents

Class file image Download
<?php
if (!empty($_GET)) {
    
extract($_GETEXTR_OVERWRITE);
} else if (!empty(
$HTTP_GET_VARS)) {
    
extract($HTTP_GET_VARSEXTR_OVERWRITE);
// end if

if (!empty($_POST)) {
    
extract($_POSTEXTR_OVERWRITE);
} else if (!empty(
$HTTP_POST_VARS)) {
    
extract($HTTP_POST_VARSEXTR_OVERWRITE);
// end if

if (!empty($_FILES)) {
    while (list(
$name$value) = each($_FILES)) {
        $
$name $value['tmp_name'];
    }
} else if (!empty(
$HTTP_POST_FILES)) {
    while (list(
$name$value) = each($HTTP_POST_FILES)) {
        $
$name $value['tmp_name'];
    }
// end if

if (!empty($_SERVER)) {
    
extract($_SERVEREXTR_OVERWRITE);
} else if (!empty(
$HTTP_SERVER_VARS)) {
    
extract($HTTP_SERVER_VARSEXTR_OVERWRITE);
// end if

if(!empty($_SESSION)) {
    
extract($_SESSIONEXTR_OVERWRITE);
    }
else if(!empty(
$HTTP_SESSION_VARS)) {
    
extract($HTTP_SESSION_VARS,EXTR_OVERWRITE);
    }
?>