OwlCyberSecurity - MANAGER
Edit File: index.php
<?php include("includes/config.php"); include("includes/conexao.php"); $pgTitle = filter_input(INPUT_GET, 'pg') ? " Page " . filter_input(INPUT_GET, 'pg') : "" ; $paginacao = new Paginacao($db); # LISTA DE JOGOS EXCLUSIVO $games_exclusive = $db->prepare("SELECT idg FROM game WHERE publicado=true AND data_publicar <= NOW() AND exclusive=1 ORDER BY updated_at DESC LIMIT 5"); $games_exclusive->execute(); $games_exclusive = $games_exclusive->fetchAll(PDO::FETCH_CLASS); $games_exclusive_ids = []; foreach($games_exclusive as $x) { $games_exclusive_ids[] = $x->idg; } $games_exclusive_ids = implode(",", array_reverse($games_exclusive_ids)); $games_list = $paginacao->Registros("SELECT * FROM game WHERE publicado=true AND data_publicar <= NOW() ORDER BY FIELD(idg, {$games_exclusive_ids}) DESC, updated_at DESC"); $linksPaginacao = $paginacao->links(URL_BASE); $pageTitle = _t("Dress Up Games") ." - ". _t("Kawaii Games") . $pgTitle; $canonical = URL_BASE; ?> <!doctype html> <html> <head itemscope itemtype="https://schema.org/WebSite"> <meta charset="utf-8"> <title><?php echo $pageTitle?></title> <meta name="description" content="<?php echo $pgTitle . " " . _t("The best free girls games with the most cute dress up, avatar doll creators and coloring games of your favorite anime and cartoon characters.")?>"> <meta name="author" content="Heglaé Malheiros Maia"> <!--Ajudar a compartilhar no facebook--> <!--Tags para facebook--> <meta property="og:locale" content="en_us"> <meta property="og:url" content="<?= $canonical ?>"> <meta property="og:title" content="<?php echo $pageTitle?>"> <meta itemprop='name' property="og:site_name" content="<?php echo _t("Kawaii Games")?>"> <meta property="og:description" content= "<?php echo _t("The best free girls games with the most cute dress up, avatar doll creators and coloring games of your favorite anime and cartoon characters.")?>"> <meta property="og:image" content="//www.kawaiigames.net/kawaii_games_logo.fw.png"> <?php include ("includes/head.php"); ?> </head> <body id="comecoSite"> <!--LOGO E PROPAGANDA CABEÇALHO................................................................................................................................--> <?php include ("includes/topo.php"); ?> <!--REDES SOCIAIS................................................................................................................................--> <div class="container"> <div class="row"> <!--MENU-ESQUERDO................................................................................................................................--> <?php include ("includes/menu-esquerdo.php"); ?> <br> <!--CARROSEL................................................................................................................................--> <?php include ("includes/carrosel.php"); ?> <!--ADSENSE HORIZONTAL FIXO................................................................................................................................--> <div> <br/> </div> <div class="col-md-10 my-auto box-central text-center hidden-xs" style="margin-top: 20px;"> <!-- GOOGLE ADSENSE --> <!-- Banner Topo --> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- banner-responsivo-topo --> <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-6135483131884855" data-ad-slot="9554558465"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <br /> <div class="col-md-10 box-central" style="margin-top: 20px"> <!--New games.............................................................................................................................--> <h1 class="barra-rosa titulo"><?php echo _t("New Games")?></h1> <div class="text-center" itemscope itemtype="https://schema.org/Game"> <?php foreach ($games_list as $item) { include("includes/game-item.php"); }//fim foreach ?> <!--SCROLL UP--> <a href="#comecoSite" class="scroll"> <i class="glyphicon glyphicon-circle-arrow-up"></i> </a> </div> <!-- PAGINAÇÃO --> <?php echo $linksPaginacao; ?> </div> </div><!---ROW - REDES SOCIAIS--> </div><!---CONTAINER - REDES SOCIAIS--> <!--RODAPÉ................................................................................................................................--> <?php include ("includes/rodape.php"); ?> <!-- SNIGEL STICKY LEADERBOARD <h3>sticky_leaderboard<br><small>desktop: [728,90]</small></h3>--> <?php //include ("includes/snigel-stickerboard.php"); ?> <!-- INFOLINKS ADS--> <?php //include ("includes/infolinks-ads.php"); ?> </body> </html>