XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
562 B

  1. #! /usr/bin/php -dopen_basedir=
  2. <?php
  3. $srcdir = dirname(__FILE__);
  4. require_once("$srcdir/Decompiler.class.php");
  5. if (file_exists("$srcdir/phpdc.debug.php")) {
  6. include("$srcdir/phpdc.debug.php");
  7. }
  8. if (!isset($argv)) {
  9. $argv = $_SERVER['argv'];
  10. $argc = $_SERVER['argc'];
  11. }
  12. $dc = &new Decompiler();
  13. if (isset($argv[1])) {
  14. $dc->decompileFile($argv[1]);
  15. }
  16. else {
  17. $phpcode = '';
  18. if (!defined('stdin')) {
  19. define('stdin', fopen('php://stdin', 'rb'));
  20. }
  21. while (!feof(stdin)) {
  22. $phpcode .= fgets(stdin);
  23. }
  24. $dc->decompileFile($phpcode);
  25. }
  26. $dc->output();