diff options
Diffstat (limited to 'includes/header.php')
-rw-r--r-- | includes/header.php | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/includes/header.php b/includes/header.php index d3256c3..88e0fb8 100644 --- a/includes/header.php +++ b/includes/header.php @@ -22,18 +22,21 @@ function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = a <link rel="image_src" type="image/png" href="/images/linkdsp.png" />
<link rel="icon" href="/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
-<?php
+<?
foreach ($css as $c) {
echo " <link href=\"css/$c.css?v=$resourceVer.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
}
- if ($desc !== '') echo " <meta name='Description' content='$desc'>";
-
- foreach ($scripts as $s) echo "<script src='js/$s.js?v=$resourceVer.js'></script>";
?>
<script src="js/ajax.js" async="async"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="js/mapspecs.js?v=050513.js"></script>
<script src="js/globe.js?v=050513.js"></script>
+<?
+ if ($desc !== '') echo " <meta name='Description' content='$desc'>";
+
+ foreach ($scripts as $s) echo "<script src='js/$s.js?v=$resourceVer.js'></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?
@@ -90,7 +93,7 @@ function htmlFooter() { ?>
<div class="copyAndButtons">
<div id="copy">
- Copyright © 2011-2013 pathery.com
+ Copyright © 2011-2015 pathery.com
</div>
<div id="socialButtons" class='buttons'>
<a href='http://www.facebook.com/Pathery' target='top' title='Facebook'><img alt='Facebook' src='images/btns/facebook.png' /></a>
@@ -180,11 +183,19 @@ function topbar($links) { //Empty first-div contains sound manager stuff
echo '<div></div>';
+ //Create Google login link! So simple... </sarcasm>
+ 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 ' <div class="wrapper" id="oid_hidden" >
<h2>Sign in</h2>
<div id="oid_box">
<h2 style="color:#333;">Please sign in using one of the following</h2>
- <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="'.$googleLoginAuth.'"><img id="oid_btn" src="images/btns/signin_Google.png" alt="Sign in with Google" /></a>
<a rel="nofollow" href="login?op=facebook"><img id="oid_btn" src="images/btns/signin_Facebook.png" alt="Sign in with Facebook" /></a>
<a rel="nofollow" href="login?op=twitter"><img id="oid_btn" src="images/btns/signin_Twitter.png" alt="Sign in with Twitter" /></a>
<a rel="nofollow" href="login?op=yahoo"><img id="oid_btn" src="images/btns/signin_Yahoo.png" alt="Sign in with Yahoo" /></a>
|