0 ) { header("Location: /error/"); exit; } $panel = json_decode(implode('', $output), true); } */ /* // Check user session if ((!isset($_SESSION['user'])) && (!defined('NO_AUTH_REQUIRED'))) { $_SESSION['request_uri'] = $_SERVER['REQUEST_URI']; header("Location: /login/"); exit; } */ ?> Edit file <?= htmlspecialchars($_REQUEST['path']) ?> Error while saving file

');//echo '0'; } } unlink($fn); } } // $content = file_get_contents($path); // v-open-fs-file //print file_get_contents($path); exec (VESTA_CMD . "v-check-fs-permission {$user} {$path}", $content, $return_var); if ($return_var != 0) { print 'Error while opening file'; // todo: handle this more styled exit; } /*exec (VESTA_CMD . "v-open-fs-file {$user} {$path}", $content, $return_var); if ($return_var != 0) { print 'Error while opening file'; // todo: handle this more styled exit; } $content = implode("\n", $content);*/ $content = file_get_contents($path); } } else { $content = ''; } ?>