Login   Register  
PHP Classes
elePHPant
Icontem

File: ex5.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marcos Bezerra  >  Web Open Patch  >  ex5.php  >  Download  
File: ex5.php
Role: Example script
Content type: text/plain
Description: Example #5: Anti-Remote Code Injection
Class: Web Open Patch
Filter values to prevent security exploits
Author: By
Last change:
Date: 2010-01-12 12:00
Size: 260 bytes
 

Contents

Class file image Download
<?php

include_once("WebOpenPatch.php");

$wop = new WebOpenPatch();

$secoes = array('home''noticias''fotos''blog');

$secaoValida $wop->wopAntiRemoteCodeInjection($_GET['secao'], $secoes);

include_once(
"{$secaoValida}/data.inc.php");

?>