From c4fb6f013528e89beb880f4c9efbda2a6d306a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 3 Apr 2013 15:22:19 +0200 Subject: correction bookmarklet --- index.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 8861d31e..9e6e2256 100755 --- a/index.php +++ b/index.php @@ -51,6 +51,11 @@ switch ($action) { default: break; } + +function url(){ + $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http"; + return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; +} ?> @@ -75,7 +80,7 @@ switch ($action) {
  • home
  • favorites
  • archive
  • -
  • bookmarklet
  • +
  • poche it !
  • prepare("SELECT * FROM entries WHERE read=?"); @@ -91,7 +96,7 @@ switch ($action) { \ No newline at end of file -- cgit v1.2.3