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.
34 lines
657 B
34 lines
657 B
![]()
16 years ago
|
#! /usr/bin/php -dopen_basedir=
|
||
![]()
16 years ago
|
<?php
|
||
|
|
||
|
$srcdir = dirname(__FILE__);
|
||
![]()
10 years ago
|
require_once("$srcdir/../lib/Decompiler.class.php");
|
||
![]()
16 years ago
|
if (file_exists("$srcdir/phpdc.debug.php")) {
|
||
|
include("$srcdir/phpdc.debug.php");
|
||
|
}
|
||
|
|
||
|
if (!isset($argv)) {
|
||
|
$argv = $_SERVER['argv'];
|
||
|
$argc = $_SERVER['argc'];
|
||
|
}
|
||
|
|
||
![]()
14 years ago
|
$dc = new Decompiler();
|
||
![]()
11 years ago
|
if (isset($argv[2])) {
|
||
|
eval('$dc->dc = ' . file_get_contents($argv[2]) . ';');
|
||
|
}
|
||
|
else if (isset($argv[1])) {
|
||
![]()
16 years ago
|
$dc->decompileFile($argv[1]);
|
||
|
}
|
||
|
else {
|
||
|
$phpcode = '';
|
||
|
if (!defined('stdin')) {
|
||
|
define('stdin', fopen('php://stdin', 'rb'));
|
||
|
}
|
||
|
while (!feof(stdin)) {
|
||
|
$phpcode .= fgets(stdin);
|
||
|
}
|
||
![]()
11 years ago
|
$dc->decompileString($phpcode);
|
||
![]()
16 years ago
|
}
|
||
|
$dc->output();
|
||
|
|