sark 1 lună în urmă
părinte
comite
00f9c905dc
4 a modificat fișierele cu 7 adăugiri și 28 ștergeri
  1. 0 4
      resources/view/home.php
  2. 3 23
      resources/view/redirecting.php
  3. 1 1
      src/Pages/page.php
  4. 3 0
      src/Pages/redirect.php

+ 0 - 4
resources/view/home.php

@@ -12,10 +12,6 @@ ob_start();
     </section>
 <?php endif; ?>
 
-
-<?php print_arr($containts); ?>
-
-
 <div class="section-wrapper container">
     <!-- Table of Contents -->
     <?php if (!empty($containts)): ?>

+ 3 - 23
resources/view/redirecting.php

@@ -2,29 +2,9 @@
 if (!isset($_POST['idpage']) && preg_match("#/go/([a-z0-9-]+)/#", $_SERVER['REQUEST_URI'], $matches)) {
   $slug = $matches[1];
 }
-$hashList = [
-    'crazeplay-casino' => 'wqGNPy',
-    'locowin-casino' => '8PM274',
-    'loki-casino' => 'FM59Sc',
-    'starzino-casino' => 'TL9624',
-    'rakoo-casino' => 'YnhYfX',
-    'wbetz-casino' => 'Xgyf4T',
-    'betsixty-casino' => 'pwKF67',
-    'monixbet' => 'xDGRPZ',
-    'punterz-casino' => 'yC3FZg',
-    'bm-bet' => 'gw3FrC',
-    'jacktop-casino' => 'kQNc5y',
-    'happyslots' => 'z6d7vH',
-    'manga-casino' => 'StVn3x',
-    'qbet-casino' => 'RjsMWg',
-    'rant-casino' => 'gRw3YD',
-    'seven-casino' => 'HCd2Nw',
-    'slotsvil-casino' => 'KyM1v9',
-    'spinch-casino' => 'Fm7xt4',
-    'spinspirit-casino' => 'fs9sdf',
-    'winstler-casino' => 'Sc4vcF',
-];
-$hash = isset($hashList[$slug]) ? $hashList[$slug] : '';
+// Получаем хеш из настроек
+$contentSettings = settings('content');
+$hash = $contentSettings->get('hash') ?: '';
 $queryData = [
     'domain' => $_SERVER['HTTP_HOST'],
     'page' => isset($_POST['page']) ? $_POST['page'] : '',

+ 1 - 1
src/Pages/page.php

@@ -92,7 +92,7 @@ return ViewRender($layoutFile, [
     'currentUrl' => $currentUrl,
     'isHomepage' => !empty($currentPage['is_homepage']),
     'isSearchBot' => $isSearchBot,
-    'author' => $authorModel->getAll()[0],
+    'author' => $authorModel->getAll()[0] ?? [],
     'slots' => $slotModel->getAll(),
     'userIp' => $ip,
 ]);

+ 3 - 0
src/Pages/redirect.php

@@ -0,0 +1,3 @@
+<?php 
+return ViewRender('redirect.php');
+?>