Created
October 22, 2021 14:47
-
-
Save samhk222/aaad55a9607b74cfb0ede7b499553d93 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname(__FILE__) . '/auth/conn.php'; | |
$page = !isset($_GET['page']) ? 'index' : $_GET['page']; | |
$subpage = !isset($_GET['subpage']) ? '' : $_GET['subpage']; | |
$page_id = !isset($_GET['page_id']) ? '' : $_GET['page_id']; | |
$manutencao = 0; | |
for ($i = 1; $i <= 40; $i++) { | |
${"manutencao_page_" . $i} = ""; | |
} | |
if ($config->manutencao_page == $page_id) { | |
$manutencao = 1; | |
if (isset($_COOKIE['dev'])) { | |
$manutencao = 0; | |
} | |
} | |
switch ($config->manutencao_tipo) { | |
case 1: | |
$tipo_manutencao_badge = 'Manutenção'; | |
break; | |
case 2: | |
$tipo_manutencao_badge = 'Trypling'; | |
break; | |
case 3: | |
$tipo_manutencao_badge = 'Manutenção'; | |
break; | |
default: | |
$tipo_manutencao_badge = ''; | |
break; | |
} | |
${"manutencao_page_" . $config->manutencao_page} = '<span class="badge bg-dark rounded-pill small text-white d-flex center_all" twhite><div class="ui active inline loader loader_tryplo" style="margin-top: 2px;"></div><p twhite class="text-white" style="padding-left: 7px;"> ' . $tipo_manutencao_badge . '</p></span>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment