include 'config.php'; include 'libs/Link.class.php'; include 'functions.php'; include 'libs/Socket.class.php'; include 'libs/Guest.class.php'; include 'libs/User.class.php'; include 'libs/Admin.class.php'; include 'libs/Root.class.php'; include 'libs/Api.class.php'; $request = new Api(); $result = $request->send_request(); if (empty($_GET['page'])) { $_GET['page'] = ''; } if ($request->is_co()) { if ($request->getLevel() > 1) { switch ($_GET['page']) { //Profile case 'profile': $page = $_GET['page']; break; //Profile installation //Profile installation case 'profile_user_installation': $page = $_GET['page']; break; //Conf_general //Conf_general case 'conf_general': $page = $_GET['page']; break;
<?php include 'header.php'; $request = new Api(); $result = $request->send_request(); if ($request->getLevel() < 2) { redirect(); } if (empty($_GET['file']) or !($_GET['file'] > 0)) { redirect(); } $path = '/etc/domoleaf/sql/backup/'; $file = 'domoleaf_backup_' . $_GET['file'] . '.sql.tar.gz'; if (!file_exists($path . $file)) { redirect(); } ob_clean(); header("content-type: application/x-gzip"); header("Content-Disposition: filename=" . $file); flush(); readfile($path . $file);