Skip to content

Commit fd44cdd

Browse files
committed
remove functions
1 parent 8f3adb0 commit fd44cdd

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/Util.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)