aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper/Tools.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper/Tools.php')
-rwxr-xr-xsrc/Wallabag/CoreBundle/Helper/Tools.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/Tools.php b/src/Wallabag/CoreBundle/Helper/Tools.php
index c773af37..c932f880 100755
--- a/src/Wallabag/CoreBundle/Helper/Tools.php
+++ b/src/Wallabag/CoreBundle/Helper/Tools.php
@@ -104,23 +104,6 @@ final class Tools
104 return sha1($string . SALT); 104 return sha1($string . SALT);
105 } 105 }
106 106
107 /**
108 * Returns the correct header for a status code
109 *
110 * @param $status_code
111 */
112 private static function _status($status_code)
113 {
114 if (strpos(php_sapi_name(), 'apache') !== false) {
115
116 header('HTTP/1.0 '.$status_code);
117 }
118 else {
119
120 header('Status: '.$status_code);
121 }
122 }
123
124 public static function generateToken() 107 public static function generateToken()
125 { 108 {
126 if (ini_get('open_basedir') === '') { 109 if (ini_get('open_basedir') === '') {