Untitled
unknown
plain_text
a year ago
6.2 kB
2
Indexable
Never
<?php $path = @parse_url($_SERVER['REQUEST_URI'])['path']; $utils_dir = '/tools'; /* RewriteRule _(.*)_(.*)_s.html/r/(.*) index.php?p=Products&salesinfo=$2&refcode=$3 RewriteRule _(.*)_(.*).html/r/(.*) index.php?p=Products&game_id=$2&refcode=$3&popup=1 RewriteRule _(.*)_(.*)_s.html index.php?p=Products&salesinfo=$2 RewriteRule _(.*)_(.*).html index.php?p=Products&game_id=$2&popup=1 RewriteRule ^s/(.*)_(.*) index.php?p=Pages&view=$2 RewriteRule ^search/q=(.*)$ index.php?p=Games&page=1&filter=$1 [L] RewriteRule ^belge-dogrulama/code/(.*) index.php?p=Members&action=adc&code=$1 [L] RewriteRule ^d/(.*)$ index.php?p=Payment&action=donate&streamer=$1 [L] RewriteRule ^r/(.*)$ ?p=Members&start=register&refcode=$1 [R=301,L] RewriteRule ^(.*)/r/(.*)$ ?p=Games&game_category=$1&refcode=$2 [R=301,L] RewriteRule ^(.*)/r=(.*)$ ?p=Games&game_category=$1&refcode=$2 [L] */ // rewrite rules function getRewrite($page, $view, $other = []) { global $path; $path = '/'; $get = array_merge(['p' => $page, 'view' => $view], $other); $_GET = array_merge($_GET, $get); } if (substr($path, 0, strlen($utils_dir)) == $utils_dir) { $path = substr($path, strlen($utils_dir)); } if ($path != '/' && $path != '/index.php') { if (file_exists(__DIR__ . $utils_dir . $path)) { $_SERVER['DOCUMENT_URI'] = $path; $_SERVER['SCRIPT_NAME'] = $path; $_SERVER['PHP_SELF'] = $path; require_once(__DIR__ . $utils_dir . $path); } else if ($path == '/index.html' || $path == '/index.php') { header('Location: /'); } else if ($path == '/hakkimizda') { getRewrite('Pages', '11'); } elseif ($path == '/kullanici-sozlesmesi') { getRewrite('Pages', '12'); } elseif ($path == '/calisma-saatlerimiz') { getRewrite('Pages', '14'); } elseif ($path == '/kisisel-verilerin-korunmasi') { getRewrite('Pages', '15'); } elseif ($path == '/site-kullanimi') { getRewrite('Pages', '16'); } elseif ($path == '/neden-turkpin') { getRewrite('Pages', '17'); } elseif ($path == '/is-ortaklarimiz') { getRewrite('Pages', '19'); } elseif ($path == '/api-sistem') { getRewrite('Pages', '20'); } elseif ($path == '/odeme-secenekleri') { getRewrite('Pages', '21'); } elseif ($path == '/mesafeli-satis-sozlesmesi') { getRewrite('Pages', '22'); } elseif ($path == '/is-imkanlari') { getRewrite('Pages', '26'); } elseif ($path == '/uyarilarimizi-dikkate-aliniz') { getRewrite('Pages', '34'); } elseif ($path == '/sosyal-medya-hesaplarimiz') { getRewrite('Pages', '37'); } elseif ($path == '/oyun-parasi-teslimat-yerleri') { getRewrite('Pages', '27'); } elseif ($path == '/canli-destek-hattimiz') { getRewrite('Pages', '39'); } elseif ($path == '/iptal-ve-geri-iade-sozlesmesi') { getRewrite('Pages', '41'); } elseif ($path == '/logos') { getRewrite('Pages', '42'); } elseif ($path == '/sikca-sorulan-sorular') { getRewrite('SSS', ''); } elseif ($path == '/hesabiniz_donduruldu.html') { getRewrite('Maintenance', '', ['action' => 'suspended']); } elseif ($path == '/maintenance.html') { getRewrite('Maintenance', ''); } elseif ($path == '/bayiler') { getRewrite('Dealerships', '', ['popup' => 1]); } elseif ($path == '/ekibimiz') { getRewrite('Person', ''); } elseif ($path == '/ekibimiz/mehmet-enis-baskurt' || $path == 'vc/meb') { getRewrite('Person', 'meb'); } elseif ($path == '/ekibimiz/oktay-aydogan' || $path == 'vc/oa') { getRewrite('Person', 'oa'); } elseif ($path == '/ekibimiz/ahmet-baydar' || $path == 'vc/ab') { getRewrite('Person', 'ab'); } elseif ($path == '/ekibimiz/irmak-akyildiz' || $path == 'vc/ia') { getRewrite('Person', 'ia'); } elseif ($path == '/hediye-senligi') { getRewrite('Draw', ''); } elseif ($path == '/kampanyalar') { getRewrite('News', '', ['type' => 2]); } elseif ($path == '/uyarilar') { getRewrite('News', '', ['type' => 1]); } elseif ($path == '/haberler') { getRewrite('News', '', ['type' => 0]); } elseif ($path == '/belge-dogrulama') { getRewrite('Members', '', ['action' => 'adc']); } elseif ($path == '/belge-dogrulama/code') { getRewrite('Members', '', ['action' => 'adc']); } elseif ($path == '/d') { getRewrite('Payment', '', ['action' => 'donate', 'streamer' => $_GET['streamer']]); } elseif ($path == '/streamer') { getRewrite('Members', '', ['action' => 'streamer_request', 'streamer' => 1]); } elseif ($path == '/zula') { getRewrite('Games', '', ['game_category' => 'zula', 'refcode' => '631']); } elseif ($path == '/yigitcaliskan') { getRewrite('Games', '', ['game_category' => 'zula', 'refcode' => '5926d0067c92e']); } elseif ($path == '/TV8SN') { getRewrite('Members', '', ['start' => 'register', 'refcode' => 'TV8SN']); } elseif ($path == '/T50T') { getRewrite('Members', '', ['start' => 'register', 'refcode' => 'T50T']); } elseif (preg_match('/\/r\/[A-Za-z0-9]+/', $path, $match)) { getRewrite('Members', '', ['start' => 'register', 'refcode' => $match[0]]); } elseif (preg_match('/^\/belge-dogrulama\/code\/(.*)$/', $path, $matches)) { getRewrite('Members', '', ['action' => 'adc', 'code' => $matches[1]]); } elseif (preg_match('/^\/hediye-senligi\/(.*)$/', $path, $matches)) { getRewrite('Draw', $matches[1]); } elseif (preg_match('/^\/kampanyalar\/(.*)$/', $path, $matches)) { getRewrite('News', $matches[1], ['type' => 2]); } elseif (preg_match('/^\/uyarilar\/(.*)$/', $path, $matches)) { getRewrite('News', $matches[1], ['type' => 1]); } elseif (preg_match('/^\/haberler\/(.*)$/', $path, $matches)) { getRewrite('News', $matches[1], ['type' => 0]); } elseif (preg_match('/^\/ekibimiz\/(.*)$/', $path, $matches)) { getRewrite('Person', $matches[1]); } elseif (preg_match('/^\/(.*)$/', $path, $matches)) { getRewrite('Games', '', ['game_category' => $matches[1]]); } }