root/efio/include/protects.php

Revision 1, 418 bytes (checked in by teiko, 5 years ago)

Added current version of efio

Line 
1 <?php
2 $protects = array('_REQUEST', '_GET', '_POST', '_COOKIE', '_FILES', '_SERVER', '_ENV', 'GLOBALS', '_SESSION');
3 foreach ($protects as $protect) {
4     if (in_array($protect, array_keys($_REQUEST)) ||
5     in_array($protect, array_keys($_GET)) ||
6     in_array($protect, array_keys($_POST)) ||
7     in_array($protect, array_keys($_COOKIE)) ||
8     in_array($protect, array_keys($_FILES))) {
9         die("Invalid Request.");
10     }
11 }
12 ?>
Note: See TracBrowser for help on using the browser.