Skip to content

Instantly share code, notes, and snippets.

@samhk222
Created October 22, 2021 14:46
Show Gist options
  • Save samhk222/8fd451d244459e447e5d34043a0445da to your computer and use it in GitHub Desktop.
Save samhk222/8fd451d244459e447e5d34043a0445da to your computer and use it in GitHub Desktop.
Antes
<?php
require_once dirname(__FILE__) . '/auth/conn.php';
if (!isset($_GET['page'])) {
$page = 'index';
}else{
$page = $_GET['page'];
}
if (!isset($_GET['subpage'])) {
$subpage = '';
}else{
$subpage = $_GET['subpage'];
}
if (!isset($_GET['page_id'])) {
$page_id = '';
}else{
$page_id = $_GET['page_id'];
}
if (isset($_COOKIE['dev'])) {
echo "page id ".$page_id;
}
$manutencao = 0;
$manutencao_page_1 = '';
$manutencao_page_2 = '';
$manutencao_page_3 = '';
$manutencao_page_4 = '';
$manutencao_page_5 = '';
$manutencao_page_6 = '';
$manutencao_page_7 = '';
$manutencao_page_8 = '';
$manutencao_page_9 = '';
$manutencao_page_10 = '';
$manutencao_page_11 = '';
$manutencao_page_12 = '';
$manutencao_page_13 = '';
$manutencao_page_14 = '';
$manutencao_page_15 = '';
$manutencao_page_16 = '';
$manutencao_page_17 = '';
$manutencao_page_18 = '';
$manutencao_page_19 = '';
$manutencao_page_20 = '';
$manutencao_page_21 = '';
$manutencao_page_22 = '';
$manutencao_page_23 = '';
$manutencao_page_24 = '';
$manutencao_page_25 = '';
$manutencao_page_26 = '';
$manutencao_page_27 = '';
$manutencao_page_28 = '';
$manutencao_page_29 = '';
$manutencao_page_30 = '';
$manutencao_page_31 = '';
$manutencao_page_32 = '';
$manutencao_page_33 = '';
$manutencao_page_34 = '';
$manutencao_page_35 = '';
$manutencao_page_36 = '';
$manutencao_page_37 = '';
$manutencao_page_38 = '';
$manutencao_page_39 = '';
$manutencao_page_40 = '';
if ($config->manutencao_page == $page_id) {
$manutencao = 1;
if (isset($_COOKIE['dev'])) {
$manutencao = 0;
}
}
$tipo_manutencao = $config->manutencao_tipo;
if ($tipo_manutencao == 1) {
$tipo_manutencao_badge = 'Manutenção';
} elseif ($tipo_manutencao == 2) {
$tipo_manutencao_badge = 'Trypling';
} else{
$tipo_manutencao_badge = 'Manutenção';
}
if ($config->manutencao_page == 1) {
$manutencao_page_1 = '<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>';
}elseif ($config->manutencao_page == 2) {
$manutencao_page_2 = '<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>';
}elseif ($config->manutencao_page == 3) {
$manutencao_page_3 = '<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>';
}elseif ($config->manutencao_page == 4) {
$manutencao_page_4 = '<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>';
}elseif ($config->manutencao_page == 5) {
$manutencao_page_5 = '<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>';
}elseif ($config->manutencao_page == 6) {
$manutencao_page_6 = '<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>';
}elseif ($config->manutencao_page == 7) {
$manutencao_page_7 = '<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>';
}elseif ($config->manutencao_page == 8) {
$manutencao_page_8 = '<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>';
}elseif ($config->manutencao_page == 9) {
$manutencao_page_9 = '<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>';
}elseif ($config->manutencao_page == 10) {
$manutencao_page_10 = '<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>';
}elseif ($config->manutencao_page == 11) {
$manutencao_page_11 = '<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>';
}elseif ($config->manutencao_page == 12) {
$manutencao_page_12 = '<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>';
}elseif ($config->manutencao_page == 13) {
$manutencao_page_13 = '<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>';
}elseif ($config->manutencao_page == 14) {
$manutencao_page_14 = '<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>';
}elseif ($config->manutencao_page == 15) {
$manutencao_page_15 = '<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>';
}elseif ($config->manutencao_page == 16) {
$manutencao_page_16 = '<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>';
}elseif ($config->manutencao_page == 17) {
$manutencao_page_17 = '<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>';
}elseif ($config->manutencao_page == 18) {
$manutencao_page_18 = '<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>';
}elseif ($config->manutencao_page == 19) {
$manutencao_page_19 = '<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>';
}elseif ($config->manutencao_page == 20) {
$manutencao_page_20 = '<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>';
}elseif ($config->manutencao_page == 21) {
$manutencao_page_21 = '<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>';
}elseif ($config->manutencao_page == 22) {
$manutencao_page_22 = '<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>';
}elseif ($config->manutencao_page == 23) {
$manutencao_page_23 = '<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>';
}elseif ($config->manutencao_page == 24) {
$manutencao_page_24 = '<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>';
}elseif ($config->manutencao_page == 25) {
$manutencao_page_25 = '<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>';
}elseif ($config->manutencao_page == 26) {
$manutencao_page_26 = '<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>';
}elseif ($config->manutencao_page == 27) {
$manutencao_page_27 = '<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>';
}elseif ($config->manutencao_page == 28) {
$manutencao_page_28 = '<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>';
}elseif ($config->manutencao_page == 29) {
$manutencao_page_29 = '<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>';
}elseif ($config->manutencao_page == 30) {
$manutencao_page_30 = '<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>';
}elseif ($config->manutencao_page == 31) {
$manutencao_page_31 = '<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>';
}elseif ($config->manutencao_page == 32) {
$manutencao_page_32 = '<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>';
}elseif ($config->manutencao_page == 33) {
$manutencao_page_33 = '<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>';
}elseif ($config->manutencao_page == 34) {
$manutencao_page_34 = '<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>';
}elseif ($config->manutencao_page == 35) {
$manutencao_page_35 = '<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>';
}elseif ($config->manutencao_page == 36) {
$manutencao_page_36 = '<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>';
}elseif ($config->manutencao_page == 37) {
$manutencao_page_37 = '<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>';
}elseif ($config->manutencao_page == 38) {
$manutencao_page_38 = '<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>';
}elseif ($config->manutencao_page == 39) {
$manutencao_page_39 = '<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>';
}elseif ($config->manutencao_page == 40) {
$manutencao_page_40 = '<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