Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Loader)
  6. *
  7. * @ Version : 2.0.0.4
  8. * @ Author : DeZender
  9. * @ Release on : 21.10.2015
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. if (defined("SOPANEL_PROCESS"))
  15. {
  16. class SOPanel {
  17.  
  18. public function sec($query) {
  19.  
  20. if (is_numeric($query))
  21. {
  22. return $query;
  23. }
  24. $query = addslashes(strip_tags(trim(ms_escape_string($query))));
  25. return $query;
  26. }
  27.  
  28. public function set_error($error) {
  29.  
  30. echo $error;
  31. return $error;
  32. }
  33.  
  34. public function GetIP() {
  35.  
  36. if (getenv("HTTP_CLIENT_IP"))
  37. {
  38. $ip = getenv("HTTP_CLIENT_IP");
  39. }
  40. else
  41. {
  42. if (getenv("HTTP_X_FORWARDED_FOR"))
  43. {
  44. $ip = getenv("HTTP_X_FORWARDED_FOR");
  45. if (strstr($ip, ","))
  46. {
  47. $tmp = explode(",", $ip);
  48. $ip = trim($tmp[0]);
  49. }
  50. }
  51. else
  52. {
  53. $ip = getenv("REMOTE_ADDR");
  54. }
  55. }
  56. return $ip;
  57. }
  58.  
  59. public function DBConnect($host, $user, $pass) {
  60.  
  61. $db = @odbc_connect("Driver={SQL Server}; Server={" . $host . "}", $user, $pass);
  62. if (!$db)
  63. {
  64. .................................................................
  65. .............................
  66. .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement