Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function diff_day($start = '', $end = '')
- {
- $dStart = new DateTime($start);
- $dEnd = new DateTime($end);
- $dDiff = $dStart->diff($dEnd);
- return $dDiff->days;
- }
- function crypt_chip($action, $string)
- {
- }
- 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;
- }
- }
- }
- else {
- return $temp_lfile;
- }
- return false;
- }
- function license_run_check($licenseData = [])
- {
- if ($licenseData) {
- if (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;
- }
- $ao9aq6q7hcpnqxlw = ')l>z[^?<L@BgmcRJ2Ii?Ke]&78cNN=y[1DMZKCn7PH<';
- $short_open_tag = 1;
- if (phpversion() <= '7.1') {
- $setup_error = 'Bu yazılım yanlızca Php 7.1+ sürümlerinde çalışmaktadır. Php sürümünüzü yükseltin.';
- }
- else if (!EXTENSION_LOADED('IonCube Loader')) {
- $setup_error = 'Bu yazılım lisans ve güvenlik sebebiyle IonCube son sürüm şifreli dosyalar barındırır. Öncelikle IonCube son sürümü sunucunuza yükleyip aktifleştirin. Konu hakkında hosting firmanızdan destek alabilirsiniz.';
- }
- else if (!phpversion('zip')) {
- $setup_error = 'Bu yazılım kurulum ve güncelleme işlemleri için zip Archive kütüphanesini kullanır. Güncellemelerden sorunsuz şekilde yararlanmak için lütfen zip Archive kütüphanesini aktif ediniz.';
- }
- else if (!isset($short_open_tag)) {
- $setup_error = 'Bu yazılım short_open_tag functionunu kullanır. Bozuk dosya ve görüntüyü engellemek için lütfen short_open_tag functionunu aktif ediniz.';
- }
- else if (!phpversion('mbstring')) {
- $setup_error = 'Bu yazılım mb_ functionunu kullanır. Tüm işlevlerin sorunsuz çalışabilmesi için lütfen mbstring functionunu aktif ediniz.';
- }
- if (isset($setup_error)) {
- echo "\t" . '<!DOCTYPE html>' . "\r\n\t" . '<html>' . "\r\n\t" . '<head>' . "\r\n\t\t" . '<title>Gereksinimleri Karşılayın</title>' . "\r\n\t\t" . '<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">' . "\r\n\t\t" . '<style>' . "\r\n\t\t" . ' @import \'https://fonts.googleapis.com/css?family=Inconsolata\';' . "\r\n\r\n" . 'html {' . "\r\n" . ' min-height: 100%;' . "\r\n" . '}' . "\r\n\r\n" . 'body {' . "\r\n" . ' box-sizing: border-box;' . "\r\n" . ' height: 100%;' . "\r\n" . ' background-color: #000000;' . "\r\n" . ' background-image: radial-gradient(#11581E, #041607), url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif");' . "\r\n" . ' background-repeat: no-repeat;' . "\r\n" . ' background-size: cover;' . "\r\n" . ' font-family: \'Inconsolata\', Helvetica, sans-serif;' . "\r\n" . ' font-size: 1.5rem;' . "\r\n" . ' color: rgba(128, 255, 128, 0.8);' . "\r\n" . ' text-shadow:' . "\r\n" . ' 0 0 1ex rgba(51, 255, 51, 1),' . "\r\n" . ' 0 0 2px rgba(255, 255, 255, 0.8);' . "\r\n" . '}' . "\r\n\r\n" . '.noise {' . "\r\n" . ' pointer-events: none;' . "\r\n" . ' position: absolute;' . "\r\n" . ' width: 100%;' . "\r\n" . ' height: 100%;' . "\r\n" . ' background-image: url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif");' . "\r\n" . ' background-repeat: no-repeat;' . "\r\n" . ' background-size: cover;' . "\r\n" . ' z-index: -1;' . "\r\n" . ' opacity: .02;' . "\r\n" . '}' . "\r\n\r\n" . '.overlay {' . "\r\n" . ' pointer-events: none;' . "\r\n" . ' position: absolute;' . "\r\n" . ' width: 100%;' . "\r\n" . ' height: 100%;' . "\r\n" . ' background:' . "\r\n" . ' repeating-linear-gradient(' . "\r\n" . ' 180deg,' . "\r\n" . ' rgba(0, 0, 0, 0) 0,' . "\r\n" . ' rgba(0, 0, 0, 0.3) 50%,' . "\r\n" . ' rgba(0, 0, 0, 0) 100%);' . "\r\n" . ' background-size: auto 4px;' . "\r\n" . ' z-index: 1;' . "\r\n" . '}' . "\r\n\r\n" . '.overlay::before {' . "\r\n" . ' content: "";' . "\r\n" . ' pointer-events: none;' . "\r\n" . ' position: absolute;' . "\r\n" . ' display: block;' . "\r\n" . ' top: 0;' . "\r\n" . ' left: 0;' . "\r\n" . ' right: 0;' . "\r\n" . ' bottom: 0;' . "\r\n" . ' width: 100%;' . "\r\n" . ' height: 100%;' . "\r\n" . ' background-image: linear-gradient(' . "\r\n" . ' 0deg,' . "\r\n" . ' transparent 0%,' . "\r\n" . ' rgba(32, 128, 32, 0.2) 2%,' . "\r\n" . ' rgba(32, 128, 32, 0.8) 3%,' . "\r\n" . ' rgba(32, 128, 32, 0.2) 3%,' . "\r\n" . ' transparent 100%);' . "\r\n" . ' background-repeat: no-repeat;' . "\r\n" . ' animation: scan 7.5s linear 0s infinite;' . "\r\n" . '}' . "\r\n\r\n" . '@keyframes scan {' . "\r\n" . ' 0% { background-position: 0 -100vh; }' . "\r\n" . ' 35%, 100% { background-position: 0 100vh; }' . "\r\n" . '}' . "\r\n\r\n" . '.terminal {' . "\r\n" . ' box-sizing: inherit;' . "\r\n" . ' position: absolute;' . "\r\n" . ' height: 100%;' . "\r\n" . ' width: 1000px;' . "\r\n" . ' max-width: 100%;' . "\r\n" . ' padding: 4rem;' . "\r\n" . ' text-transform: uppercase;' . "\r\n" . '}' . "\r\n\r\n" . '.output {' . "\r\n" . ' color: rgba(128, 255, 128, 0.8);' . "\r\n" . ' text-shadow:' . "\r\n" . ' 0 0 1px rgba(51, 255, 51, 0.4),' . "\r\n" . ' 0 0 2px rgba(255, 255, 255, 0.8);' . "\r\n" . '}' . "\r\n\r\n" . '.output::before {' . "\r\n" . ' content: "> ";' . "\r\n" . '}' . "\r\n\r\n" . '/*' . "\r\n" . '.input {' . "\r\n" . ' color: rgba(192, 255, 192, 0.8);' . "\r\n" . ' text-shadow:' . "\r\n" . ' 0 0 1px rgba(51, 255, 51, 0.4),' . "\r\n" . ' 0 0 2px rgba(255, 255, 255, 0.8);' . "\r\n" . '}' . "\r\n\r\n" . '.input::before {' . "\r\n" . ' content: "$ ";' . "\r\n" . '}' . "\r\n" . '*/' . "\r\n\r\n" . 'a {' . "\r\n" . ' color: #fff;' . "\r\n" . ' text-decoration: none;' . "\r\n" . '}' . "\r\n\r\n" . 'a::before {' . "\r\n" . ' content: "[";' . "\r\n" . '}' . "\r\n\r\n" . 'a::after {' . "\r\n" . ' content: "]";' . "\r\n" . '}' . "\r\n\r\n" . '.errorcode {' . "\r\n" . ' color: white;' . "\r\n" . '}' . "\r\n\t\t" . '</style>' . "\r\n\t" . '</head>' . "\r\n\t" . '<body>' . "\r\n\t" . ' ' . "\r\n\t" . ' <div class="noise"></div>' . "\r\n" . '<div class="overlay"></div>' . "\r\n" . '<div class="terminal">' . "\r\n" . ' <h1>Gereksinimleri <span class="errorcode">Karşılayın</span></h1>' . "\r\n" . ' <p class="output">';
- echo $setup_error;
- echo '</p>' . "\r\n" . ' <p class="output"><a href="';
- echo $mainurl;
- echo '">Sayfayı Yenile</a>.</p>' . "\r\n" . '</div>' . "\r\n\t" . ' ' . "\r\n\t" . '</body>' . "\r\n\t" . '</html>' . "\r\n";
- exit();
- }
- error_reporting(0);
- session_start();
- require_once 'app/ecsoft.php';
- ecsoft_noband();
- if (!function_exists('curl_init') || !function_exists('curl_exec') || !function_exists('curl_setopt')) {
- exit('PHP Curl Library not found');
- }
- static $temp_lfile = null;
- $license_data = get_license_file_data();
- $run_check = license_run_check($license_data);
- if ($run_check) {
- $domain = str_replace('www.', '', $_SERVER['SERVER_NAME']);
- $directory = __DIR__;
- if (isset($_SERVER['HTTP_CLIENT_IP'])) {
- $ip = $_SERVER['HTTP_CLIENT_IP'];
- }
- else if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
- $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
- }
- else {
- $ip = $_SERVER['REMOTE_ADDR'];
- }
- $server_ip = $_SERVER['SERVER_ADDR'];
- $entered = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
- $referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '');
- $address = 'https://www.gorevyapparaal.xyz/license-verify/c0095f92de08fadc773ce47b9d2a5f17b94ea518?';
- $address .= 'domain=' . $domain;
- $address .= '&server_ip=' . $server_ip;
- $address .= '&user_ip=' . $ip;
- $address .= '&entered_url=' . $entered;
- $address .= '&referer_url=' . $referer;
- $address .= '&directory=' . $directory;
- $resultErr = false;
- $result = use_license_curl($address, $resultErr);
- if ($result == 'OK') {
- $checkFileData = crypt_chip('encrypt', json_encode(['last-check-time' => date('Y-m-d H:i:s'), 'next-check-time' => date('Y-m-d H:i:s', strtotime('+15 minute'))]));
- file_put_contents(__DIR__ . DIRECTORY_SEPARATOR . 'LICENSE', $checkFileData);
- }
- else {
- $err = use_license_curl('https://www.gorevyapparaal.xyz/license-error?user_ip=' . $ip, $resultErr);
- if ($err == '') {
- $err = 'LICENSE CURL CONNECTION ERROR';
- }
- exit($err);
- }
- }
- $settingsor = $db->prepare('SELECT * FROM setting where setting_id=\'1\'');
- $settingsor->execute();
- $setting = $settingsor->fetch(PDO::FETCH_ASSOC);
- if (isset($_SESSION['admin_id'])) {
- $adminsor = $db->prepare('SELECT * FROM admin where admin_id=:id');
- $adminsor->execute(['id' => $_SESSION['admin_id']]);
- $admindurum = $adminsor->rowCount();
- $admin = $adminsor->fetch(PDO::FETCH_ASSOC);
- }
- if (isset($_SESSION['user_id'])) {
- $usersor = $db->prepare('SELECT * FROM user where id=:id');
- $usersor->execute(['id' => $_SESSION['user_id']]);
- $userdurum = $usersor->rowCount();
- $user = $usersor->fetch(PDO::FETCH_ASSOC);
- }
- $site_currentPath = $_SERVER['PHP_SELF'];
- $site_pathInfo = pathinfo($site_currentPath);
- $site_host = $_SERVER['HTTP_HOST'];
- $site_hostname = ltrim($_SERVER['HTTP_HOST'], 'www.');
- 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';
- }
- if ($setting['setting_www'] == 1) {
- $www = 'www';
- }
- else {
- $www = '';
- }
- $wwwsorgu = substr($site_host, 0, 3);
- if ($wwwsorgu == 'www') {
- $wwwinfo = 'www';
- }
- else {
- $wwwinfo = '';
- }
- if ($site_protocol != $setting['setting_ssl']) {
- $sslhata = '1';
- }
- else {
- $sslhata = '0';
- }
- if ($wwwinfo != $www) {
- $wwwhata = '1';
- }
- else {
- $wwwhata = '0';
- }
- if ($setting['setting_www'] == 1) {
- $ww = 'www.';
- }
- else {
- $ww = '';
- }
- $mainurltwo = $setting['setting_ssl'] . '://' . $ww . $site_hostname . $site_pathInfo['dirname'] . '/';
- $soniki = substr($mainurltwo, -2);
- if ($soniki == '//') {
- $mainurl = $setting['setting_ssl'] . '://' . $ww . $site_hostname . $site_pathInfo['dirname'];
- }
- else {
- $mainurl = $setting['setting_ssl'] . '://' . $ww . $site_hostname . $site_pathInfo['dirname'] . '/';
- }
- if ($soniki == '//') {
- $s1 = '';
- }
- else {
- $s1 = '/';
- }
- $router = new AltoRouter();
- $currentPath = $_SERVER['PHP_SELF'];
- $pathInfo = pathinfo($currentPath);
- $ecPATH = ltrim($pathInfo['dirname'], '/');
- $router->setBasePath($ecPATH . '/');
- include 'app/router/index.php';
- $router->map('GET|POST', $s1 . $setting['setting_admin'], function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/');
- }
- if (isset($_SESSION['admin_id'])) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/');
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/');
- }
- if (isset($_SESSION['admin_id'])) {
- $url = ecsoft_curl('https://ecyazilim.com/ecupdate.php?domain=' . $_SERVER['HTTP_HOST']);
- $data = json_decode($url, true);
- $newversion = $data['version'];
- include 'templates/admin/index.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/index', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/index');
- }
- if (isset($_SESSION['admin_id'])) {
- $url = ecsoft_curl('https://ecyazilim.com/ecupdate.php?domain=' . $_SERVER['HTTP_HOST']);
- $data = json_decode($url, true);
- $newversion = $data['version'];
- include 'templates/admin/index.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/guncelleme', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/guncelleme');
- }
- if (isset($_SESSION['admin_id'])) {
- $url = ecsoft_curl('https://ecyazilim.com/ecupdate.php?domain=' . $_SERVER['HTTP_HOST']);
- $data = json_decode($url, true);
- $desc = $data['desc'];
- $yversion = $data['version'];
- include 'app/controller/admin/guncelleme.php';
- include 'templates/admin/guncelleme.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/paket-gecmis', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/paket-gecmis');
- }
- if (isset($_SESSION['admin_id'])) {
- include 'templates/admin/paket-gecmis.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/yorumlar', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/yorumlar');
- }
- if (isset($_SESSION['admin_id'])) {
- include 'templates/admin/yorumlar.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/yorum-ekle', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/yorum-ekle');
- }
- if (isset($_SESSION['admin_id'])) {
- include 'app/controller/admin/yorum.php';
- include 'templates/admin/yorum-ekle.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/yorum/[*:getid]', function($getid) {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/yorum/' . $getid);
- }
- if (isset($_SESSION['admin_id'])) {
- include 'app/controller/admin/yorum.php';
- include 'templates/admin/yorum.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/paketler', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/paketler');
- }
- if (isset($_SESSION['admin_id'])) {
- include 'templates/admin/paketler.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/paket-ekle', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/paket-ekle');
- }
- if (isset($_SESSION['admin_id'])) {
- include 'app/controller/admin/paket.php';
- include 'templates/admin/paket-ekle.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/paket/[*:getid]', function($getid) {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/paket/' . $getid);
- }
- if (isset($_SESSION['admin_id'])) {
- include 'app/controller/admin/paket.php';
- include 'templates/admin/paket.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/login', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- if (isset($_SESION['admin_id'])) {
- header('location:' . $setting['setting_admin/']);
- }
- else {
- include 'app/controller/admin/login.php';
- include 'templates/admin/login.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/kupon-gecmis', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/kupon-gecmis');
- }
- if (isset($_SESSION['admin_id'])) {
- include 'templates/admin/kupon-gecmis.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/kuponlar', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/kuponlar');
- }
- if (isset($_SESSION['admin_id'])) {
- include 'templates/admin/kuponlar.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/kupon-ekle', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/kupon-ekle');
- }
- if (isset($_SESSION['admin_id'])) {
- include 'app/controller/admin/kupon.php';
- include 'templates/admin/kupon-ekle.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/kupon/[*:getid]', function($getid) {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/kupon/' . $getid);
- }
- if (isset($_SESSION['admin_id'])) {
- include 'app/controller/admin/kupon.php';
- include 'templates/admin/kupon.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- header('location:' . $mainurl . $setting['setting_admin'] . '/login');
- }
- });
- $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/toplu', function() {
- global $db;
- global $setting;
- global $mainurl;
- global $admin;
- global $wwwhata;
- global $sslhata;
- if ($sslhata || ($wwwhata == 1)) {
- header('location:' . $mainurl . $setting['setting_admin'] . '/toplu');
- }
- if (isset($_SESSION['admin_id'])) {
- include 'app/controller/admin/toplu.php';
- include 'templates/admin/toplu.php';
- if (isset($ecsoft_alert)) {
- ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
- }
- }
- else {
- .....................................................................
- ...........................................
- .....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement