Advertisement
Guest User

Untitled

a guest
Apr 1st, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.59 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function diff_day($start = '', $end = '')
  15. {
  16. $dStart = new DateTime($start);
  17. $dEnd = new DateTime($end);
  18. $dDiff = $dStart->diff($dEnd);
  19. return $dDiff->days;
  20. }
  21.  
  22. function crypt_chip($action, $string)
  23. {
  24. }
  25.  
  26. function get_license_file_data($reload = false)
  27. {
  28. global $temp_lfile;
  29. if ($reload || !$temp_lfile) {
  30. if (!file_exists(__DIR__ . DIRECTORY_SEPARATOR . 'LICENSE')) {
  31. return false;
  32. }
  33.  
  34. $checkingFileData = file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'LICENSE');
  35.  
  36. if ($checkingFileData) {
  37. $checkingFileData = crypt_chip('decrypt', $checkingFileData);
  38.  
  39. if ($checkingFileData) {
  40. $temp_lfile = json_decode($checkingFileData, true);
  41. return $temp_lfile;
  42. }
  43. }
  44. }
  45. else {
  46. return $temp_lfile;
  47. }
  48.  
  49. return false;
  50. }
  51.  
  52. function license_run_check($licenseData = [])
  53. {
  54. if ($licenseData) {
  55. if (isset($licenseData['next-check-time'])) {
  56. $now_time = date('Y-m-d H:i:s');
  57. $next_time = date('Y-m-d H:i:s', strtotime($licenseData['next-check-time']));
  58. $difference = diff_day($next_time, $now_time);
  59.  
  60. if ($difference < 2) {
  61. $now_time = strtotime(date('Y-m-d H:i:s'));
  62. $next_time = strtotime($next_time);
  63.  
  64. if ($now_time < $next_time) {
  65. return false;
  66. }
  67. }
  68. }
  69. }
  70.  
  71. return true;
  72. }
  73.  
  74. function use_license_curl($address, &$error_msg)
  75. {
  76. $ch = curl_init();
  77. curl_setopt($ch, CURLOPT_URL, $address);
  78. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  79. curl_setopt($ch, CURLOPT_TIMEOUT, 30);
  80. $result = @curl_exec($ch);
  81.  
  82. if (curl_errno($ch)) {
  83. $error_msg = curl_error($ch);
  84. return false;
  85. }
  86.  
  87. curl_close($ch);
  88. return $result;
  89. }
  90.  
  91. $ao9aq6q7hcpnqxlw = ')l>z[^?<L@BgmcRJ2Ii?Ke]&78cNN=y[1DMZKCn7PH<';
  92. $short_open_tag = 1;
  93.  
  94. if (phpversion() <= '7.1') {
  95. $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.';
  96. }
  97. else if (!EXTENSION_LOADED('IonCube Loader')) {
  98. $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.';
  99. }
  100. else if (!phpversion('zip')) {
  101. $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.';
  102. }
  103. else if (!isset($short_open_tag)) {
  104. $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.';
  105. }
  106. else if (!phpversion('mbstring')) {
  107. $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.';
  108. }
  109.  
  110. if (isset($setup_error)) {
  111. 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">';
  112. echo $setup_error;
  113. echo '</p>' . "\r\n" . ' <p class="output"><a href="';
  114. echo $mainurl;
  115. echo '">Sayfayı Yenile</a>.</p>' . "\r\n" . '</div>' . "\r\n\t" . ' ' . "\r\n\t" . '</body>' . "\r\n\t" . '</html>' . "\r\n";
  116. exit();
  117. }
  118.  
  119. error_reporting(0);
  120. session_start();
  121. require_once 'app/ecsoft.php';
  122. ecsoft_noband();
  123. if (!function_exists('curl_init') || !function_exists('curl_exec') || !function_exists('curl_setopt')) {
  124. exit('PHP Curl Library not found');
  125. }
  126.  
  127. static $temp_lfile = null;
  128. $license_data = get_license_file_data();
  129. $run_check = license_run_check($license_data);
  130.  
  131. if ($run_check) {
  132. $domain = str_replace('www.', '', $_SERVER['SERVER_NAME']);
  133. $directory = __DIR__;
  134.  
  135. if (isset($_SERVER['HTTP_CLIENT_IP'])) {
  136. $ip = $_SERVER['HTTP_CLIENT_IP'];
  137. }
  138. else if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  139. $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
  140. }
  141. else {
  142. $ip = $_SERVER['REMOTE_ADDR'];
  143. }
  144.  
  145. $server_ip = $_SERVER['SERVER_ADDR'];
  146. $entered = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  147. $referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '');
  148. $address = 'https://www.gorevyapparaal.xyz/license-verify/c0095f92de08fadc773ce47b9d2a5f17b94ea518?';
  149. $address .= 'domain=' . $domain;
  150. $address .= '&server_ip=' . $server_ip;
  151. $address .= '&user_ip=' . $ip;
  152. $address .= '&entered_url=' . $entered;
  153. $address .= '&referer_url=' . $referer;
  154. $address .= '&directory=' . $directory;
  155. $resultErr = false;
  156. $result = use_license_curl($address, $resultErr);
  157.  
  158. if ($result == 'OK') {
  159. $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'))]));
  160. file_put_contents(__DIR__ . DIRECTORY_SEPARATOR . 'LICENSE', $checkFileData);
  161. }
  162. else {
  163. $err = use_license_curl('https://www.gorevyapparaal.xyz/license-error?user_ip=' . $ip, $resultErr);
  164.  
  165. if ($err == '') {
  166. $err = 'LICENSE CURL CONNECTION ERROR';
  167. }
  168.  
  169. exit($err);
  170. }
  171. }
  172.  
  173. $settingsor = $db->prepare('SELECT * FROM setting where setting_id=\'1\'');
  174. $settingsor->execute();
  175. $setting = $settingsor->fetch(PDO::FETCH_ASSOC);
  176.  
  177. if (isset($_SESSION['admin_id'])) {
  178. $adminsor = $db->prepare('SELECT * FROM admin where admin_id=:id');
  179. $adminsor->execute(['id' => $_SESSION['admin_id']]);
  180. $admindurum = $adminsor->rowCount();
  181. $admin = $adminsor->fetch(PDO::FETCH_ASSOC);
  182. }
  183.  
  184. if (isset($_SESSION['user_id'])) {
  185. $usersor = $db->prepare('SELECT * FROM user where id=:id');
  186. $usersor->execute(['id' => $_SESSION['user_id']]);
  187. $userdurum = $usersor->rowCount();
  188. $user = $usersor->fetch(PDO::FETCH_ASSOC);
  189. }
  190.  
  191. $site_currentPath = $_SERVER['PHP_SELF'];
  192. $site_pathInfo = pathinfo($site_currentPath);
  193. $site_host = $_SERVER['HTTP_HOST'];
  194. $site_hostname = ltrim($_SERVER['HTTP_HOST'], 'www.');
  195. if ((isset($_SERVER['HTTPS']) && (($_SERVER['HTTPS'] == 'on') || ($_SERVER['HTTPS'] == 1))) || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'))) {
  196. $site_protocol = 'https';
  197. }
  198. else {
  199. $site_protocol = 'http';
  200. }
  201.  
  202. if ($setting['setting_www'] == 1) {
  203. $www = 'www';
  204. }
  205. else {
  206. $www = '';
  207. }
  208.  
  209. $wwwsorgu = substr($site_host, 0, 3);
  210.  
  211. if ($wwwsorgu == 'www') {
  212. $wwwinfo = 'www';
  213. }
  214. else {
  215. $wwwinfo = '';
  216. }
  217.  
  218. if ($site_protocol != $setting['setting_ssl']) {
  219. $sslhata = '1';
  220. }
  221. else {
  222. $sslhata = '0';
  223. }
  224.  
  225. if ($wwwinfo != $www) {
  226. $wwwhata = '1';
  227. }
  228. else {
  229. $wwwhata = '0';
  230. }
  231.  
  232. if ($setting['setting_www'] == 1) {
  233. $ww = 'www.';
  234. }
  235. else {
  236. $ww = '';
  237. }
  238.  
  239. $mainurltwo = $setting['setting_ssl'] . '://' . $ww . $site_hostname . $site_pathInfo['dirname'] . '/';
  240. $soniki = substr($mainurltwo, -2);
  241.  
  242. if ($soniki == '//') {
  243. $mainurl = $setting['setting_ssl'] . '://' . $ww . $site_hostname . $site_pathInfo['dirname'];
  244. }
  245. else {
  246. $mainurl = $setting['setting_ssl'] . '://' . $ww . $site_hostname . $site_pathInfo['dirname'] . '/';
  247. }
  248.  
  249. if ($soniki == '//') {
  250. $s1 = '';
  251. }
  252. else {
  253. $s1 = '/';
  254. }
  255. $router = new AltoRouter();
  256. $currentPath = $_SERVER['PHP_SELF'];
  257. $pathInfo = pathinfo($currentPath);
  258. $ecPATH = ltrim($pathInfo['dirname'], '/');
  259. $router->setBasePath($ecPATH . '/');
  260. include 'app/router/index.php';
  261. $router->map('GET|POST', $s1 . $setting['setting_admin'], function() {
  262. global $db;
  263. global $setting;
  264. global $mainurl;
  265. global $admin;
  266. global $wwwhata;
  267. global $sslhata;
  268. if ($sslhata || ($wwwhata == 1)) {
  269. header('location:' . $mainurl . $setting['setting_admin'] . '/');
  270. }
  271.  
  272. if (isset($_SESSION['admin_id'])) {
  273. header('location:' . $mainurl . $setting['setting_admin'] . '/');
  274. }
  275. else {
  276. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  277. }
  278. });
  279. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/', function() {
  280. global $db;
  281. global $setting;
  282. global $mainurl;
  283. global $admin;
  284. global $wwwhata;
  285. global $sslhata;
  286. if ($sslhata || ($wwwhata == 1)) {
  287. header('location:' . $mainurl . $setting['setting_admin'] . '/');
  288. }
  289.  
  290. if (isset($_SESSION['admin_id'])) {
  291. $url = ecsoft_curl('https://ecyazilim.com/ecupdate.php?domain=' . $_SERVER['HTTP_HOST']);
  292. $data = json_decode($url, true);
  293. $newversion = $data['version'];
  294. include 'templates/admin/index.php';
  295.  
  296. if (isset($ecsoft_alert)) {
  297. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  298. }
  299. }
  300. else {
  301. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  302. }
  303. });
  304. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/index', function() {
  305. global $db;
  306. global $setting;
  307. global $mainurl;
  308. global $admin;
  309. global $wwwhata;
  310. global $sslhata;
  311. if ($sslhata || ($wwwhata == 1)) {
  312. header('location:' . $mainurl . $setting['setting_admin'] . '/index');
  313. }
  314.  
  315. if (isset($_SESSION['admin_id'])) {
  316. $url = ecsoft_curl('https://ecyazilim.com/ecupdate.php?domain=' . $_SERVER['HTTP_HOST']);
  317. $data = json_decode($url, true);
  318. $newversion = $data['version'];
  319. include 'templates/admin/index.php';
  320.  
  321. if (isset($ecsoft_alert)) {
  322. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  323. }
  324. }
  325. else {
  326. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  327. }
  328. });
  329. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/guncelleme', function() {
  330. global $db;
  331. global $setting;
  332. global $mainurl;
  333. global $admin;
  334. global $wwwhata;
  335. global $sslhata;
  336. if ($sslhata || ($wwwhata == 1)) {
  337. header('location:' . $mainurl . $setting['setting_admin'] . '/guncelleme');
  338. }
  339.  
  340. if (isset($_SESSION['admin_id'])) {
  341. $url = ecsoft_curl('https://ecyazilim.com/ecupdate.php?domain=' . $_SERVER['HTTP_HOST']);
  342. $data = json_decode($url, true);
  343. $desc = $data['desc'];
  344. $yversion = $data['version'];
  345. include 'app/controller/admin/guncelleme.php';
  346. include 'templates/admin/guncelleme.php';
  347.  
  348. if (isset($ecsoft_alert)) {
  349. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  350. }
  351. }
  352. else {
  353. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  354. }
  355. });
  356. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/paket-gecmis', function() {
  357. global $db;
  358. global $setting;
  359. global $mainurl;
  360. global $admin;
  361. global $wwwhata;
  362. global $sslhata;
  363. if ($sslhata || ($wwwhata == 1)) {
  364. header('location:' . $mainurl . $setting['setting_admin'] . '/paket-gecmis');
  365. }
  366.  
  367. if (isset($_SESSION['admin_id'])) {
  368. include 'templates/admin/paket-gecmis.php';
  369.  
  370. if (isset($ecsoft_alert)) {
  371. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  372. }
  373. }
  374. else {
  375. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  376. }
  377. });
  378. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/yorumlar', function() {
  379. global $db;
  380. global $setting;
  381. global $mainurl;
  382. global $admin;
  383. global $wwwhata;
  384. global $sslhata;
  385. if ($sslhata || ($wwwhata == 1)) {
  386. header('location:' . $mainurl . $setting['setting_admin'] . '/yorumlar');
  387. }
  388.  
  389. if (isset($_SESSION['admin_id'])) {
  390. include 'templates/admin/yorumlar.php';
  391.  
  392. if (isset($ecsoft_alert)) {
  393. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  394. }
  395. }
  396. else {
  397. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  398. }
  399. });
  400. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/yorum-ekle', function() {
  401. global $db;
  402. global $setting;
  403. global $mainurl;
  404. global $admin;
  405. global $wwwhata;
  406. global $sslhata;
  407. if ($sslhata || ($wwwhata == 1)) {
  408. header('location:' . $mainurl . $setting['setting_admin'] . '/yorum-ekle');
  409. }
  410.  
  411. if (isset($_SESSION['admin_id'])) {
  412. include 'app/controller/admin/yorum.php';
  413. include 'templates/admin/yorum-ekle.php';
  414.  
  415. if (isset($ecsoft_alert)) {
  416. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  417. }
  418. }
  419. else {
  420. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  421. }
  422. });
  423. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/yorum/[*:getid]', function($getid) {
  424. global $db;
  425. global $setting;
  426. global $mainurl;
  427. global $admin;
  428. global $wwwhata;
  429. global $sslhata;
  430. if ($sslhata || ($wwwhata == 1)) {
  431. header('location:' . $mainurl . $setting['setting_admin'] . '/yorum/' . $getid);
  432. }
  433.  
  434. if (isset($_SESSION['admin_id'])) {
  435. include 'app/controller/admin/yorum.php';
  436. include 'templates/admin/yorum.php';
  437.  
  438. if (isset($ecsoft_alert)) {
  439. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  440. }
  441. }
  442. else {
  443. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  444. }
  445. });
  446. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/paketler', function() {
  447. global $db;
  448. global $setting;
  449. global $mainurl;
  450. global $admin;
  451. global $wwwhata;
  452. global $sslhata;
  453. if ($sslhata || ($wwwhata == 1)) {
  454. header('location:' . $mainurl . $setting['setting_admin'] . '/paketler');
  455. }
  456.  
  457. if (isset($_SESSION['admin_id'])) {
  458. include 'templates/admin/paketler.php';
  459.  
  460. if (isset($ecsoft_alert)) {
  461. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  462. }
  463. }
  464. else {
  465. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  466. }
  467. });
  468. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/paket-ekle', function() {
  469. global $db;
  470. global $setting;
  471. global $mainurl;
  472. global $admin;
  473. global $wwwhata;
  474. global $sslhata;
  475. if ($sslhata || ($wwwhata == 1)) {
  476. header('location:' . $mainurl . $setting['setting_admin'] . '/paket-ekle');
  477. }
  478.  
  479. if (isset($_SESSION['admin_id'])) {
  480. include 'app/controller/admin/paket.php';
  481. include 'templates/admin/paket-ekle.php';
  482.  
  483. if (isset($ecsoft_alert)) {
  484. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  485. }
  486. }
  487. else {
  488. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  489. }
  490. });
  491. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/paket/[*:getid]', function($getid) {
  492. global $db;
  493. global $setting;
  494. global $mainurl;
  495. global $admin;
  496. global $wwwhata;
  497. global $sslhata;
  498. if ($sslhata || ($wwwhata == 1)) {
  499. header('location:' . $mainurl . $setting['setting_admin'] . '/paket/' . $getid);
  500. }
  501.  
  502. if (isset($_SESSION['admin_id'])) {
  503. include 'app/controller/admin/paket.php';
  504. include 'templates/admin/paket.php';
  505.  
  506. if (isset($ecsoft_alert)) {
  507. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  508. }
  509. }
  510. else {
  511. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  512. }
  513. });
  514. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/login', function() {
  515. global $db;
  516. global $setting;
  517. global $mainurl;
  518. global $admin;
  519. global $wwwhata;
  520. global $sslhata;
  521. if ($sslhata || ($wwwhata == 1)) {
  522. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  523. }
  524.  
  525. if (isset($_SESION['admin_id'])) {
  526. header('location:' . $setting['setting_admin/']);
  527. }
  528. else {
  529. include 'app/controller/admin/login.php';
  530. include 'templates/admin/login.php';
  531.  
  532. if (isset($ecsoft_alert)) {
  533. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  534. }
  535. }
  536. });
  537. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/kupon-gecmis', function() {
  538. global $db;
  539. global $setting;
  540. global $mainurl;
  541. global $admin;
  542. global $wwwhata;
  543. global $sslhata;
  544. if ($sslhata || ($wwwhata == 1)) {
  545. header('location:' . $mainurl . $setting['setting_admin'] . '/kupon-gecmis');
  546. }
  547.  
  548. if (isset($_SESSION['admin_id'])) {
  549. include 'templates/admin/kupon-gecmis.php';
  550.  
  551. if (isset($ecsoft_alert)) {
  552. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  553. }
  554. }
  555. else {
  556. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  557. }
  558. });
  559. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/kuponlar', function() {
  560. global $db;
  561. global $setting;
  562. global $mainurl;
  563. global $admin;
  564. global $wwwhata;
  565. global $sslhata;
  566. if ($sslhata || ($wwwhata == 1)) {
  567. header('location:' . $mainurl . $setting['setting_admin'] . '/kuponlar');
  568. }
  569.  
  570. if (isset($_SESSION['admin_id'])) {
  571. include 'templates/admin/kuponlar.php';
  572.  
  573. if (isset($ecsoft_alert)) {
  574. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  575. }
  576. }
  577. else {
  578. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  579. }
  580. });
  581. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/kupon-ekle', function() {
  582. global $db;
  583. global $setting;
  584. global $mainurl;
  585. global $admin;
  586. global $wwwhata;
  587. global $sslhata;
  588. if ($sslhata || ($wwwhata == 1)) {
  589. header('location:' . $mainurl . $setting['setting_admin'] . '/kupon-ekle');
  590. }
  591.  
  592. if (isset($_SESSION['admin_id'])) {
  593. include 'app/controller/admin/kupon.php';
  594. include 'templates/admin/kupon-ekle.php';
  595.  
  596. if (isset($ecsoft_alert)) {
  597. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  598. }
  599. }
  600. else {
  601. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  602. }
  603. });
  604. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/kupon/[*:getid]', function($getid) {
  605. global $db;
  606. global $setting;
  607. global $mainurl;
  608. global $admin;
  609. global $wwwhata;
  610. global $sslhata;
  611. if ($sslhata || ($wwwhata == 1)) {
  612. header('location:' . $mainurl . $setting['setting_admin'] . '/kupon/' . $getid);
  613. }
  614.  
  615. if (isset($_SESSION['admin_id'])) {
  616. include 'app/controller/admin/kupon.php';
  617. include 'templates/admin/kupon.php';
  618.  
  619. if (isset($ecsoft_alert)) {
  620. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  621. }
  622. }
  623. else {
  624. header('location:' . $mainurl . $setting['setting_admin'] . '/login');
  625. }
  626. });
  627. $router->map('GET|POST', $s1 . $setting['setting_admin'] . '/toplu', function() {
  628. global $db;
  629. global $setting;
  630. global $mainurl;
  631. global $admin;
  632. global $wwwhata;
  633. global $sslhata;
  634. if ($sslhata || ($wwwhata == 1)) {
  635. header('location:' . $mainurl . $setting['setting_admin'] . '/toplu');
  636. }
  637.  
  638. if (isset($_SESSION['admin_id'])) {
  639. include 'app/controller/admin/toplu.php';
  640. include 'templates/admin/toplu.php';
  641.  
  642. if (isset($ecsoft_alert)) {
  643. ecsoft_alert($ecsoft_alert['one'], $ecsoft_alert['two'], $ecsoft_alert['three']);
  644. }
  645. }
  646. else {
  647. .....................................................................
  648. ...........................................
  649. .....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement