Skip to content

Commit

Permalink
rootlink
Browse files Browse the repository at this point in the history
  • Loading branch information
d3nj3ll committed Jan 17, 2012
1 parent 6b4eea1 commit 9e26636
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions system/templates/padedit.tpl.php
Expand Up @@ -88,8 +88,7 @@
<h1 class="inactive"><?php if (isset($_GET['file'])) { echo $_GET['file']; } else { echo "myPadEdit " . $version; } ?></h1>
<span style="position:absolute;top:10px;right:10px;padding:5px;border:solid 3px #444;background:#aaa;color:#444">
<?php if (!isset($root)) {
if(empty($_GET)) {$callstring="?";}else{$callstring="&";}
print'<a href="'.$_SERVER['REQUEST_URI'].$callstring.'user=root" style="color:#444;font-weight:800;text-decoration:none">WEBUSER</a>';}else{print'ROOT';} ?>
print'<a href="'.$_SERVER['REQUEST_URI'].root().'" style="color:#444;font-weight:800;text-decoration:none">WEBUSER</a>';}else{print'ROOT';} ?>
</span>
<div class="toolbar" style="text-align:center">
<span style="float: left; line-height: 41px;">
Expand Down

0 comments on commit 9e26636

Please sign in to comment.