diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-11-29 15:00:11 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-11-29 15:00:11 -0800 |
commit | 1399d45c68e7d14fc1f3e8f2b5451669cce4ffa4 (patch) | |
tree | ab28080501f9dc8e4ffdc29742f45e2acf3fdcbf /includes/header.php | |
parent | 23b7ddabd4c2c6286a9b3ef0791befbc6f4ef89f (diff) | |
download | pathery-1399d45c68e7d14fc1f3e8f2b5451669cce4ffa4.tar.xz |
Lots of fixes and changes.
nofollow on login links.
tutorial fix
changed how $accepted works
changed how $wallColor/Emblem works
fixed a bug when multiple players scored at the same momment.
Diffstat (limited to 'includes/header.php')
-rw-r--r-- | includes/header.php | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/includes/header.php b/includes/header.php index 74a773a..c415e75 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,20 +1,4 @@ <?php
-$accepted = isset($_SESSION['accepted']) && $_SESSION['accepted'] == 1;
-
-if ($accepted) {
- $userID = $_SESSION['userID'];
- include_once ('./includes/db.inc.php');
- $sql = "
- SELECT
- userData.wallColor,
- userData.wallEmblem
- FROM `userData`
- WHERE userID = '$userID' ";
- $result = mysql_query($sql);
- if ($result)
- list($wallColor, $wallEmblem) = mysql_fetch_row($result);
-}
-
function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = array()) {
global $accepted;
?>
@@ -37,7 +21,7 @@ function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = a echo "<script src='js/$s.js?v=2'></script>";
?>
<script src="js/ajax.js" async="async"></script>
- <script src="js/mapspecs.js?v=112612"></script>
+ <script src="js/mapspecs.js?v=112512"></script>
<script>
(function(c,a){window.mixpanel=a;var b,d,h,e;b=c.createElement("script");b.type="text/javascript";b.async=!0;b.src=("https:"===c.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.1.min.js';d=c.getElementsByTagName("script")[0];d.parentNode.insertBefore(b,d);a._i=[];a.init=function(b,c,f){function d(a,b){var c=b.split(".");2==c.length&&(a=a[c[0]],b=c[1]);a[b]=function(){a.push([b].concat(Array.prototype.slice.call(arguments,0)))}}var g=a;"undefined"!==typeof f?
@@ -167,8 +151,8 @@ function topbar($links) { <h2>Sign in</h2>
<div id="oid_box">
<h2 style="color:#333;">Do you have an account here?</h2>
- <a href="login?op=google"><img id="oid_btn" src="images/btns/signin_Google.png" alt="Sign in with Google" /></a>
- <a href="login?op=yahoo"><img id="oid_btn" src="images/btns/signin_Yahoo.png" alt="Sign in with Yahoo" /></a>
+ <a rel="nofollow" href="login?op=google"><img id="oid_btn" src="images/btns/signin_Google.png" alt="Sign in with Google" /></a>
+ <a rel="nofollow" href="login?op=yahoo"><img id="oid_btn" src="images/btns/signin_Yahoo.png" alt="Sign in with Yahoo" /></a>
<a id="oid_learn" href="http://openid.net/get-an-openid/what-is-openid/" target="_blank" >Learn more about OpenID</a>
<a id="oid_cancel" href="javascript:hideSignin();">X</a>
</div>
|