Advertisement
Guest User

Untitled

a guest
Mar 13th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 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("DATALIFEENGINE"))
  15. {
  16. exit("Hacking attempt!");
  17. }
  18. $shost = str_replace("www.", "", strtolower(getenv("HTTP_HOST")));
  19. if (strpos(strtolower(getenv("PATH")), "c:\\windows") !== false)
  20. {
  21. if ($method < 5)
  22. {
  23. echo "<div style='padding:10px;text-align:center;background:#fff5f7;'>Localhost: <a href=\"http://sandev.pro/\">sandev.pro</a></div>";
  24. }
  25. }
  26. else
  27. {
  28. $mhost = md5("light" . md5($shost) . "chat");
  29. $real_key = strtoupper(substr($mhost, 0, 5) . "-" . substr($mhost, 6, 5) . "-" . substr($mhost, 12, 5) . "-" . substr($mhost, 18, 5) . "-" . substr($mhost, 24, 5));
  30. if ($lc_config["activate"] != $real_key)
  31. {
  32. exit(".error:Light-Chat not activated");
  33. }
  34. }
  35. unset($shost);
  36. unset($mhost);
  37. unset($real_key);
  38. if ($method == 1)
  39. {
  40. $name = $db->safesql($member_id["name"]);
  41. $text = $db->safesql($text);
  42. $db->query('' . "INSERT INTO light_chat (name,user_group,date,text,page_id) VALUES ('" . $name . "','" . $member_id["user_group"] . "','" . $_TIME . "','" . $text . "','" . $page_id . "')");
  43. @unlink(ENGINE_DIR . ('' . "/cache/light_chat_" . $page_id . "_0.tmp"));
  44. @unlink(ENGINE_DIR . ('' . "/cache/light_chat_" . $page_id . "_1.tmp"));
  45. return 1;
  46. }
  47. if ($method == 2)
  48. {
  49. $save_text = $db->safesql($text);
  50. ....................................................................
  51. .....................................
  52. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement