has('sites', ['siteid' => $VARS['siteid']])) { $sitedata = $database->select( 'sites', [ 'siteid', 'sitename', 'url', 'theme', 'color' ], [ 'siteid' => $VARS['siteid'] ])[0]; } else { header('Location: app.php?page=sites'); } } else { header('Location: app.php?page=sites'); } ?>

"" . htmlspecialchars($sitedata['sitename']) . ""]); ?>