<a id="goUp" data-toggle="dropdown" class="dropdown-toggle showmobile" data-toggle="dropdown" data-hover="dropdown" data-delay="100" data-close-others="true" href="#"><img src="//<?php echo $domain; ?> /inc/img/logo.celebration.png" class="showmobile" style="width:35px;position:relative;top:10px;"/> </a> <ul class="dropdown-menu"> <?php if ($_loggedin && GetNotification() != 0) { ?> <li><a href="//<?php echo $domain; ?> /settings/friends/"><?php echo GetNotification(); ?> Notifications</a></li> <li class="divider"></li> <?php } // Display subdomain pages related to the user if (isset($__url_useraccount)) { ?> <li><a href="//<?php echo $subdomain . "." . $domain; ?> /">Profile</a></li> <li><a href="//<?php echo $subdomain . "." . $domain;
<?php require_once __DIR__ . '/../../inc/functions.php'; require_once __DIR__ . '/../../inc/functions.ajax.php'; require_once __DIR__ . '/../../inc/classes/statuses.php'; require_once __DIR__ . '/../../inc/job_list.php'; CheckSupportedTypes('info'); if ($request_type == 'info') { $res = array(); $res['time'] = (int) $__server_time; $_client_time = isset($_POST['client-time']) ? intval($_POST['client-time']) : time() - 10000; $res['loggedin'] = $_loggedin; $res['notifications'] = $_loggedin ? (int) GetNotification() : 0; if ($_loggedin) { $res['membername'] = $_loginaccount->GetUsername(); $__database->query("UPDATE accounts SET last_login = NOW(), last_ip = '" . $_SERVER['REMOTE_ADDR'] . "' WHERE id = " . $_loginaccount->GetID()); $statuscount = $__database->query("SELECT COUNT(*) FROM social_statuses WHERE account_id = " . $_loginaccount->GetID()); $row = $statuscount->fetch_row(); $res['memberstatuses'] = (int) $row[0]; } $url = isset($_POST['url']) ? $_POST['url'] : null; $parsed_url = $url == null ? null : parse_url($url); $is_ok_url = $url != null && strpos($parsed_url['host'], $domain) !== false; // Check server status $res['server_status'] = GetMaplerServerInfo(); $status_info = array(); if (isset($_POST['shown-statuses'])) { // Check status info $correctids = array(); foreach ($_POST['shown-statuses'] as $oriid) { $id = intval($oriid);