aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/functions.php
diff options
context:
space:
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: