Don't add 'index.php' to url, REQUEST_URI has it

See http://php.net/manual/en/reserved.variables.server.php
This commit is contained in:
Fatih Orhan 2013-04-04 11:14:33 +03:00
parent aa8e0a27e2
commit bf1be2bf49

View File

@ -84,7 +84,7 @@ function url(){
<li><a href="index.php">home</a></li>
<li><a href="#">favorites</a></li>
<li><a href="#">archive</a></li>
<li><a href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<?php echo url()?>index.php?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li>
<li><a href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<?php echo url()?>?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li>
</ul>
<?php
$query = $db_handle->prepare("SELECT * FROM entries WHERE read=?");