From c4fb6f013528e89beb880f4c9efbda2a6d306a0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 3 Apr 2013 15:22:19 +0200 Subject: [PATCH] correction bookmarklet --- README.md | 2 +- ....32a3c4422ad65642b8dbb7e731f4d990.rtpl.php | 7 ------- ....0b3442bc62f6c429fc13004b3c821ba0.rtpl.php | 20 ------------------- index.php | 9 +++++++-- 4 files changed, 8 insertions(+), 30 deletions(-) delete mode 100644 cache/footer.32a3c4422ad65642b8dbb7e731f4d990.rtpl.php delete mode 100644 cache/index.0b3442bc62f6c429fc13004b3c821ba0.rtpl.php diff --git a/README.md b/README.md index b66aba18..96d9b93b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # poche -Abandon Pocket, Instapaper and other Readibility service : adopt poche. It is the same, but it is open source. +Abandon Pocket, Instapaper and other Readability service : adopt poche. It is the same, but it is open source. ## Usage diff --git a/cache/footer.32a3c4422ad65642b8dbb7e731f4d990.rtpl.php b/cache/footer.32a3c4422ad65642b8dbb7e731f4d990.rtpl.php deleted file mode 100644 index e069cabb..00000000 --- a/cache/footer.32a3c4422ad65642b8dbb7e731f4d990.rtpl.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/cache/index.0b3442bc62f6c429fc13004b3c821ba0.rtpl.php b/cache/index.0b3442bc62f6c429fc13004b3c821ba0.rtpl.php deleted file mode 100644 index 6dd72a48..00000000 --- a/cache/index.0b3442bc62f6c429fc13004b3c821ba0.rtpl.php +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - <?php echo $title;?> - - -
-

-
- - -
- Come From : -
- assign( $this->var );$tpl->draw( dirname("footer") . ( substr("footer",-1,1) != "/" ? "/" : "" ) . basename("footer") );?> - - - 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 -- 2.41.0