Log Out"; } else { $links = <<Log In Register HTML; } return $links .= "Help"; } function debug_db_info(): string { $total_time = round(microtime(true) - START, 4); return '
'. $total_time . ' Seconds, ' . db()->count . ' Queries
'; } function right_nav(): string { if (user() === false) return ''; // Flashy numbers if they're low $hp = (user()->currenthp <= (user()->maxhp / 5)) ? "*" . user()->currenthp . "*" : user()->currenthp; $mp = (user()->currentmp <= (user()->maxmp / 5)) ? "*" . user()->currentmp . "*" : user()->currentmp; $template = render('right_nav', ['hp' => $hp, 'mp' => $mp]); if (is_htmx()) $template = '"; return $template; } function babblebox(): string { return render('babblebox', ['messages' => babblebox_messages()]); }