result); $keylevels = $row['keylevels']; if (isset($_SESSION['keys_array'])) { $list = $_SESSION['keys_array']; $keys = NULL; for ($i = 0; $i < count($list); $i++) { $keys .= "" . $list[$i] . "
"; } echo "
$keys

"; echo ""; unset($_SESSION['keys_array']); } if (isset($_POST['genkeys'])) { $key = misc\license\createLicense($_POST['amount'], $_POST['mask'], 1, $_POST['level'], $_POST['note'], $_POST['expiry']); switch ($key) { case 'max_keys': dashboard\primary\error("You can only generate 100 licenses at a time"); break; case 'no_negative': dashboard\primary\error("Amount can't be negative!"); break; case 'unauthed_level': dashboard\primary\error("Not authorized to make licenses with that level!"); break; case 'invalid_exp': dashboard\primary\error("Invalid expiry!"); break; case 'insufficient_balance': dashboard\primary\error("Not enough balance to create license(s)"); break; case 'dupe_custom_key': dashboard\primary\error("Can't do custom key with amount greater than one"); break; default: if (misc\etc\sanitize($_POST['amount']) > 1) { $_SESSION['keys_array'] = $key; echo ""; } else { echo ""; dashboard\primary\success("License Created And Copied To Clipboard!"); misc\auditLog\send("Created a new license"); } break; } } if (isset($_POST['deletekey'])) { $userToo = ($_POST['delUserToo'] == "on") ? 1 : 0; $resp = misc\license\deleteSingular($_POST['deletekey'], $userToo); switch ($resp) { case 'failure': dashboard\primary\error("Failed to delete license!"); break; case 'nope': misc\auditLog\send("Attempted (and failed) to delete license he doesn't own " . $_POST['deletekey']); dashboard\primary\error("Nope, nice try!"); break; case 'success': misc\auditLog\send("Deleted license key " . $_POST['deletekey']); dashboard\primary\success("Successfully deleted license!"); break; default: dashboard\primary\error("Unhandled Error! Contact us if you need help"); break; } } if (isset($_POST['bankey'])) { $userToo = ($_POST['banUserToo'] == "on") ? 1 : 0; $resp = misc\license\ban($_POST['bankey'], $_POST['reason'], $userToo); switch ($resp) { case 'failure': dashboard\primary\error("Failed to ban license!"); break; case 'nope': misc\auditLog\send("Attempted (and failed) to ban license he doesn't own " . $_POST['bankey']); dashboard\primary\error("Nope, nice try!"); break; case 'success': misc\auditLog\send("Banned license key " . $_POST['bankey']); dashboard\primary\success("Successfully banned license!"); break; default: dashboard\primary\error("Unhandled Error! Contact us if you need help"); break; } } if (isset($_POST['unbankey'])) { $resp = misc\license\unban($_POST['unbankey']); switch ($resp) { case 'failure': dashboard\primary\error("Failed to unban license!"); break; case 'nope': misc\auditLog\send("Attempted (and failed) to unban license he doesn't own " . $_POST['unbankey']); dashboard\primary\error("Nope, nice try!"); break; case 'success': misc\auditLog\send("Unbanned license key " . $_POST['unbankey']); dashboard\primary\success("Successfully unbanned license!"); break; default: dashboard\primary\error("Unhandled Error! Contact us if you need help"); break; } } ?>

Reseller Licenses

Manage your licenses here.


Key Creation Date Duration Note Used On Used By Status Actions

Dropdown actions in RED do not show a confirmation! Dropdown actions in BLUE will show a confirmation!