issues #3 (lien vers page publique) & #6

This commit is contained in:
Bronco 2013-06-26 12:32:51 +02:00
parent ea6f226da8
commit e7bbb002bc
2 changed files with 4 additions and 3 deletions

View file

@ -581,7 +581,7 @@ if ($GLOBALS['done']['d'] !== FALSE) {
</head>
<body <?php echo $bodyclass;?>>
<header><a href="<?php echo $_SERVER['PHP_SELF'];?>"><img src="design/logo2.png"/></a>
<header><a href="<?php echo $_SERVER['PHP_SELF'];if ($public){echo '?public'; }?>"><img src="design/logo2.png"/></a>
<nav id="orpx_nav-bar">
<?php
if (!$public){
@ -640,7 +640,7 @@ if ($GLOBALS['done']['d'] !== FALSE) {
}
echo "\t".'<li>';
if (!$public){echo '<a class="suppr" onclick="return window.confirm(\'Sure to remove?\')" href="?suppr='.$GLOBALS['public_data_folder'].'/'.$liste_pages[$i].'" title="suppr"> </a>';}
echo '<a class="zip" href="?zippublic='.$liste_pages[$i].'" title="Download zip version"> </a><a class="origine" href="'.$url.'" title="origin"> </a> - <a href="?publicget='.$liste_pages[$i].'"><img src="'.$favicon.'"/>'.$titre.'</a> <em> ['.$date.']</em>';
echo '<a class="zip" href="?zippublic='.$liste_pages[$i].'" title="Download zip version"> </a><a class="origine" href="'.$url.'" title="origin"> </a> - <a href="?public&publicget='.$liste_pages[$i].'"><img src="'.$favicon.'"/>'.$titre.'</a> <em> ['.$date.']</em>';
if (!$public){echo '<a href="?toprivate='.$liste_pages[$i].'" class="toprivate" title="Change to private">&#9654;</a></li>'."\n";}else{echo "</li>\n";}
}
}

View file

@ -7,7 +7,7 @@
input[type=checkbox]+label{display:inline;width:auto;cursor:pointer;}
input[type=checkbox]{display:inline;width:auto;}
input{border-radius:3px;width:100%;}
a.public{font-size:24px;color:#0F0;text-shadow: 0 1px 1px darkgreen;text-decoration:none;}
#login, #pass{border:1px solid #999;padding:3px;}
#login:focus{text-shadow:0 0 3px green;}
#pass:focus{text-shadow:0 0 3px red;}
@ -38,4 +38,5 @@
<hr/>
<input type='submit' value='Connexion'/>
</form>
<a class="public" href="<?php echo $_SERVER['PHP_SELF'].'?public';?>" alt="link to public">> Page publique <</a>
</div>