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.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- function get_base_url()
- {
- if (!empty($_SERVER['HTTPS'])) {
- return 'https://' . str_replace('www.', '', $_SERVER['HTTP_HOST']);
- }
- else {
- return 'http://' . str_replace('www.', '', $_SERVER['HTTP_HOST']);
- }
- }
- function uniq_key()
- {
- return md5(get_base_url());
- }
- function clr_url()
- {
- return hash('sha1', md5(base64_decode(rtrim(str_replace(['http://', 'https://', 'www.'], ['', '', ''], get_base_url()), '/'))) . getSiteAdi());
- }
- function license_check()
- {
- global $baglan;
- global $db;
- if (!isset($baglan) && !isset($db)) {
- exit('Bağlan bulunamadı!');
- }
- $lk = clr_url();
- if (isset($baglan)) {
- $license = mysql_query('SELECT * FROM lisans WHERE kod = \'' . $lk . '\'');
- if (mysql_num_rows($license) == 0) {
- require_once 'lisans.php';
- exit('');
- }
- }
- else {
- $xlm = $db->prepare('SELECT * FROM lisans WHERE kod = ? ');
- $xlm->execute([$lk]);
- $xml = $xlm->fetch(PDO::FETCH_ASSOC);
- if (!$xml) {
- require_once 'lisans.php';
- exit('');
- }
- }
- return true;
- }
- function remove_all()
- {
- global $baglan;
- global $db;
- if (isset($baglan)) {
- mysql_query('DELETE FROM lisans WHERE 1');
- mysql_query('DROP TABLE IF EXIST lisans');
- }
- if (isset($db)) {
- $db->query('DELETE FROM lisans WHERE 1')->fetch();
- $db->query('DROP TABLE IF EXIST lisans')->fetch();
- }
- return license_check();
- }
- function aktif($urlsi)
- {
- $mesaj = '';
- $url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
- if (strpos($url, $urlsi) !== false) {
- $mesaj = 'active';
- }
- return $mesaj;
- }
- function AktifLink($urlsi)
- {
- $aktif = '';
- if (strstr($_SERVER[HTTP_HOST] . '/' . $_SERVER[REQUEST_URI], $urlsi)) {
- $aktif = 'act-link';
- }
- return $aktif;
- }
- function kdv_fiyat($urun_fiyat, $urun_kdv)
- {
- $toplam = $urun_fiyat * ($urun_kdv / 100);
- return $toplam;
- ......................................................................
- .....................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement