poche
--
-
- by date -
- by title +
- by date +
- by title
diff --git a/CREDITS b/CREDITS
index 31e74ba..c917a01 100644
--- a/CREDITS
+++ b/CREDITS
@@ -5,6 +5,7 @@ poche is based on :
* logo by Brightmix http://www.iconfinder.com/icondetails/43256/128/jeans_monotone_pocket_icon
* icons http://icomoon.io
* PHP Simple HTML DOM Parser (for Pocket import) http://simplehtmldom.sourceforge.net/
+* Session https://github.com/tontof/kriss_feed/blob/master/src/class/Session.php
poche is developed by Nicolas Lœuillet under the Do What the Fuck You Want to Public License
diff --git a/css/style.css b/css/style.css
index cf1ee2f..29dca28 100644
--- a/css/style.css
+++ b/css/style.css
@@ -62,16 +62,15 @@ header {
color: #F1F1F1;
}
-/*#content {
- width: 800px;
- margin: 0 auto;
-}*/
-
-
footer {
text-align: right;
}
+/*** ***/
+/*** LOGIN FORM ***/
+ul#login li {
+ list-style-type: none;
+}
/*** ***/
/*** LINKS DISPLAY ***/
diff --git a/import.php b/import.php
index 135443c..72e3eac 100644
--- a/import.php
+++ b/import.php
@@ -30,7 +30,7 @@ else {
$url = $a[0]->href;
- action_to_do('add', $url, $token);
+ action_to_do('add', $url);
if ($read == '1') {
$last_id = $db->getHandle()->lastInsertId();
$sql_update = "UPDATE entries SET is_read=~is_read WHERE id=?";
diff --git a/inc/MyTool.class.php b/inc/MyTool.class.php
new file mode 100644
index 0000000..8206f3f
--- /dev/null
+++ b/inc/MyTool.class.php
@@ -0,0 +1,256 @@
+ '/* moderate */',
+ '/\[b\](.+?)\[\/b\]/is'
+ => '$1',
+ '/\[i\](.+?)\[\/i\]/is'
+ => '$1',
+ '/\[s\](.+?)\[\/s\]/is'
+ => '$1',
+ '/\[u\](.+?)\[\/u\]/is'
+ => '$1',
+ '/\[url\](.+?)\[\/url]/is'
+ => '$1',
+ '/\[url=(\w+:\/\/[^\]]+)\](.+?)\[\/url]/is'
+ => '$2',
+ '/\[quote\](.+?)\[\/quote\]/is'
+ => '
$1', + '/\[code\](.+?)\[\/code\]/is' + => '
$1
',
+ '/\[([^[]+)\|([^[]+)\]/is'
+ => '$1'
+ );
+ $text = preg_replace(
+ array_keys($replace),
+ array_values($replace),
+ $text
+ );
+
+ return $text;
+ }
+
+ public static function formatText($text)
+ {
+ $text = preg_replace_callback(
+ '/