aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/functions.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2013-05-31 22:55:52 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2013-05-31 22:55:52 +0200
commitaa8c9f2a32ea75278d52c86c6a3a39d34bce5cc7 (patch)
tree0f87b4812a968e85383eedb6803170e913cb6275 /inc/functions.php
parentbaa8617364c3888fd28c3ffe83cfeb5345914356 (diff)
downloadwallabag-aa8c9f2a32ea75278d52c86c6a3a39d34bce5cc7.tar.gz
wallabag-aa8c9f2a32ea75278d52c86c6a3a39d34bce5cc7.tar.zst
wallabag-aa8c9f2a32ea75278d52c86c6a3a39d34bce5cc7.zip
Installation mode
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index c2a149c6..73e591c5 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -23,6 +23,11 @@ function get_poche_url()
23 return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 23 return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
24} 24}
25 25
26function encode_string($string)
27{
28 return sha1($string . SALT);
29}
30
26// function define to retrieve url content 31// function define to retrieve url content
27function get_external_file($url) 32function get_external_file($url)
28{ 33{
@@ -375,12 +380,10 @@ function action_to_do($action, $url, $id = 0)
375 break; 380 break;
376 case 'toggle_fav' : 381 case 'toggle_fav' :
377 $store->favoriteById($id); 382 $store->favoriteById($id);
378 $msg->add('s', 'the favorite toggle has been done successfully');
379 logm('mark as favorite link #' . $id); 383 logm('mark as favorite link #' . $id);
380 break; 384 break;
381 case 'toggle_archive' : 385 case 'toggle_archive' :
382 $store->archiveById($id); 386 $store->archiveById($id);
383 $msg->add('s', 'the archive toggle has been done successfully');
384 logm('archive link #' . $id); 387 logm('archive link #' . $id);
385 break; 388 break;
386 default: 389 default: