X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=88be084bd1e8c9cb90969a3b732ec73ce94437af;hb=751aaefec215e9e55d0fb4d5e4c25f398c3cc8d3;hp=01dae52b3aa3ffd505d6f5b29b3ce96bd9382537;hpb=76ec20af1637ea1858ae9f38e42018cc33232754;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 01dae52b..88be084b 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ savedb(); // save to disk - pubsubhub(); invalidateCaches(); echo ''; exit; @@ -1071,6 +1070,7 @@ HTML; if ($link['title']=='') $link['title']=$link['url']; // If title is empty, use the URL as title. $LINKSDB[$linkdate] = $link; $LINKSDB->savedb(); // save to disk + pubsubhub(); invalidateCaches(); // If we are called from the bookmarklet, we must close the popup: @@ -1406,6 +1406,7 @@ function templateLinkList() $i = ($page-1)*$_SESSION['LINKS_PER_PAGE']; // Start index. $end = $i+$_SESSION['LINKS_PER_PAGE']; $redir = empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector']; // optional redirector URL + $token = ''; if (isLoggedIn()) $token=getToken(); while ($i<$end && $i'; + if (isLoggedIn()) + { + $actions='
'; + $actions.='
'; + $actions.='
'; + } $tags=''; if ($link['tags']!='') {