diff --git a/_diag_licenses.php b/_diag_licenses.php index 11e7b4e..2d0288d 100644 --- a/_diag_licenses.php +++ b/_diag_licenses.php @@ -1,45 +1,21 @@ 'mysql', - 'database_name' => $database['name'], - 'server' => $database['host'], - 'username' => $database['user'], - 'password' => $database['password'], - 'charset' => 'utf8' -]); - -spl_autoload_register(function($classname) { - $q = explode('\\', $classname); - $c = array_pop($q); - $f = '../autoload/' . implode('/', $q) . '/class.' . $c . '.php'; - if (file_exists($f)) { require_once($f); return; } - $f = '../autoload/' . implode('/', $q) . '/' . $c . '.php'; - if (file_exists($f)) require_once($f); -}); - -// Render just the licenses table portion -$licenses = \admin\factory\Releases::get_licenses(); - -echo "
empty(): " . (empty($licenses) ? 'TRUE' : 'FALSE') . "
\n"; - -echo "| ID | Domain | Key (8) | valid_to_version | beta |
|---|---|---|---|---|
| " . (int)$lic['id'] . " | "; - echo "" . htmlspecialchars($lic['domain']) . " | "; - echo "" . htmlspecialchars(substr($lic['key'], 0, 8)) . " | "; - echo "" . htmlspecialchars($lic['valid_to_version'] ?? '') . " | "; - echo "" . (int)$lic['beta'] . " | "; - echo "