// in place of the hardcoded
  • ...
  • block. Active state reads $section // (set higher in the include) — same convention as the surrounding items. function widget_inbox_drawer_section() { global $section; $is_inbox = in_array($section ?? '', ['messages', 'notifications', 'email']); $li_class = 'nav-item' . ($is_inbox ? ' active' : ''); $ul_class = 'collapse list-unstyled' . ($is_inbox ? ' show' : ''); $aria_expanded = $is_inbox ? 'true' : 'false'; return '
  • ' . '' . nav_icon_tag('inbox-menu') . ' Inbox' . '
  • '; } function widget_axp_drawer_nav() { $path = parse_url($_SERVER['REQUEST_URI'] ?? '/axp', PHP_URL_PATH) ?: '/axp'; $first_seg = '/' . explode('/', ltrim($path, '/'))[0]; $row = function ($href, $icon, $label) use ($first_seg) { $active = ($href === $first_seg) ? ' active' : ''; return '' . '' . '' . htmlspecialchars($label) . ''; }; $section = function ($label) { return '
    ' . htmlspecialchars($label) . '
    '; }; $out = [''; return implode("\n", $out); } //-------------------------------------------------------------------- function widget_user_menu() { echo " "; } //--------------------------------------------------------------------------------- function widget_referral_link($pdo_connection, $uid, $inline=FALSE) { $account = get_account_data_pdo($pdo_connection, SITE_PREFIX, $uid); var_dump($account); if($account['account_id'] >= 1){ $refid = SITE_URL . "/r/{$account['account_refid']}"; } else { $refid = "Invalid user account: $uid on ".SITE_PREFIX; } if($inline) { echo $refid; } return $refid; } //--------------------------------------------------------------------------------- function widget_profile_menubar($handle) { echo "
    Follow
    Connect
    Message
    Invite
    "; } //--------------------------------------------------------------------------------- function list_emails($email_array) { global $LIST_EM_STATUS, $LIST_EMAIL; if (!$email_array) { echo "

    No email records found.

    "; return; } if (!empty($email_array['ERRORS'])) { echo "

    Error returning records.

    "; return; } echo "
    "; foreach ($email_array as $email_data) { $title = htmlspecialchars($LIST_EMAIL[$email_data['email_description']] ?? 'Email'); echo "
    "; echo "
    "; echo " {$title}"; if (!empty($email_data['email_default'])) { echo " DEFAULT"; } echo "
    "; echo "
    "; echo "

    Email: " . htmlspecialchars($email_data['email_data']) . "

    "; echo "

    Status: " . htmlspecialchars($LIST_EM_STATUS[$email_data['email_status']] ?? '') ; if ($email_data['email_status'] != 3) { echo " VERIFY NOW"; } echo "

    "; if (empty($email_data['email_default'])) { echo "
    "; echo " CHANGE"; echo " SET DEFAULT"; echo " DELETE"; echo "
    "; } echo "
    "; echo "
    "; } echo "
    "; } //------------------------------------------------------------------------------------- function list_addresses($addr_array) { global $LIST_ADDRESS, $LIST_COUNTRY, $LIST_ADDR_STATUS; if (!$addr_array) { echo "

    No address records found.

    "; return; } if (!empty($addr_array['ERRORS'])) { echo "

    Error returning records.

    "; return; } echo "
    "; foreach ($addr_array as $addr_data) { $title = htmlspecialchars($LIST_ADDRESS[$addr_data['addr_description']] ?? 'Address'); echo "
    "; echo "
    "; echo " {$title}"; if (!empty($addr_data['addr_default'])) { echo " DEFAULT"; } echo "
    "; echo "
    "; echo "

    " . htmlspecialchars($addr_data['addr_main']) . "

    "; echo "

    " . htmlspecialchars(trim(($addr_data['addr_town'] ?? '') . ' ' . ($addr_data['addr_state'] ?? '') . ' ' . ($addr_data['addr_code'] ?? ''))) . "

    "; echo "

    " . htmlspecialchars($LIST_COUNTRY[$addr_data['addr_country']] ?? $addr_data['addr_country']) . "

    "; echo "

    Status: " . htmlspecialchars($LIST_ADDR_STATUS[$addr_data['addr_status']] ?? '') . "

    "; if (empty($addr_data['addr_default'])) { echo "
    "; echo " CHANGE"; echo " SET DEFAULT"; echo " DELETE"; echo "
    "; } echo "
    "; echo "
    "; } echo "
    "; } //------------------------------------------------------------------------------------- function list_numbers($num_array) { global $LIST_PHONE, $LIST_PHONE_STATUS; if (!$num_array) { echo "

    No phone records found.

    "; return; } if (!empty($num_array['ERRORS'])) { echo "

    Error returning records.

    "; return; } echo "
    "; foreach ($num_array as $num_data) { $title = htmlspecialchars($LIST_PHONE[$num_data['number_description']] ?? 'Phone'); $ext = trim((string)($num_data['number_ext'] ?? '')); echo "
    "; echo "
    "; echo " {$title}"; if (!empty($num_data['number_default'])) { echo " DEFAULT"; } echo "
    "; echo "
    "; echo "

    Number: " . htmlspecialchars($num_data['number_data'] ?? ''); if ($ext !== '') { echo " ext. " . htmlspecialchars($ext); } echo "

    "; echo "

    Status: " . htmlspecialchars($LIST_PHONE_STATUS[$num_data['number_status']] ?? '') . "

    "; if (empty($num_data['number_default'])) { echo "
    "; echo " CHANGE"; echo " SET DEFAULT"; echo " DELETE"; echo "
    "; } echo "
    "; echo "
    "; } echo "
    "; } //------------------------------------------ function list_socials($socials_array) { global $LIST_WALLET_STATUS, $SOCIAL_NETWORKS; if (!$socials_array) { echo "

    No socials records found.

    "; return; } if (!empty($socials_array['ERRORS'])) { echo "

    Error returning records.

    "; return; } echo "
    "; foreach ($socials_array as $social_data) { $title = htmlspecialchars($SOCIAL_NETWORKS[$social_data['social_network']]['NAME'] ?? 'Social'); echo "
    "; echo "
    "; echo " {$title}"; if (!empty($social_data['social_default'])) { echo " DEFAULT"; } echo "
    "; echo "
    "; echo "

    Handle: " . htmlspecialchars($social_data['social_data'] ?? '') . "

    "; echo "

    Status: " . htmlspecialchars($LIST_WALLET_STATUS[$social_data['social_status']] ?? '') . "

    "; if (empty($social_data['social_default'])) { echo "
    "; echo " CHANGE"; echo " SET DEFAULT"; echo " DELETE"; echo "
    "; } echo "
    "; echo "
    "; } echo "
    "; } //------------------------------------------ function list_wallets($wallets_array) { global $LIST_WALLET_STATUS, $BLOCKCHAINS, $WITHDRAWAL_METHODS; if (!$wallets_array) { echo "

    No payment id records found.

    "; return; } if (!empty($wallets_array['ERRORS'])) { echo "

    Error returning records.

    "; return; } echo "
    "; foreach ($wallets_array as $wallet_data) { $chains = array_filter(array_map('trim', explode(',', (string)($wallet_data['wallet_network'] ?? '')))); $networks = []; foreach ($chains as $chain) { $networks[] = $BLOCKCHAINS[$chain]['NAME'] ?? $chain; } $network_label = $networks ? implode(', ', $networks) : '—'; echo "
    "; echo "
    "; echo " " . htmlspecialchars($network_label) . ""; if (!empty($wallet_data['wallet_default'])) { echo " DEFAULT"; } echo "
    "; echo "
    "; echo "

    Wallet: " . htmlspecialchars($wallet_data['wallet_data'] ?? '') . "

    "; echo "

    Status: " . htmlspecialchars($LIST_WALLET_STATUS[$wallet_data['wallet_status']] ?? '') . "

    "; if (empty($wallet_data['wallet_default'])) { echo "
    "; echo " CHANGE"; echo " SET DEFAULT"; echo " DELETE"; echo "
    "; } echo "
    "; echo "
    "; } echo "
    "; } //------------------------------------------------------------------------------ function widget_login_panel_mini() { //modal login?? again, only allow if no other mods are required. echo "

    MEMBERS LOGIN

    "; } //----------------------------------------------------------------------------- function widget_link($noauth_loc, $noauth_text, $authed_loc, $authed_text) { if($_SESSION['authorised']){ $buffer = "$authed_text"; } else { $buffer = "$noauth_text"; } return $buffer; } //----------------------------------------------------------------------------- function widget_login_dash_link() { if($_SESSION['authorised']){ $buffer = "DASHBOARD"; } else { $buffer = "LOGIN"; } return $buffer; } //----------------------------------------------------------------------------- function widget_login_link($login_text, $logout_text) { if($_SESSION['authorised']){ $buffer = "$logout_text"; } else { $buffer = "$login_text"; } return $buffer; } //----------------------------------------------------------------------------- function widget_register_link($unauthed_text, $authed_text) { if($_SESSION['authorised']){ $buffer = "$authed_text"; } else { $buffer = "$unauthed_text"; } return $buffer; } //----------------------------------------------------------------------------- function widget_tag_link($tag, $styles, $noauth_loc, $noauth_text, $authed_loc, $authed_text) { if($_SESSION['authorised']){ $buffer = "<$tag $styles>$authed_text"; } else { $buffer = "<$tag $styles>$noauth_text"; } return $buffer; } //-------------------------------------------------------------------- function widget_show_latest_users_pdo($pdo_connection, $width = 300, $height = 250, $list_size = 50) { global $LIST_COUNTRY; $rows = get_latest_users_pdo($pdo_connection, $prefix, $list_size); echo "
    "; echo "

    Just Joined

    "; if(count($rows)) { foreach($rows as $row_array) { if(strlen($row_array['user_fname']) > 14) { $name_string = substr(ucfirst(strtolower($row_array['user_fname'])), 0, 14).". ".substr(ucfirst($row_array['user_sname']), 0, 14); } else { $name_string = ucfirst(strtolower($row_array['user_fname']))." ".substr(ucfirst($row_array['user_sname']), 0, 20); } $name_string = substr(ucfirst($name_string), 0, 28); echo "
    "; echo "
    $name_string
    "; echo "
    "; if(REQUIRE_CREATE_ADDRESS) { echo substr($LIST_COUNTRY[$row_array['addr_country']] ?? $row_array['addr_country'], 0, 14); } else { echo "({$row_array['user_key']})"; } echo "
    "; echo "
    ".date("M d, Y H:i:s", $row_array['user_stamp'])."
    "; echo "
    "; } } echo ""; echo "
    "; } //--------------------------------------------------------------------- // widget_nav — renders the chrome header + sidemenu as a widget so it can // be invoked from a content block via ((widget_nav:private)) instead of a // raw php HEADER include. Wraps the site's CDN php nav (which self-declares // $LIST_AFFILIATE_*/$request_uri_data; we supply the caller-scope globals). function widget_nav($which = 'private', $sec = '') { global $pdo_connection, $section, $page_title; // Active-section: the page-set global $section doesn't reach widget render // scope, so the content block passes the current page in — ((widget_nav:private,[[PAGE]])). // Derive $section from the first path segment (dashboard -> 'main' to match the nav). if ($sec !== '') { $seg = explode('/', trim((string)$sec, '/'))[0] ?? ''; $section = ($seg === '' || $seg === 'dashboard') ? 'main' : $seg; } $map = [ 'private' => 'html_page_header_private.php', 'admin' => 'html_page_header_private.php', 'public' => 'html_page_header_public.php', ]; $file = $map[$which] ?? 'html_page_header_private.php'; ob_start(); include CDN_ROOT . '/php/' . $file; return ob_get_clean(); } https://https://sixtysecond.site/login2026-05-15T08:05UTC0.500https://https://sixtysecond.site/logout2026-05-15T08:05UTC0.500https://https://sixtysecond.site/register2026-05-15T08:05UTC0.500https://https://sixtysecond.site/resetpass2026-05-15T08:05UTC0.500https://https://sixtysecond.site/validate2026-05-15T08:05UTC0.500https://https://sixtysecond.site/verify2026-05-15T08:05UTC0.500