aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/index.php b/index.php
index 399dec78..1e402896 100755
--- a/index.php
+++ b/index.php
@@ -101,6 +101,7 @@ switch ($view)
101 default: 101 default:
102 $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc"; 102 $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc";
103 $params = array(0); 103 $params = array(0);
104 $view = 'index';
104 break; 105 break;
105} 106}
106 107
@@ -141,9 +142,9 @@ catch (Exception $e)
141 </header> 142 </header>
142 <div id="main" class="w960p"> 143 <div id="main" class="w960p">
143 <ul id="links"> 144 <ul id="links">
144 <li><a href="index.php">home</a></li> 145 <li><a href="index.php" <?php echo (($view == 'index') ? 'class="current"' : ''); ?>>home</a></li>
145 <li><a href="?view=fav">favorites</a></li> 146 <li><a href="?view=fav" <?php echo (($view == 'fav') ? 'class="current"' : ''); ?>>favorites</a></li>
146 <li><a href="?view=archive">archive</a></li> 147 <li><a href="?view=archive" <?php echo (($view == 'archive') ? 'class="current"' : ''); ?>>archive</a></li>
147 <li><a style="cursor: move" title="i am a bookmarklet, use me !" 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> 148 <li><a style="cursor: move" title="i am a bookmarklet, use me !" 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>
148 </ul> 149 </ul>
149 <div id="entries"> 150 <div id="entries">