getMessage()); \dashboard\primary\error($errorMsg); }); $hostname = ($_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME']); if ($hostname == "lizenz.tbs-server.de") { // custom domain $requrl = $_SERVER['REQUEST_URI']; $uri = trim($_SERVER['REQUEST_URI'], '/'); $pieces = explode('/', $uri); $owner = urldecode(misc\etc\sanitize($pieces[1])); $name = urldecode(misc\etc\sanitize($pieces[2])); if (substr_count($requrl, '/') >= 4) { header("location: https://lizenz.tbs-server.de/panel/{$owner}/{$name}"); } $query = misc\mysql\query("SELECT `secret`, `panelstatus`, `paused`, `owner`, `name`, `customerPanelIcon` FROM `apps` WHERE `name` = ? AND `owner` = ?", [$name, $owner]); } else { $query = misc\mysql\query("SELECT `secret`, `panelstatus`, `paused`, `owner`, `name`, `customerPanelIcon` FROM `apps` WHERE `customDomain` = ?",[$hostname]); } if ($query->num_rows < 1) { die("Panel does not exist."); } while ($row = mysqli_fetch_array($query->result)) { $secret = $row['secret']; $_SESSION['panelapp'] = $secret; $panelStatus = $row['panelstatus']; $paused = $row['paused']; $owner = $row['owner']; // in the cases where custom domain is used $name = $row['name']; // in the cases where custom domain is used $customerPanelIcon = $row['customerPanelIcon']; } if (!$panelStatus) { die("Panel was disabled by the application owner"); } if($paused) { die("Program has been paused by the program developer, likely to undergo maintenance updates. Please wait until later."); } $query = misc\mysql\query("SELECT 1 FROM `accounts` WHERE `username` = ? AND `role` = 'seller'",[$owner]); if ($query->num_rows < 1) { die("Tell the application owner they need to upgrade to seller to utilize customer panel!"); } ?>
To access = $name; ?> customer panel, you must login, or register. This information is provided to you by the owner of the application. Do not contact KeyAuth support if you can not access the customer panel.