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 parseMainDomain($domen)
- {
- if (strpos($domen, '://') !== false) {
- $explode_protocol = explode('://', $domen);
- unset($explode_protocol[0]);
- $explode_point = explode('.', $explode_protocol[1]);
- if ($explode_point[0] == 'www') {
- unset($explode_point[0]);
- }
- }
- else {
- $explode_point = explode('.', $domen);
- if ($explode_point[0] == 'www') {
- unset($explode_point[0]);
- }
- }
- $domen = array_values($explode_point);
- if (count($domen) == 2) {
- return implode('.', $domen);
- }
- else if (count($domen) == 3) {
- if (((mb_strlen($domen[1], 'UTF-8') == 2) || (mb_strlen($domen[1], 'UTF-8') == 3)) && ((mb_strlen($domen[2], 'UTF-8') == 2) || (mb_strlen($domen[2], 'UTF-8') == 3))) {
- return implode('.', $domen);
- }
- else {
- unset($domen[0]);
- return implode('.', $domen);
- }
- }
- else if (count($domen) == 4) {
- unset($domen[0]);
- return implode('.', $domen);
- }
- }
- session_start();
- define('unisitecms', true);
- $config = require 'config.php';
- include_once 'systems/classes/UniSite.php';
- $Main = new Main();
- $Profile = new Profile();
- $Geo = new Geo();
- $Banners = new Banners();
- $Banners->click();
- if (isset($_GET['logout'])) {
- unset($_SESSION['profile']);
- }
- if ($_SESSION['profile']) {
- $checkUser = findOne('uni_clients', 'clients_id=?', [intval($_SESSION['profile']['id'])]);
- if (!$checkUser) {
- unset($_SESSION['profile']);
- }
- }
- $pathinfo = pathinfo(explode('?', $_SERVER['REQUEST_URI'])[0], PATHINFO_EXTENSION);
- if ($pathinfo) {
- (new Main())->response(404);
- }
- if (isset($_GET['search']) && !$_GET['search']) {
- $link = ($_SESSION['geo']['alias'] ? _link($_SESSION['geo']['alias']) : _link($settings['country_default']));
- header('Location: ' . $link);
- exit();
- }
- if ($config['https']) {
- if (strpos($_SERVER['HTTP_CF_VISITOR'], 'https') === false) {
- if (!isset($_SERVER['HTTPS']) || ($_SERVER['HTTPS'] == 'off')) {
- $redirect_url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
- ...................................................................................
- ......................................................
- ...........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement