File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -234,22 +234,6 @@ public static function in_string($needle, $string) {
234234 } else return stripos ($ string , $ needle ) !== false ;
235235 }
236236
237- public static function save_session_result ($ data , $ key ) {
238- $ json_data = json_encode ($ data );
239- $ token = hash_hmac ('sha1 ' , $ json_data , $ key );
240- $ _SESSION [$ token ] = json_encode ($ data );
241-
242- return $ token ;
243- }
244-
245- public static function get_session_result ($ token , $ key ) {
246- $ json_data = isset ($ _SESSION [$ token ]) ? $ _SESSION [$ token ] : null ;
247-
248- // verify data by token
249- $ signature = hash_hmac ('sha1 ' , $ json_data , $ key );
250- return $ signature === $ token ? json_decode ($ json_data ) : false ;
251- }
252-
253237 public static function explode_ids ($ src , $ separator = '; ' ) {
254238 $ text = is_array ($ src ) ? implode ('; ' , $ src ) : $ src ;
255239 $ raw = preg_replace ('/\s+/i ' , $ separator , $ text );
You can’t perform that action at this time.
0 commit comments