예제 #1
0
		<li id="login-menu"><a href="#"><img id="nav-propic" class="circimg-small" src="' . ProfilePic::image(Me::$id, "small") . '" /></a>
			<ul style="line-height:22px; min-width:180px;">
				<li><a href="' . URL::unifaction_social() . '/' . Me::$vals['handle'] . '">My Unity Wall</a></li>
				<li><a href="' . URL::blogfrog_social() . '/' . Me::$vals['handle'] . '">My BlogFrog</a></li>
				<li><a href="' . URL::unifaction_social() . '/friends">My Friends</a></li>
				<li><a href="' . URL::unijoule_com() . '">My UniJoule</a></li>
				<li><a href="' . URL::inbox_unifaction_com() . '">My Inbox</a></li>
				<li><a href="' . URL::profilepic_unifaction_com() . '/">Update Profile Pic</a></li>
				<li><a href="' . URL::unifaction_com() . '/user-panel">My Settings</a></li>
				<li><a href="' . URL::unifaction_com() . '/multi-accounts">Switch User</a></li>
				<li><a href="/logout">Log Out</a></li>
			</ul>
		</li>';
} else {
    echo '
		<li id="login-menu"><a href="#"><img id="nav-propic" class="circimg-small" src="' . ProfilePic::image(0, "small") . '" /></a>
			<ul style="line-height:22px; min-width:150px;">
				<li><a href="/login">Log In</a></li>
				<li><a href="/register">Sign Up</a></li>
			</ul>
		</li>';
}
echo '
	</ul>
</div>';
// Load the Core Navigation Panel
require ROOT_PATH . "/parent-apps/Standard/includes/core_panel_" . ENVIRONMENT . ".php";
echo '
<div id="content-wrap">
	<div style="padding-top:60px;"></div>';
// Load the widgets contained in the "UniFactionMenu" container, if applicable
예제 #2
0
 public static function JSChat()
 {
     if (Me::$id) {
         // Prepare Values
         $jsEncrypt = Security_Hash::jsHash(Me::$vals['handle'], self::$jsData['key']);
         $jsUser = Me::$vals['handle'];
         $jsTime = microtime(true) - 90;
         return '<script>var JSUser = "******"; var JSEncrypt = "' . $jsEncrypt . '"; var JSChatTime = ' . $jsTime . '; var JSProfilePic = "' . ProfilePic::image(Me::$id, "small") . '";</script>';
     }
     return '';
 }