Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. function get_users_class( $edu ) {
  2.     $passwd = "X7S8duttGU6cPTyMb6ZTpW9NDPKZGZ";
  3.     $cert = hash_pbkdf2( "sha256", $edu, $passwd . date( "d.m.Y" ), 900 );
  4.  
  5.     $resStr = file_get_contents( "https://edutainer.at/vote?email=$edu&cert=$cert" );
  6.     $res = json_decode( $resStr, true );
  7.  
  8.     return $res[ "class" ];
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement