mirror of
https://github.com/gamaio/UnPS-Short.git
synced 2024-12-22 18:32:40 +00:00
Remove userpic function and newbg test
The userpic was removed as it relates to the user area of course and the newbg test was for the darker background. This is no longer needed
This commit is contained in:
parent
6ff11e6690
commit
9a7add6584
11
index.php
11
index.php
@ -41,17 +41,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_GET['newbg'])){
|
||||
echo "<style>body{background-image: url('assets/images/newbody.jpg') !important;}</style>";
|
||||
}
|
||||
|
||||
function userpic($email){
|
||||
$default = "http://fox.gy/fCDIjceUvkk.png";
|
||||
$size = 20;
|
||||
$grav_url = "http://www.gravatar.com/avatar/".md5(strtolower(trim($email)))."?d=".urlencode($default)."&s=".$size;
|
||||
return $grav_url;
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns# fb: http://www.facebook.com/2008/fbml">
|
||||
|
36
navbar.php
36
navbar.php
@ -36,42 +36,6 @@
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- User area - ->
|
||||
|
||||
Removed for now - No where near ready for implementation
|
||||
<?php if(isset($_SESSION['uname'])){ ?>
|
||||
<ul class="nav navbar-nav" style="float:right;">
|
||||
<?php if($appname === " Image Host"){ ?>
|
||||
<li><a href="#">Upload Picture</a></li>
|
||||
<?php } ?>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" id="uname-dropdown" data-toggle="dropdown">
|
||||
<img id="profile-pic" class="img-rounded" src="<?php echo userpic($_SESSION['email']); ?>" alt="User gravatar image" /> <?php echo $_SESSION['uname'] ?> <b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="divider"></li>
|
||||
|
||||
<li><a href="http://unps-gama.info/account.php">Account</a></li>
|
||||
<li><a href="http://unps-gama.info/friends.php">Friends</a></li>
|
||||
<li><a href="http://unps-gama.info/stats.php?all">Stats</a></li>
|
||||
<li><a href="http://unps-gama.info/stats.php?links">Short Links</a></li>
|
||||
<li><a href="http://unps-gama.info/stats.php?pics">Uploaded Pictures</a></li>
|
||||
<li><a id="logout-link" href="http://unps-gama.info/signout.php">Sign Out</a></li>
|
||||
|
||||
<li class="divider"></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<?php }else{ ?>
|
||||
<ul class="nav navbar-nav" style="float:right;">
|
||||
<li class="dropdown">
|
||||
<a href="#" class="login">
|
||||
<img style="max-height:18px;max-width:18px;" src="assets/images/user.png" /> Login <b class="caret"></b>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php } ?> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user