Diagnosis — nothing was changed
2026-11-13 17:19:49 · host new.adminsilver.com
Constants
miss
api/_api_inc.php : BASE_URL
not defined here
info
config.php : SUPERADMIN_DOMAIN
currently https://new.adminsilver.com
skip
config.php : SUPERADMIN_DOMAIN
already points at this host
Re-run with
?apply=1
to write the fix. Both files are backed up first.
Source I need for the UK / USA selector on reviews
Press the button and paste the result back in chat.
COPY
===== admin/_layout.php :: all_sites() ===== function all_sites() { static $s = null; if ($s === null) $s = db()->query("SELECT id, domain, company_name, is_active, jurisdiction FROM sites ORDER BY jurisdiction, company_name")->fetchAll(); return $s; } ===== admin/_layout.php :: site_checkboxes() ===== function site_checkboxes(array $checked, $name = 'sites') { $sites = all_sites(); if (!$sites) { echo '
There are no sites yet.
Add the first site
.
'; return; } // Split the satellites by jurisdiction so a UK review is never ticked onto // a US site by accident. Sites with no jurisdiction set count as UK. $groups = ['uk' => ['United Kingdom', []], 'us' => ['United States', []]]; foreach ($sites as $s) { $j = (($s['jurisdiction'] ?? 'uk') === 'us') ? 'us' : 'uk'; $groups[$j][1][] = $s; } ?>
Tick all
Untick all
$g): if (!$g[1]) continue; ?>
= h($g[0]) ?>
= count($g[1]) ?> site= count($g[1]) === 1 ? '' : 's' ?>
Tick these
Untick these
>
= h($s['company_name']) ?>
= h($s['domain']) ?>= $s['is_active'] ? '' : ' (disabled)' ?>
query("SELECT COUNT(*) c FROM reviews WHERE is_approved = 0")->fetch()['c']; admin_head('Reviews'); admin_topbar('Reviews', '
+ Add review
'); ?>
All countries
>United Kingdom
>United States
All sites
>= h($s['company_name']) ?>
= $pending ?> pending across the platform
Filter
Date
Author
Rating
Content
Shown on
Status
Delete this file,
check-site.php
,
fix-api-db.php
and
patch-jurisdiction.php
from the server when we are done.