HEX
Server: Apache/2.4.57 (Unix) OpenSSL/1.1.1k
System: Linux server.eshhar.net 4.18.0-553.89.1.el8_10.x86_64 #1 SMP Mon Dec 8 03:53:08 EST 2025 x86_64
User: xdas (1048)
PHP: 7.4.33
Disabled: mail,sendmail
Upload Files
File: //usr/local/src/xcache-3.2.0/bin/phpdc.phpr
#! /usr/bin/php -dopen_basedir=
<?php

$srcdir = dirname(__FILE__);
require_once("$srcdir/../lib/Decompiler.class.php");
if (file_exists("$srcdir/phpdc.debug.php")) {
	include("$srcdir/phpdc.debug.php");
}

if (!isset($argv)) {
	$argv = $_SERVER['argv'];
	$argc = $_SERVER['argc'];
}

$dc = new Decompiler();
if (isset($argv[2])) {
	eval('$dc->decompileDasm(' . file_get_contents($argv[2]) . ');');
}
else if (isset($argv[1])) {
	if ($dc->decompileFile($argv[1]) === false) {
		exit(2);
	}
}
else {
	$phpcode = '';
	if (!defined('stdin')) {
		define('stdin', fopen('php://stdin', 'rb'));
	}
	while (!feof(stdin)) {
		$phpcode .= fgets(stdin);
	}
	if ($dc->decompileString($phpcode) === false) {
		exit(2);
	}
}
$dc->output();