Advertisement
Guest User

Untitled

a guest
May 17th, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 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.3
  8. * @ Author : DeZender
  9. * @ Release on : 06.05.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function manageAds() {
  15. if (!(checkUserType("ADMIN")) && !(checkUserType("RESELLER"))) {
  16. header("Location: " . siteDomain . "profile");
  17. }
  18. global $db;
  19. global $vars;
  20. if (@$deleteId = $_REQUEST["deleteAdId"]) {
  21. checkRef();
  22. $query = "SELECT c.* FROM ads c WHERE c.id = " . sql::int($deleteId);
  23. $ad = $db->getRow($query);
  24. $query = "DELETE FROM ads WHERE id = " . sql::int($deleteId);
  25. if (!(@$db->query($query))) {
  26. showError("The ad can't be deleted!", "0", "1");
  27. }
  28. addLog("INFO", "CHANNELS", "Deleted ad ID " . @$deleteId . "");
  29. reloadHitrow();
  30. showInfo("Deleted ad ID " . $deleteId);
  31. }
  32. if (@$viewId = $_REQUEST["viewAdId"]) {
  33. $query = "UPDATE ads SET views = (views + 1) WHERE id = " . sql::int($viewId);
  34. if (!(@$db->query($query))) {
  35. showError("The ad can't be viewed!", "0", "1");
  36. }
  37. addLog("INFO", "CHANNELS", "Viewed ad ID " . @$viewId . "");
  38. exit();
  39. }
  40. if (@$hitId = $_REQUEST["hitAdId"]) {
  41. $query = "SELECT link FROM ads WHERE id = " . sql::int($hitId);
  42. $adLink = $db->getOne(@$query);
  43. $query = "UPDATE ads SET hits = (hits + 1) WHERE id = " . sql::int($hitId);
  44. if (!(@$db->query($query))) {
  45. showError("The ad can't be hitted!", "0", "1");
  46. }
  47. addLog("INFO", "CHANNELS", "Hitted ad ID " . @$hitId . "");
  48. header("Location: " . @$adLink);
  49. exit();
  50. }
  51. }
  52.  
  53. function updateAd() {
  54. if (!(checkUserType("ADMIN")) && !(checkUserType("RESELLER"))) {
  55. header("Location: " . siteDomain . "profile");
  56. }
  57. global $db;
  58. global $dump;
  59. global $vars;
  60. $query = "SELECT * FROM servers WHERE active IS TRUE";
  61. $vars["servers"] = $db->getAssoc($query);
  62. $query = "SELECT s.id,s.subscription_name FROM subscriptions s";
  63. ..................................................................
  64. .............................
  65. ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement