'; } else { echo ""; } ?> \n"; } if ($desc !== '') echo " "; foreach ($scripts as $s) echo ""; ?> "; echo "
"; echo " "; echo "
"; echo "
"; echo "
"; ?>
Copyright © 2011-2013 pathery.com
Facebook Reddit Twitter Google Plus
"; echo "
"; //Empty first-div contains sound manager stuff echo '
'; //Create Google login link! So simple... global $google_client_id, $mydomain; $googleLoginAuth = "https://accounts.google.com/o/oauth2/auth?response_type=code"; $googleLoginAuth .= "&redirect_uri=" . urlencode($mydomain . 'login?op=google'); $googleLoginAuth .= "&client_id=" . urlencode($google_client_id); $googleLoginAuth .= "&scope=email&access_type=online&approval_prompt=auto"; $googleLoginAuth .= "&openid.realm" . urlencode($mydomain); echo '

Sign in

Please sign in using one of the following

Sign in with Google Sign in with Facebook Sign in with Twitter Sign in with Yahoo Sign in with Windows Live Sign in with Steam Learn more about OpenID Learn more about OAuth X
'; echo '
'; foreach ($headerLinks as $key => $value) { if ($request == $key) { $selected = " selected"; } else { $selected = ""; } echo "$value"; } echo "
"; if ($accepted) { echo "
"; echo " Logged in as $_SESSION[displayName]
"; if ($_SESSION['displayName'] == 'noname') echo " Update your name | "; echo " Logout"; echo "
"; echo "
"; } else { ?> Sign in "; echo "
"; //div id='user' } function userDataToJS() { global $wallColor, $wallEmblem, $wallOrientation, $accepted; if (!$accepted) { $r = 'var userObj = {"wallColor":false,"wallEmblem":false,"wallOrientation":false,'; $r .= '"ID":"-1","accepted":false,"hasInsaneSpeed":false};'; } else { $userID = $_SESSION['userID']; $hasInsaneSpeed = hasExtrasUnlock($userID, UNLOCK_EXTRAS, MISC_UNLOCK_INSANE_SPEED); $r = 'hasInsaneSpeed":'.$hasInsaneSpeed.'};'."\n"; $json = array('ID' => 'fat'); $json['ID'] = $userID; $json['wallColor'] = $wallColor; $json['wallEmblem'] = $wallEmblem; $json['wallOrientation'] = $wallOrientation; $json['hasInsaneSpeed'] = $hasInsaneSpeed; $json['accepted'] = 'true'; $encoded = json_encode($json); $r = 'var userObj = decryptJSON(\''.json_encode($json).'\');'."\n"; } return $r; } ?>