Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Loader)
- *
- * @ Version : 2.0.0.3
- * @ Author : DeZender
- * @ Release on : 06.05.2013
- * @ Official site : http://DeZender.Net
- *
- */
- function manageAds() {
- if (!(checkUserType("ADMIN")) && !(checkUserType("RESELLER"))) {
- header("Location: " . siteDomain . "profile");
- }
- global $db;
- global $vars;
- if (@$deleteId = $_REQUEST["deleteAdId"]) {
- checkRef();
- $query = "SELECT c.* FROM ads c WHERE c.id = " . sql::int($deleteId);
- $ad = $db->getRow($query);
- $query = "DELETE FROM ads WHERE id = " . sql::int($deleteId);
- if (!(@$db->query($query))) {
- showError("The ad can't be deleted!", "0", "1");
- }
- addLog("INFO", "CHANNELS", "Deleted ad ID " . @$deleteId . "");
- reloadHitrow();
- showInfo("Deleted ad ID " . $deleteId);
- }
- if (@$viewId = $_REQUEST["viewAdId"]) {
- $query = "UPDATE ads SET views = (views + 1) WHERE id = " . sql::int($viewId);
- if (!(@$db->query($query))) {
- showError("The ad can't be viewed!", "0", "1");
- }
- addLog("INFO", "CHANNELS", "Viewed ad ID " . @$viewId . "");
- exit();
- }
- if (@$hitId = $_REQUEST["hitAdId"]) {
- $query = "SELECT link FROM ads WHERE id = " . sql::int($hitId);
- $adLink = $db->getOne(@$query);
- $query = "UPDATE ads SET hits = (hits + 1) WHERE id = " . sql::int($hitId);
- if (!(@$db->query($query))) {
- showError("The ad can't be hitted!", "0", "1");
- }
- addLog("INFO", "CHANNELS", "Hitted ad ID " . @$hitId . "");
- header("Location: " . @$adLink);
- exit();
- }
- }
- function updateAd() {
- if (!(checkUserType("ADMIN")) && !(checkUserType("RESELLER"))) {
- header("Location: " . siteDomain . "profile");
- }
- global $db;
- global $dump;
- global $vars;
- $query = "SELECT * FROM servers WHERE active IS TRUE";
- $vars["servers"] = $db->getAssoc($query);
- $query = "SELECT s.id,s.subscription_name FROM subscriptions s";
- ..................................................................
- .............................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement