Hoşgeldin Misafir

Görev Scripti olanlar lütfen yardım

Majer

1 Nis 2021
862 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
buyrun: fonkisyon dosyası
Kod:
<?php
function ecsoft_code($uzunluk)
{
    $karakterler = [];
    $karakterler = array_merge(range(0, 9), range("a", "z"));
    srand((int) microtime() * 100000);
    shuffle($karakterler);
    $sonuc = "";
    for ($i = 0; $i < $uzunluk; $i++) {
        $sonuc .= $karakterler[$i];
    }
    unset($karakterler);
    return $sonuc;
}
function ecsoft_orderkey()
{
    global $db;
    $keytwo = rand(1000000, 9999999);
    $sor = $db->prepare("SELECT * FROM orders where o_key=:key");
    $sor->execute(["key" => $keytwo]);
    $durum = $sor->rowCount();
    if ($durum == 0) {
        return $key = $keytwo;
    }
    ecsoft_orderkey();
}
function MASGSM($Url, $body = NULL, $getapi)
{
    $API_KEY = $getapi;
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $Url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json", "Authorization: Key " . $API_KEY]);
    if ($body) {
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body));
    }
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    $result = curl_exec($ch);
    curl_close($ch);
    return $result;
}
function ecsoft_time_info($zaman, $tur)
{
    list($tarih) = explode(" ", $zaman);
    $tarih = explode("-", $tarih);
    date_default_timezone_set("Europe/Istanbul");
    $explode = explode(" ", $zaman);
    $date = explode("-", $explode[0]);
    $time = explode(":", $explode[1]);
    $zaman = mktime($time[0], $time[1], $time[2], $date[1], $date[2], $date[0]);
    $zaman_farki = time() - $zaman;
    $saniye = $zaman_farki;
    $dakika = round($zaman_farki / 60);
    $saat = round($zaman_farki / 3600);
    $gun = round($zaman_farki / 86400);
    $hafta = round($zaman_farki / 604800);
    $ay = round($zaman_farki / 2419200);
    $yil = round($zaman_farki / 29030400);
    if ($tur == "saniye") {
        return $saniye;
    }
    if ($tur == "dakika") {
        return $dakika;
    }
    if ($tur == "saat") {
        return $saat;
    }
    if ($tur == "gun") {
        return $gun;
    }
    if ($tur == "hafta") {
        return $hafta;
    }
    if ($tur == "ay") {
        return $ay;
    }
    if ($tur == "yil") {
        return $yil;
    }
}
function ecsoft_supportkey()
{
    global $db;
    $keytwo = rand(1000000, 9999999);
    $sor = $db->prepare("SELECT * FROM tickets where t_key=:key");
    $sor->execute(["key" => $keytwo]);
    $durum = $sor->rowCount();
    if ($durum == 0) {
        return $key = $keytwo;
    }
    ecsoft_supportkey();
}
function ecsoft_clear($mVar)
{
    if (is_array($mVar)) {
        foreach ($mVar as $gVal => $gVar) {
            if (!is_array($gVar)) {
                $mVar[$gVal] = htmlspecialchars(strip_tags(urldecode(addslashes(stripslashes(stripslashes(trim(htmlspecialchars_decode($gVar))))))));
            } else {
                $mVar[$gVal] = ecsoft_clear($gVar);
            }
        }
    } else {
        $mVar = htmlspecialchars(strip_tags($mVar));
    }
    return $mVar;
}
function ecsoft_telegram($msg)
{
    global $setting;
    $botToken = $setting["telegram_api"];
    $website = "https://api.telegram.org/bot" . $botToken;
    $chatId = $setting["telegram_id"];
    $params = ["chat_id" => $chatId, "text" => $msg];
    $ch = curl_init($website . "/sendMessage");
    curl_setopt($ch, CURLOPT_HEADER, false);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    $result = curl_exec($ch);
    curl_close($ch);
}
function baseurl()
{
    $currentPath = $_SERVER["PHP_SELF"];
    $pathInfo = pathinfo($currentPath);
    $hostName = $_SERVER["HTTP_HOST"];
    if (isset($_SERVER["HTTPS"]) && ($_SERVER["HTTPS"] == "on" || $_SERVER["HTTPS"] == 1) || isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"] == "https") {
        $site_protocol = "https";
    } else {
        $site_protocol = "http";
    }
    $datatwo = $site_protocol . "://" . $hostName . $pathInfo["dirname"] . "/";
    $soniki = substr($datatwo, -2);
    if ($soniki == "//") {
        return $site_protocol . "://" . $hostName . $pathInfo["dirname"];
    }
    return $site_protocol . "://" . $hostName . $pathInfo["dirname"] . "/";
}
function refresh($url, $time)
{
    header("Refresh:" . $time . "; url=" . $url . "");
}
function ecsoft_alert($baslik, $mesaj, $icon)
{
    echo "<script>\r\n\tswal(\"" . $mesaj . "\", {\r\n\t\tbuttons: false,\r\n\t\ttitle: \"" . $baslik . "\",\r\n\t\ttimer: 3000,\r\n\t\ticon: \"" . $icon . "\"\r\n\t\t});\r\n\t\t</script>";
}
function ecsoft_curl($url)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_REFERER, "https://www.google.com.tr/");
    curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    $chData = curl_exec($ch);
    return $chData;
}
function admin_control($item1, $item2)
{
    global $db;
    $sorgu = $db->prepare("SELECT * FROM admin where admin_" . $item1 . "=:sorgu");
    $sorgu->execute(["sorgu" => $item2]);
    $sorgudurum = $sorgu->rowCount();
    return $sorgudurum;
}
function user_control($item1, $item2)
{
    global $db;
    $sorgu = $db->prepare("SELECT * FROM user where user_" . $item1 . "=:sorgu");
    $sorgu->execute(["sorgu" => $item2]);
    $sorgudurum = $sorgu->rowCount();
    return $sorgudurum;
}
function pass_control($item1)
{
    $uzunluk = strlen($item1);
    if ($uzunluk < 6) {
        return "0";
    }
    return "1";
}
function ecsoft_time($zaman)
{
    list($tarih) = explode(" ", $zaman);
    $tarih = explode("-", $tarih);
    date_default_timezone_set("Europe/Istanbul");
    $explode = explode(" ", $zaman);
    $date = explode("-", $explode[0]);
    $time = explode(":", $explode[1]);
    $zaman = mktime($time[0], $time[1], $time[2], $date[1], $date[2], $date[0]);
    $zaman_farki = time() - $zaman;
    $saniye = $zaman_farki;
    $dakika = round($zaman_farki / 60);
    $saat = round($zaman_farki / 3600);
    $gun = round($zaman_farki / 86400);
    $hafta = round($zaman_farki / 604800);
    $ay = round($zaman_farki / 2419200);
    $yil = round($zaman_farki / 29030400);
    if ($saniye < 60) {
        if ($saniye == 0) {
            return "az önce";
        }
        return $saniye . " sn önce";
    }
    if ($dakika < 60) {
        return $dakika . " dk önce";
    }
    if ($saat < 24) {
        return $saat . " saat önce";
    }
    return $tarih[2] . "/" . $tarih[1] . "/" . $tarih[0];
}
function ecsoft_time_control($zaman, $tur, $miktar)
{
    list($tarih) = explode(" ", $zaman);
    $tarih = explode("-", $tarih);
    date_default_timezone_set("Europe/Istanbul");
    $explode = explode(" ", $zaman);
    $date = explode("-", $explode[0]);
    $time = explode(":", $explode[1]);
    $zaman = mktime($time[0], $time[1], $time[2], $date[1], $date[2], $date[0]);
    $zaman_farki = time() - $zaman;
    $saniye = $zaman_farki;
    $dakika = round($zaman_farki / 60);
    $saat = round($zaman_farki / 3600);
    $gun = round($zaman_farki / 86400);
    $hafta = round($zaman_farki / 604800);
    $ay = round($zaman_farki / 2419200);
    $yil = round($zaman_farki / 29030400);
    if ($tur == "saniye") {
        if ($saniye < $miktar) {
            return "0";
        }
        return "1";
    }
    if ($tur == "dakika") {
        if ($dakika < $miktar) {
            return "0";
        }
        return "1";
    }
    if ($tur == "saat") {
        if ($saat < $miktar) {
            return "0";
        }
        return "1";
    }
    if ($tur == "gun") {
        if ($gun < $miktar) {
            return "0";
        }
        return "1";
    }
    if ($tur == "hafta") {
        if ($hafta < $miktar) {
            return "0";
        }
        return "1";
    }
    if ($tur == "ay") {
        if ($ay < $miktar) {
            return "0";
        }
        return "1";
    }
    if ($tur == "yil") {
        if ($yil < $miktar) {
            return "0";
        }
        return "1";
    }
}
function useradrescontrol()
{
    global $db;
    global $user;
    $adres = $user["user_adres"];
    $adrescode = $user["user_adrescode"];
    $adrestitle = $user["user_adrestitle"];
    $city = $user["user_city"];
    $county = $user["user_county"];
    if (!($adres && $adrescode && $adrestitle && $city && $county)) {
        return 0;
    }
    return 1;
}
function ecsoft_seo($s)
{
    $tr = ["ş", "Ş", "ı", "I", "İ", "ğ", "Ğ", "ü", "Ü", "ö", "Ö", "Ç", "ç", "(", ")", "/", ":", ","];
    $eng = ["s", "s", "i", "i", "i", "g", "g", "u", "u", "o", "o", "c", "c", "", "", "-", "-", ""];
    $s = str_replace($tr, $eng, $s);
    $s = strtolower($s);
    $s = preg_replace("/&amp;amp;amp;amp;amp;amp;amp;amp;amp;.+?;/", "", $s);
    $s = preg_replace("/\\s+/", "-", $s);
    $s = preg_replace("|-+|", "-", $s);
    $s = preg_replace("/#/", "", $s);
    $s = str_replace(".", "", $s);
    $s = trim($s, "-");
    return $s;
}
function ecsoft_keys($s)
{
    $tr = ["ş", "Ş", "ı", "I", "İ", "ğ", "Ğ", "ü", "Ü", "ö", "Ö", "Ç", "ç", "(", ")", "/", ":", ","];
    $eng = ["s", "s", "i", "i", "i", "g", "g", "u", "u", "o", "o", "c", "c", "", "", "-", "-", ""];
    $s = str_replace($tr, $eng, $s);
    $s = strtolower($s);
    $s = preg_replace("/&amp;amp;amp;amp;amp;amp;amp;amp;amp;.+?;/", "", $s);
    $s = preg_replace("/\\s+/", ",", $s);
    $s = preg_replace("|-+|", "-", $s);
    $s = preg_replace("/#/", "", $s);
    $s = str_replace(".", "", $s);
    $s = trim($s, "-");
    return $s;
}
function ecsoft_noband()
{
    $gzip_pres = true;
    function gzipKontrol()
    {
        $kontrol = str_replace(" ", "", strtolower($_SERVER["HTTP_ACCEPT_ENCODING"]));
        $kontrol = explode(",", $kontrol);
        return in_array("gzip", $kontrol);
    }
    function bosluksil($kaynak)
    {
        $kaynak = preg_replace("#^\\s*//.+\$#m", NULL, $kaynak);
        $kaynak = preg_replace("/\\s+/", " ", $kaynak);
        $kaynak = preg_replace("/<!--(.|\\s)*?-->/", NULL, $kaynak);
        $kaynak = trim($kaynak);
        return $kaynak;
    }
    function kaynak_presle($kaynak)
    {
        global $gzip_pres;
        $sayfa_cikti = bosluksil($kaynak);
        if (!gzipKontrol() || headers_sent() || !$gzip_pres) {
            return $sayfa_cikti;
        }
        header("Content-Encoding: gzip");
        return gzencode($sayfa_cikti);
    }
    ob_start("kaynak_presle");
}
function order_verify($id)
{
    global $db;
    $ordersor = $db->prepare("UPDATE bakiyeyatir SET status='1' where skey=" . $id);
    $ordersor->execute();
    if ($ordersor) {
        return "1";
    }
    return "0";
}

?>
ecssoft dosyası:
Kod:
<?php

date_default_timezone_set("Europe/Istanbul");
require "config.php";
require "function.php";
require "modules/altorouter/altorouter.php";
require "modules/crypt/AES.php";
require "modules/phpmailer/PHPMailerAutoload.php";
require "modules/phpmailer/class.phpmailer.php";
require_once "modules/PHPGangsta/GoogleAuthenticator.php";
require_once "modules/telegram/vendor/autoload.php";
require_once "modules/google-analystic-api/vendor/autoload.php";
$ecsoft_dbhost = $ecsoft["dbhost"];
$ecsoft_dbname = $ecsoft["dbname"];
$ecsoft_dbuser = $ecsoft["dbuser"];
$ecsoft_dbpass = $ecsoft["dbpass"];
try {
    $db = new PDO("mysql:host=" . $ecsoft_dbhost . ";dbname=" . $ecsoft_dbuser . ";charset=utf8", $ecsoft_dbname, $ecsoft_dbpass);
} catch (PDOExpception $e) {
    echo $e->getMessage();
    $moxpathone = dirname(__FILE__);
    $moxpathtwo = substr($moxpathone, -3);
    $moxpaththree = rtrim($moxpathone, $moxpathtwo);
    define("PATH", $moxpaththree);
    $_liinfosor = $db->prepare("SELECT * FROM setting where setting_id='1'");
    $_liinfosor->execute();
    $_liinfo = $_liinfosor->fetch(PDO::FETCH_ASSOC);
    $_licence_time = $_liinfo["license_check"];
    if ($_licence_time == "") {
        $_liup = $db->prepare("UPDATE setting SET license_check=:license_check");
        $_liup->execute(["license_check" => date("Y-m-d H:i:s")]);
    }
    if ("60" <= ecsoft_time_info($_licence_time, "dakika")) {
        $license_check = file_get_contents("https://gorevyapparaal.xyz/license-update-check.php?domain=" . $_SERVER["HTTP_HOST"]);
        if ($license_check == 0) {
            exit;
        }
    }
}
function sqlclear($item)
{
    if (is_array($item)) {
        foreach ($item as $key => $value) {
            $item[$key] = sqlclear($value);
        }
        return $item;
    } else {
        $bul = ["UPDATE", "SELECT", "UNION", "where", "WHERE", "union", "SELECT", "select", "update", "LIMIT", "limit", "==", " (", ") ", " OR ", "1==1", "ORDER+BY", "order+by", "char", "group_", "GROUP_", "TABLE_", "_NAME", "table_", "_name"];
        foreach ($bul as $value) {
            if (strstr($item, $value)) {
                $item = str_replace($value, "", $item);
            }
        }
        $item = str_replace($bul, "", $item);
        return $item;
    }
}

?>


index.php dosyası:
Kod:
<?php
function aa55d9EG1Oem($a, $b)
{
    return $a . "-" . $b . "4XhBUbjYMWhIo";
}
function diff_day($start = "", $end = "")
{
    $dStart = new DateTime($start);
    $dEnd = new DateTime($end);
    $dDiff = $dStart->diff($dEnd);
    return $dDiff->days;
}
// Dynamic encoding key: $ao9aq6q7hcpnqxlw
function crypt_chip()
{
}
function get_license_file_data($reload = false)
{
    global $temp_lfile;
    if ($reload || !$temp_lfile) {
        if (!file_exists(__DIR__ . DIRECTORY_SEPARATOR . "LICENSE")) {
            return false;
        }
        $checkingFileData = file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . "LICENSE");
        if ($checkingFileData) {
            $checkingFileData = crypt_chip("decrypt", $checkingFileData);
        }
        if ($checkingFileData) {
            $temp_lfile = json_decode($checkingFileData, true);
            return $temp_lfile;
        }
        return false;
    }
    return $temp_lfile;
}
function license_run_check($licenseData = [])
{
    if ($licenseData && isset($licenseData["next-check-time"])) {
        $now_time = date("Y-m-d H:i:s");
        $next_time = date("Y-m-d H:i:s", strtotime($licenseData["next-check-time"]));
        $difference = diff_day($next_time, $now_time);
        if ($difference < 2) {
            $now_time = strtotime(date("Y-m-d H:i:s"));
            $next_time = strtotime($next_time);
            if ($now_time < $next_time) {
                return false;
            }
        }
    }
    return true;
}
function use_license_curl($address, &$error_msg)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $address);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, 30);
    $result = @curl_exec($ch);
    if (curl_errno($ch)) {
        $error_msg = curl_error($ch);
        return false;
    }
    curl_close($ch);
    return $result;
}

?>