Advertisement
Guest User

Untitled

a guest
Oct 10th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. if (!( defined( 'Orivon' ))) {
  15. exit( 'Access Denied' );
  16. (bool)true;
  17. }
  18.  
  19. class Authorization extends Systembase {
  20. public function getGroup() {
  21. $utl = $this->enable_Utility( );
  22. $sid = $utl->read_cookie( 'a_sid' );
  23. $ip = $utl->get_client_ip( );
  24. try {
  25. $db = $this->enable_DB( );
  26. $rs = $db->prepare( 'call session_select(:par_session_id,:par_ip)' );
  27. $rs->bindParam( ':par_session_id', $sid );
  28. $rs->bindParam( ':par_ip', $ip );
  29. $rs->execute( );
  30. $db = null;
  31. } catch (PDOException $e) {
  32. $db = null;
  33. return null;
  34. }
  35. $arr_rst = $rs->fetchAll( PDO::FETCH_ASSOC );
  36.  
  37. if (isset( $arr_rst[0]['role_group'] )) {
  38. return $arr_rst[0]['role_group'];
  39. }
  40.  
  41. return null;
  42. }
  43. ........................................................................
  44. ..................................
  45. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement