Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

TheDeadLike - Process

By: HimitsuNoChikara on Sep 30th, 2012  |  syntax: PHP  |  size: 0.43 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php header("Content-Type: text/html; charset=utf-8"); ?>
  2. <?php $permittedList = array(
  3. "action" =>
  4.         array("upload", "delete"),
  5. "owner" =>
  6.         array("slider", "project")
  7. ); ?>
  8. <?php
  9. (
  10.         (count($_GET) == 2) and
  11.         (
  12.                 in_array($_GET['action'], $permittedList['action'])
  13.                 and
  14.                 in_array($_GET['owner'], $permittedList['owner'])
  15.         )
  16. ) ?
  17. require_once('includes/functions.php') :
  18. exit(header('HTTP/1.1 403 Forbidden'));
  19. ?>