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!"); } ?> Login to <?= $name; ?> panel

Customer Panel

To access 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.

New to the panel? Register Now.
Need to to upgrade your account? Upgrade Now.
result); $reason = $row['banned']; } dashboard\primary\error("Banned: Reason: " . misc\etc\sanitize($reason)); break; case 'sub_paused': dashboard\primary\error("Your subscription is paused! Wait for the developer to unpause it"); break; case 'no_active_subs': dashboard\primary\error("You have no active subscriptions! You you change this by clicking upgrade"); break; default: $_SESSION['un'] = $un; header("location: ../dashboard/"); break; } } ?>