diff options
author | Nicolas Lœuillet <nicolas@coteo.com> | 2013-04-03 15:22:19 +0200 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@coteo.com> | 2013-04-03 15:22:19 +0200 |
commit | c4fb6f013528e89beb880f4c9efbda2a6d306a0d (patch) | |
tree | f6e6566d76e4ab63adc0698c18101e479f3fb51d | |
parent | 1a268ba710b2cdb4ede98af3368c43d66c4c5e53 (diff) | |
download | wallabag-c4fb6f013528e89beb880f4c9efbda2a6d306a0d.tar.gz wallabag-c4fb6f013528e89beb880f4c9efbda2a6d306a0d.tar.zst wallabag-c4fb6f013528e89beb880f4c9efbda2a6d306a0d.zip |
correction bookmarklet
-rwxr-xr-x | README.md | 2 | ||||
-rw-r--r-- | cache/footer.32a3c4422ad65642b8dbb7e731f4d990.rtpl.php | 7 | ||||
-rw-r--r-- | cache/index.0b3442bc62f6c429fc13004b3c821ba0.rtpl.php | 20 | ||||
-rwxr-xr-x | index.php | 9 |
4 files changed, 8 insertions, 30 deletions
@@ -1,6 +1,6 @@ | |||
1 | # poche | 1 | # poche |
2 | 2 | ||
3 | Abandon Pocket, Instapaper and other Readibility service : adopt poche. It is the same, but it is open source. | 3 | Abandon Pocket, Instapaper and other Readability service : adopt poche. It is the same, but it is open source. |
4 | 4 | ||
5 | ## Usage | 5 | ## Usage |
6 | 6 | ||
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 @@ | |||
1 | <?php if(!class_exists('raintpl')){exit;}?><footer> | ||
2 | <div> | ||
3 | Copyright © <a href="http://www.memiks.fr/">memiks.fr</a> | <a href="http://shaarli.memiks.fr/">Liens</a> / <a href="http://rss.memiks.fr/">RSS</a> / <a href="http://wiki.memiks.fr/">Wiki</a> / <a href="mailto:memiks@memiks.fr">Contact</a><br> | ||
4 | Licence: WTF Licence<br> | ||
5 | More information HERE: <a href="http://www.memiks.fr/readityourself/">http://www.memiks.fr/readityourself/</a> Version : <span class="version"><?php echo $version;?></span> | ||
6 | </div> | ||
7 | </footer> | ||
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 @@ | |||
1 | <?php if(!class_exists('raintpl')){exit;}?><html> | ||
2 | <head> | ||
3 | <link rel='stylesheet' href='./css/reset.css' type='text/css' media='all' /> | ||
4 | <link rel='stylesheet' href='./css/typography.css' type='text/css' media='all' /> | ||
5 | |||
6 | <title><?php echo $title;?></title> | ||
7 | </head> | ||
8 | <body> | ||
9 | <article> | ||
10 | <h1><a href="<?php echo $url;?>"><?php echo $title;?></a></h1> | ||
11 | <div id="readityourselfcontent"> | ||
12 | <?php echo $content;?> | ||
13 | |||
14 | </div> | ||
15 | <span class="comeFrom">Come From : <a href="<?php echo $url;?>"><?php echo $url;?></a> | ||
16 | </article> | ||
17 | <?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("footer") . ( substr("footer",-1,1) != "/" ? "/" : "" ) . basename("footer") );?> | ||
18 | |||
19 | </body> | ||
20 | </html> | ||
@@ -51,6 +51,11 @@ switch ($action) { | |||
51 | default: | 51 | default: |
52 | break; | 52 | break; |
53 | } | 53 | } |
54 | |||
55 | function url(){ | ||
56 | $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http"; | ||
57 | return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; | ||
58 | } | ||
54 | ?> | 59 | ?> |
55 | <!DOCTYPE html> | 60 | <!DOCTYPE html> |
56 | <!--[if lte IE 6]> <html class="no-js ie6 ie67 ie678" lang="en"> <![endif]--> | 61 | <!--[if lte IE 6]> <html class="no-js ie6 ie67 ie678" lang="en"> <![endif]--> |
@@ -75,7 +80,7 @@ switch ($action) { | |||
75 | <li><a href="index.php">home</a></li> | 80 | <li><a href="index.php">home</a></li> |
76 | <li><a href="#">favorites</a></li> | 81 | <li><a href="#">favorites</a></li> |
77 | <li><a href="#">archive</a></li> | 82 | <li><a href="#">archive</a></li> |
78 | <li><a href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('http://localhost/poche/index.php?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">bookmarklet</a></li> | 83 | <li><a href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<? echo url()?>index.php?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li> |
79 | </ul> | 84 | </ul> |
80 | <?php | 85 | <?php |
81 | $query = $db_handle->prepare("SELECT * FROM entries WHERE read=?"); | 86 | $query = $db_handle->prepare("SELECT * FROM entries WHERE read=?"); |
@@ -91,7 +96,7 @@ switch ($action) { | |||
91 | </ul> | 96 | </ul> |
92 | </div> | 97 | </div> |
93 | <footer class="mr2 mt3"> | 98 | <footer class="mr2 mt3"> |
94 | <p class="smaller">poche is a read it later open source system, based on <a href="http://www.memiks.fr/readityourself/">ReadItYourself</a>. poche is developed by <a href="http://nicolas.loeuillet.org">Nicolas Lœuillet</a> under the <a href="http://www.wtfpl.net/">Do What the Fuck You Want to Public License</a></p> | 99 | <p class="smaller"><a href="http://github.com/nicosomb/poche">poche</a> is a read it later open source system, based on <a href="http://www.memiks.fr/readityourself/">ReadItYourself</a>. poche is developed by <a href="http://nicolas.loeuillet.org">Nicolas Lœuillet</a> under the <a href="http://www.wtfpl.net/">Do What the Fuck You Want to Public License</a></p> |
95 | </footer> | 100 | </footer> |
96 | </body> | 101 | </body> |
97 | </html> \ No newline at end of file | 102 | </html> \ No newline at end of file |