Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php @eval("?>".base64_decode("PD9waHAKc2Vzc2lvbl9zdGFydCgpOwpyZXF1aXJlX29uY2UoImNvbnRyb2..

Decoded Output download

?>b'<?php
session_start();
require_once("controles/usuarios.php");
require_once("controles/listas.php");
if (checarUsuario()) {
require_once("cabecalho.php");
$usuarios = listarUsuarios();
$listas = listarListas();
$buscar = ("SELECT * FROM usuario WHERE id_criador = ".$_SESSION[\'id_usuario\']." AND dia = 31");
$resut = mysqli_query($conexao, $buscar);
$credito2 = mysqli_num_rows($resut);
$buscar = "SELECT * FROM usuario WHERE id_usuario = ".$_SESSION[\'id_usuario\']."";
$resut = mysqli_query($conexao, $buscar);
while($usuario2 = mysqli_fetch_array($resut)){
$creditos = $credito2;
$credito = $usuario2[\'credito\'];}
?>
<style id="checkme">
	.page-2content {
	    padding-left: 240px !important;
		padding-right: 240px !important;
	}
	</style>
        <div id="conteudo-painel" style="padding-left: 0px;" class="table-responsive container">
			<?php if ($usuarios) { ?>
                <div class="mb-5 form-group float-right">
                </div>
				<div class="mb-5 form-group float-left">
                    <input type="text" class="pesquisar form-control" placeholder="Pesquisar...">
                </div>
			<table class=\'table table-bordered table-hover\'>
                    <caption>Testes</caption>
				<thead class="thead-light">
					<tr align="center">
						<th class=\'nomecol\' style="width: 10%" scope="col">Nome</th>
						<th class=\'nomecol\' style="width: 5%" scope="col">Login</th>
						<th class=\'nomecol\' style="width: 5%" scope="col">Senha</th>
						<th class=\'nomecol\' style="width: 1%" scope="col">Conexo</th>
						<th class=\'nomecol\' style="width: 5%" scope="col">Criador</th>
                        <th class=\'nomecol\' style="width: 5%" scope="col">Estado</th>
                        <th class=\'nomecol\' style="width: 12%" scope="col">Listas</th>
						<th class=\'nomecol\' style="width: 10%" scope="col">Expirar</th>
						<th class=\'nomecol\' style="width: 5%" scope="col">Opes</th>
					</tr>
				</thead>
                <tbody id="conteudo">
					<?php foreach($usuarios as $usuario) { ?>
					<?php
					if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
					$_SERVER[\'REMOTE_ADDR\'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
					}
					$ip = $_SERVER["REMOTE_ADDR"];
					$logs = ("SELECT * FROM logs WHERE id_usuario = ".$usuario[\'id_usuario\']." AND ip = \'$ip\' limit 1");
					$resut = mysqli_query($conexao, $logs);
					$log = mysqli_num_rows($resut);
					?>
                    <?php if ($usuario[\'dia\'] == 1){ ?>
					<?php if ($usuario[\'admin\'] == 0) if ($usuario[\'vendedor\'] == 0) { ?>
					<?php
					$hoje = date(\'Y-m-d\');
					$data = $usuario[\'data\'];
					$a = explode("-","$data");
					$b = explode("-","$hoje");
					$antiga= mktime(0, 0, 0, $b[1], $b[2], $b[0]);
					$atual= mktime(0, 0, 0, $a[1], $a[2], $a[0]);
					$diferenca= $atual-$antiga;
					$datas = floor($diferenca/84600);
				    $datas1 = "1"; $datas2 = $datas;
					if($datas1 <= $datas2){
					$id_usuario = $usuario[\'id_usuario\'];
					$estado = "1";
					$result = "UPDATE usuario SET estado_usuario=\'$estado\' WHERE id_usuario=\'$id_usuario\'";
					$atualiza = mysqli_query($conexao, $result);
					} else {
					$id_usuario = $usuario[\'id_usuario\'];
					$estado = "0";
                    $tipo = "0";
					$result = "UPDATE usuario SET vendedor=\'$tipo\', admin=\'$tipo\', estado_usuario=\'$estado\' WHERE id_usuario=\'$id_usuario\'";
					$atualiza = mysqli_query($conexao, $result);}
					?>
					<?php
                    $passwords = "SELECT * FROM passwords WHERE id_usuario = ".$usuario[\'id_usuario\']."";
                    $resut = mysqli_query($conexao, $passwords);
                    while($password = mysqli_fetch_array($resut)){
					?>
					<tr>
							<td align="center"> <?=$usuario[\'nome_usuario\']?> </td>
							<td align="center"> <?=$usuario[\'login_usuario\']?> </td>
							<td align="center"> <?php echo $password[\'senha\'];} ?> </td>
							<td align="center"> <?php if ($usuario[\'conectado\'] == 0) {echo "";} else {echo "".$log." / ".$usuario[\'conectado\']."";} ?> </td>
							<td align="center"> <?php echo $usuario[\'criador\'] ? $usuario[\'criador\'][\'nome_usuario\'] : \'Sistema\'; ?> </td>
                            <td align="center"> <?php if ($usuario[\'estado_usuario\'] == 1) { echo "Ativado"; } else { echo "Desativado"; } ?> </td>
							<td align="center"> <?php foreach (listasUsuario($usuario["id_usuario"]) as $lista) echo \'[ \'.$lista[\'nome_lista\'].\' ]\'; ?> </td>
							<td align="center"> <?php if ($usuario[\'estado_usuario\'] == 1) { echo "Dia ".$usuario["dia"].""; } else { echo "Expirou Dia ".$usuario["dia"].""; } ?> </td>
							</td>
                            <td style="display: contents;">
								<div class="dropdown">								
								<style>.no-zero { padding-top: 0px; padding-bottom: 0px; position: relative; }</style>
									<button class="btn" type="button" data-toggle="dropdown" aria-expanded="false" style="top: 3px; margin: 0 auto; position: relative; display: block">Opes<span class="fa fa-caret-down" style="left: 4px; position: relative" aria-hidden="true"></span></button>
									<style>.pointer { cursor: pointer; border:none }</style>
									<ul class="no-zero dropdown-menu pointer" x-placement="bottom-start">
									    <?php if($creditos <= $credito){ ?>
										<li align="center"><a class=\'btn btn-outline-secondary\' onclick="migrarConfirma(\'<?=$usuario[\'id_usuario\']?>\', \'<?=$usuario[\'nome_usuario\']; ?>\')" style="width: 100%;display: block;padding: 5px;top: -10px;"><i class="fas fa-user"></i> Migrar</a></li>										
					                    <?php } ?>
										<?php if($_SESSION[\'admin\']) { ?>
                                        <li align="center"><a class=\'btn btn-outline-secondary\' onclick="migrarConfirma(\'<?=$usuario[\'id_usuario\']?>\', \'<?=$usuario[\'nome_usuario\']; ?>\')" style="width: 100%;display: block;padding: 5px;top: -10px;"><i class="fas fa-user"></i> Migrar</a></li>
										<?php } ?>
										<li align="center"><a class=\'btn btn-outline-secondary\' onclick="verLogs(\'<?=$usuario[\'id_usuario\']?>\')" style="width: 100%; display: block; padding: 5px"><i class="fas fa-clipboard-list"></i> Logs</a></li>
										<li align="center"><a class=\'btn btn-outline-secondary\' onclick="removerConfirma(\'<?=$usuario[\'id_usuario\']?>\', \'<?=$usuario[\'nome_usuario\']; ?>\')" style="width: 100%; display: block; padding: 5px"><i class="far fa-trash-alt"></i> Excluir</a></li>
									</ul>
								</div>
							</td>
						</tr>
					<?php } ?>
					<?php } ?>
					<?php } ?>
				</tbody>
			</table>
        <?php
        }
        ?>
            </div>
             <div class="h3 mt-5 row align-items-center justify-content-center">
             <i onclick="$(\'#cadastro\').modal()" class="btn btn-outline-info text-dark fas fa-plus"></i>
        </div>
    </div>
  </main>
<!-- page-content" -->
</div>
<!-- Cadastro Inicio -->
<div class="modal fade" id="cadastro" tabindex="-1" role="dialog" aria-labelledby="Cadastrar" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="TituloModalLongoExemplo">Adicionar Teste</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Fechar">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <form id="cadastro-form">
            <div class="container">
                <div class="form-group">
                    <label>Nome:</label>
                    <input type="text" class="form-control" name="nome" placeholder="Nome" value="<?php $gerador = rand(8,8); $valor = substr(str_shuffle("abcdefghijlkmnopqrstuvxyzwABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $gerador); echo $valor; ?>">
                    <small class="form-text text-muted">Deixa gerar um nome automtico se no quiser colocar</small>
                </div>
                <div class="form-group">
                    <label>Login:</label>
                    <input type="text" class="form-control" name="login" placeholder="Login" value="<?php echo rand(1,999999);?>">
                    <small class="form-text text-muted">Deixa gerar um login automtico se no quiser colocar</small>
                </div>
                <div id="sC">
                    <div id="divSenhaC" class="form-group">
                    <label>Senha:</label>
                    <input type="password" class="form-control" name="senha" placeholder="Senha" value="<?php echo rand(1,999999);?>">
                    <small class="form-text text-muted">Deixa gerar uma senha automtico se no quiser colocar</small>
                </div>
                </div>
                <div class="form-group">
                    <label>Nvel:</label>
                    <div class="ml-0 row">
                        <select id="nivelC" class="selectpicker" title="Nvel">
						    <option value="admin" hidden></option>
                            <option value="vendedor" hidden></option>
							<option value="cliente">Cliente</option>
                        </select>
                    </div>
                </div>
                <div class="form-group" style="display: none">
                    <label>Administrador:</label>
                    <div class="ml-0 row">
                        <select value="0" id="adminC" class="selectpicker" title="Administrador" name="admin" required>
                            <option value="1">Sim</option>
                            <option value="0">No</option>
                        </select>
                    </div>
                </div>
                <div class="form-group" style="display: none">
                    <label>Vendedor:</label>
                    <div class="ml-0 row">
                        <select value="0" id="vendedorC" class="selectpicker" title="Vendedor" name="vendedor" required>
                            <option value="1">Sim</option>
                            <option value="0">No</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label>Listas:</label>
                    <div class="ml-0 row">
                        <select name="lista" class="selectpicker" title="Listas" multiple>
                        <?php if ($listas) { foreach ($listas as $lista) {?>
                        <option value="<?=$lista[\'id_lista\']?>"><?=$lista[\'nome_lista\']?></option>
                    <?php  } 
                    } ?>
                        </select>
                    </div>
                </div>
                <button type="none" onclick="addForce()" class="btn btn-danger">Adicionar</button>
            </div>
        </form>
      </div>
    </div>
  </div>
</div>
<!-- Cadastro Fim-->
<!-- Remove Inicio -->
<div class="modal fade" id="remover" tabindex="-1" role="dialog" aria-labelledby="Cadastrar" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title">Tem certeza?</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Fechar">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div id="remover-conteudo" class="modal-body"></div>
    </div>
  </div>
</div>
<!-- Remove Fim-->
<?php if($_SESSION[\'admin\']) { ?>
<!-- Migrar Inicio -->
<div class="modal fade" id="migrar" tabindex="-1" role="dialog" aria-labelledby="Cadastrar" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title">Migrar para Usurio</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Fechar">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div id="migrar-conteudo" class="modal-body"></div>
    </div>
  </div>
</div>
<!-- Migrar Fim-->
<?php } ?>
<?php if($creditos <= $credito){ ?>
<!-- Migrar Inicio -->
<div class="modal fade" id="migrar" tabindex="-1" role="dialog" aria-labelledby="Cadastrar" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title">Migrar para Usurio</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Fechar">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div id="migrar-conteudo" class="modal-body"></div>
    </div>
  </div>
</div>
<!-- Migrar Fim-->
<?php } ?>
</body>
<script>
    var clone = $("#divSenha").clone();
    var cloneC = $("#divSenhaC").clone();
    //$("#divSenhaC").remove();

    $("#cadastro").on(\'hidden.bs.modal\', function (e) {
        if ($( "#adminC" ).val() != 1) {
            //$("#sC").empty();//DO_NOTHING
        }
    });

    $( "#adminC" ).change(function() {
        if ($( "#adminC" ).val() == 1) {
            $("#sC").append(cloneC);
        } else {
            $("#sC").empty();
        }
    });
	
    function removerConfirma(id,nome) {
        $(\'#remover-conteudo\').html(\'<div class="alert alert-danger" role="alert"><strong> Remover </strong>\' + nome + \'?</div><button onclick="remover(\' + id + \')" type="submit" class="btn btn-danger float-right">Remover</button>\');
        $(\'#remover\').modal();
    }
	
	function migrarConfirma(id,nome) {
        $(\'#migrar-conteudo\').html(\'<div class="alert alert-warning" role="alert"><strong> Deseja Migrar o Teste </strong>\' + nome + \' Usurio? <br /> Voc no poder Desfazer essa operao.</div><button onclick="migrar(\' + id + \')" type="submit" class="btn btn-success">Sim, Prossiga!</button>\');
        $(\'#migrar\').modal();
    }
	
    function editarConfirma(dia, id,nome,contato,login,estado,admin, vendedor, lista) {
	if(parseInt(dia) > 0){
	   $(\'#dia\').val(parseInt(dia));
	} else {
	   $(\'#dia\').val(\'\');
	}
        $(\'#idE\').val(id);
        $(\'#nomeE\').val(nome);
        $(\'#nivelE\').val(parseInt(vendedor) == 1 ? \'vendedor\' : (parseInt(admin) == 1) ? \'admin\' : \'cliente\');
        setTimeout(() => {
            $(\'#nivelE\').val(parseInt(vendedor) == 1 ? \'vendedor\' : (parseInt(admin) == 1) ? \'admin\' : \'cliente\');
            $(\'*[data-id=nivelE]\').text(parseInt(vendedor) == 1 ? \'vendedor\' : (parseInt(admin) == 1) ? \'admin\' : \'cliente\');
        }, 500);
        $(\'#contatoE\').val(contato);
        $(\'#loginE\').val(login);
        $(\'#estadoE\').val(estado);
        $(\'#estadoE\').selectpicker(\'render\');
        $(\'#adminE\').val(admin);
        $(\'#adminE\').selectpicker(\'render\');
        if (parseInt(admin) == 0) {
	    console.log(parseInt(vendedor) !== 1);
	    if(parseInt(vendedor) !== 1){
		$(\'#exdiaE\').show();
		$(\'#CreditoC\').show();
		$(\'#ConectadoE\').show();
	    } else {
		$(\'#exdiaE\').hide();
		$(\'#CreditoE\').hide();
		$(\'#ConectadoE\').hide();
	    }
            //$(\'#divSenha\').remove();
        } else if ($(\'#divSenha\').length < 1) {
            $(\'#s\').append(clone);
        }
        $(\'#listaE\').val(lista);
        $(\'#listaE\').selectpicker(\'render\');
        $(\'#editar\').modal();
    }
    var addForce = function(){
        $( "#cadastro-form" ).trigger(\'submit\');
    };
    var added = false;
    $( "#cadastro-form" ).submit(function( event ) {
        if(!added){
            added = true;
            if($(\'#cadastro-form select[name="vendedor"]\').val().trim() == ""){
                $(\'#cadastro-form select[name="vendedor"]\').val(0);
            }
            if($(\'#cadastro-form select[name="admin"]\').val().trim() == ""){
                $(\'#cadastro-form select[name="admin"]\').val(0);
            }
            $.ajax({
                type: "POST",
                url: "controles/adicionar-teste.php",
                data: $("#cadastro-form").serialize(),
                success: function(data) {
                    location.reload();
                },
                error: function(data) {
                  resultado(data.responseText);
                }
            });
        }
        event.preventDefault();
    });
    var eddited = false;
    var forceEdit = function(){
        $( "#editar-form" ).trigger(\'submit\');
    }
    $( "#editar-form" ).submit(function( event ) {
        if(!eddited){
            eddited = true;
            if($(\'#editar-form select[name="vendedor"]\').val().trim() == ""){
                $(\'#editar-form select[name="vendedor"]\').val(0);
            }
            if($(\'#editar-form select[name="admin"]\').val().trim() == ""){
                $(\'#editar-form select[name="admin"]\').val(0);
            }
            $.ajax({
                type: "POST",
                url: "controles/editar-usuario.php",
                data: $("#editar-form").serialize(),
                success: function(data) {
                    location.reload();
                },
                error: function(data) {
                  resultado(data.responseText);
                }
            });
        }
        event.preventDefault();
    });
    <?php if($_SESSION[\'admin\']) { ?>
	  $(\'#vendedorC\').val(0);
      $(\'#adminC\').val(1);
    <?php } ?>

    $(\'#nivelC\').on(\'change\', function(){
       var value = $(this).val();
       $(\'#sC\').empty();
       if(value == \'vendedor\'){
           $(\'#adminC\').val(0);
           $(\'#vendedorC\').val(1);
		   $(\'#CreditoC\').val(1);
           $("#sC").append(cloneC);
	   $(\'#exdiaC\').hide();
	   $(\'#ConectadoC\').hide();
       } else if (value == \'admin\'){
           $(\'#adminC\').val(1);
           $(\'#vendedorC\').val(0);
           $("#sC").append(cloneC);
	   $(\'#exdiaC\').hide();
	   $(\'#ConectadoC\').hide();
       } else {
           $(\'#adminC\').val(0);
           $(\'#vendedorC\').val(0);
	   $("#sC").append(cloneC);	   
	   $(\'#exdiaC\').show();
	   $(\'#ConectadoC\').show();
       }
    });
function setCookie(name,value,days) {
    var expires = "";
    if (days) {
        var date = new Date();
        date.setTime(date.getTime() + (days*24*60*60*1000));
        expires = "; expires=" + date.toUTCString();
    }
    document.cookie = name + "=" + (value || "")  + expires + "; path=/";
}
function getCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(\';\');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==\' \') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
}
function eraseCookie(name) {   
    document.cookie = name+\'=; Max-Age=-99999999;\';  
}
    function logar(id){
	if(!getCookie(\'original\')){
	   setCookie(\'original\', <?php echo $_SESSION[\'id_usuario\'] ?>, 1);	
	}
	$.get(\'controles/forcar-login.php?id_usuario=\' + id, function(){
	   window.location.reload();
        });
    }
	function remover(id){
        window.location.href = \'controles/remover-teste.php?id_usuario=\' + id;
    }
	function migrar(id){
        window.location.href = \'controles/migrar-usuario.php?id_usuario=\' + id;
    }
    function verLogs(id){
        window.location.href = \'log.php?id_usuario=\' + id;
    }
    $(\'#nivelE\').on(\'change\', function(){
       var value = $(this).val();
       if(value == \'vendedor\'){
           $(\'#adminE\').val(0);
           $(\'#vendedorE\').val(1);
           $("#s").append(clone);
	   $(\'#exdiaE\').hide();
	   $(\'#CreditoE\').hide();
	   $(\'#ConectadoE\').hide();
       } else if (value == \'admin\') {
           $(\'#adminE\').val(1);
           $(\'#vendedorE\').val(0); 
           $("#s").append(clone);
	   $(\'#exdiaE\').hide();
	   $(\'#CreditoE\').hide();
	   $(\'#ConectadoE\').hide();
       } else {
           $(\'#adminE\').val(0);
           $(\'#vendedorE\').val(0);
           $("#s").append(clone);
	   $(\'#exdiaE\').show();
	   $(\'#CreditoE\').show();
	   $(\'#ConectadoE\').show();
       }
    });
    if(window.mobilecheck()){
	$(\'#checkme\').remove();
    }
    $(\'.thead-light th:not(".nomecol")\').remove();
</script>
<?php require_once("comum.php"); 
require_once("alerta.php");?>

</html>
<?php 
} else {
    header("Location: index.php");
    die();
}
?>'

Did this file decode correctly?

Original Code

<?php @eval("?>".base64_decode("PD9waHAKc2Vzc2lvbl9zdGFydCgpOwpyZXF1aXJlX29uY2UoImNvbnRyb2xlcy91c3Vhcmlvcy5waHAiKTsKcmVxdWlyZV9vbmNlKCJjb250cm9sZXMvbGlzdGFzLnBocCIpOwppZiAoY2hlY2FyVXN1YXJpbygpKSB7CnJlcXVpcmVfb25jZSgiY2FiZWNhbGhvLnBocCIpOwokdXN1YXJpb3MgPSBsaXN0YXJVc3VhcmlvcygpOwokbGlzdGFzID0gbGlzdGFyTGl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AgIDwvZGl2PgogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZm9ybS1ncm91cCIgc3R5bGU9ImRpc3BsYXk6IG5vbmUiPgogICAgICAgICAgICAgICAgICAgIDxsYWJlbD5BZG1pbmlzdHJhZG9yOjwvbGFiZWw+CiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibWwtMCByb3ciPgogICAgICAgICAgICAgICAgICAgICAgICA8c2VsZWN0IHZhbHVlPSIwIiBpZD0iYWRtaW5DIiBjbGFzcz0ic2VsZWN0cGlja2VyIiB0aXRsZT0iQWRtaW5pc3RyYWRvciIgbmFtZT0iYWRtaW4iIHJlcXVpcmVkPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0iMSI+U2ltPC9vcHRpb24+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8b3B0aW9uIHZhbHVlPSIwIj5Ow6NvPC9vcHRpb24+CiAgICAgICAgICAgICAgICAgICAgICAgIDwvc2VsZWN0PgogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJmb3JtLWdyb3VwIiBzdHlsZT0iZGlzcGxheTogbm9uZSI+CiAgICAgICAgICAgICAgICAgICAgPGxhYmVsPlZlbmRlZG9yOjwvbGFiZWw+CiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0ibWwtMCByb3ciPgogICAgICAgICAgICAgICAgICAgICAgICA8c2VsZWN0IHZhbHVlPSIwIiBpZD0idmVuZGVkb3JDIiBjbGFzcz0ic2VsZWN0cGlja2VyIiB0aXRsZT0iVmVuZGVkb3IiIG5hbWU9InZlbmRlZG9yIiByZXF1aXJlZD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxvcHRpb24gdmFsdWU9IjEiPlNpbTwvb3B0aW9uPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0iMCI+TsOjbzwvb3B0aW9uPgogICAgICAgICAgICAgICAgICAgICAgICA8L3NlbGVjdD4KICAgICAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0iZm9ybS1ncm91cCI+CiAgICAgICAgICAgICAgICAgICAgPGxhYmVsPkxpc3Rhczo8L2xhYmVsPgogICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9Im1sLTAgcm93Ij4KICAgICAgICAgICAgICAgICAgICAgICAgPHNlbGVjdCBuYW1lPSJsaXN0YSIgY2xhc3M9InNlbGVjdHBpY2tlciIgdGl0bGU9Ikxpc3RhcyIgbXVsdGlwbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDw/cGhwIGlmICgkbGlzdGFzKSB7IGZvcmVhY2ggKCRsaXN0YXMgYXMgJGxpc3RhKSB7Pz4KICAgICAgICAgICAgICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0iPD89JGxpc3RhWydpZF9saXN0YSddPz4iPjw/PSRsaXN0YVsnbm9tZV9saXN0YSddPz48L29wdGlvbj4KICAgICAgICAgICAgICAgICAgICA8P3BocCAgfSAKICAgICAgICAgICAgICAgICAgICB9ID8+CiAgICAgICAgICAgICAgICAgICAgICAgIDwvc2VsZWN0PgogICAgICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICA8YnV0dG9uIHR5cGU9Im5vbmUiIG9uY2xpY2s9ImFkZEZvcmNlKCkiIGNsYXNzPSJidG4gYnRuLWRhbmdlciI+QWRpY2lvbmFyPC9idXR0b24+CiAgICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvZm9ybT4KICAgICAgPC9kaXY+CiAgICA8L2Rpdj4KICA8L2Rpdj4KPC9kaXY+CjwhLS0gQ2FkYXN0cm8gRmltLS0+CjwhLS0gUmVtb3ZlIEluaWNpbyAtLT4KPGRpdiB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VjdGFkb0UnKS5oaWRlKCk7CgkgICAgfQogICAgICAgICAgICAvLyQoJyNkaXZTZW5oYScpLnJlbW92ZSgpOwogICAgICAgIH0gZWxzZSBpZiAoJCgnI2RpdlNlbmhhJykubGVuZ3RoIDwgMSkgewogICAgICAgICAgICAkKCcjcycpLmFwcGVuZChjbG9uZSk7CiAgICAgICAgfQogICAgICAgICQoJyNsaXN0YUUnKS52YWwobGlzdGEpOwogICAgICAgICQoJyNsaXN0YUUnKS5zZWxlY3RwaWNrZXIoJ3JlbmRlcicpOwogICAgICAgICQoJyNlZGl0YXInKS5tb2RhbCgpOwogICAgfQogICAgdmFyIGFkZEZvcmNlID0gZnVuY3Rpb24oKXsKICAgICAgICAkKCAiI2NhZGFzdHJvLWZvcm0iICkudHJpZ2dlcignc3VibWl0Jyk7CiAgICB9OwogICAgdmFyIGFkZGVkID0gZmFsc2U7CiAgICAkKCAiI2NhZGFzdHJvLWZvcm0iICkuc3VibWl0KGZ1bmN0aW9uKCBldmVudCApIHsKICAgICAgICBpZighYWRkZWQpewogICAgICAgICAgICBhZGRlZCA9IHRydWU7CiAgICAgICAgICAgIGlmKCQoJyNjYWRhc3Ryby1mb3JtIHNlbGVjdFtuYW1lPSJ2ZW5kZWRvciJdJykudmFsKCkudHJpbSgpID09ICIiKXsKICAgICAgICAgICAgICAgICQoJyNjYWRhc3Ryby1mb3JtIHNlbGVjdFtuYW1lPSJ2ZW5kZWRvciJdJykudmFsKDApOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmKCQoJyNjYWRhc3Ryby1mb3JtIHNlbGVjdFtuYW1lPSJhZG1pbiJdJykudmFsKCkudHJpbSgpID09ICIiKXsKICAgICAgICAgICAgICAgICQoJyNjYWRhc3Ryby1mb3JtIHNlbGVjdFtuYW1lPSJhZG1pbiJdJykudmFsKDApOwogICAgICAgICAgICB9CiAgICAgICAgICAgICQuYWpheCh7CiAgICAgICAgICAgICAgICB0eXBlOiAiUE9TVCIsCiAgICAgICAgICAgICAgICB1cmw6ICJjb250cm9sZXMvYWRpY2lvbmFyLXRlc3RlLnBocCIsCiAgICAgICAgICAgICAgICBkYXRhOiAkKCIjY2FkYXN0cm8tZm9ybSIpLnNlcmlhbGl6ZSgpLAogICAgICAgICAgICAgICAgc3VjY2VzczogZnVuY3Rpb24oZGF0YSkgewogICAgICAgICAgICAgICAgICAgIGxvY2F0aW9uLnJlbG9hZCgpOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGVycm9yOiBmdW5jdGlvbihkYXRhKSB7CiAgICAgICAgICAgICAgICAgIHJlc3VsdGFkbyhkYXRhLnJlc3BvbnNlVGV4dCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpOwogICAgfSk7CiAgICB2YXIgZWRkaXRlZCA9IGZhbHNlOwogICAgdmFyIGZvcmNlRWRpdCA9IGZ1bmN0aW9uKCl7CiAgICAgICAgJCggIiNlZGl0YXItZm9ybSIgKS50cmlnZ2VyKCdzdWJtaXQnKTsKICAgIH0KICAgICQoICIjZWRpdGFyLWZvcm0iICkuc3VibWl0KGZ1bmN0aW9uKCBldmVudCApIHsKICAgICAgICBpZighZWRkaXRlZCl7CiAgICAgICAgICAgIGVkZGl0ZWQgPSB0cnVlOwogICAgICAgICAgICBpZigkKCcjZWRpdGFyLWZvcm0gc2VsZWN0W25hbWU9InZlbmRlZG9yIl0nKS52YWwoKS50cmltKCkgPT0gIiIpewogICAgICAgICAgICAgICAgJCgnI2VkaXRhci1mb3JtIHNlbGVjdFtuYW1lPSJ2ZW5kZWRvciJdJykudmFsKDApOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmKCQoJyNlZGl0YXItZm9ybSBzZWxlY3RbbmFtZT0iYWRtaW4iXScpLnZhbCgpLnRyaW0oKSA9PSAiIil7CiAgICAgICAgICAgICAgICAkKCcjZWRpdGFyLWZvcm0gc2VsZWN0W25hbWU9ImFkbWluIl0nKS52YWwoMCk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgJC5hamF4KHsKICAgICAgICAgICAgICAgIHR5cGU6ICJQT1NUIiwKICAgICAgICAgICAgICAgIHVybDogImNvbnRyb2xlcy9lZGl0YXItdXN1YXJpby5waHAiLAogICAgICAgICAgICAgICAgZGF0YTogJCgiI2VkaXRhci1mb3JtIikuc2VyaWFsaXplKCksCiAgICAgICAgICAgICAgICBzdWNjZXNzOiBmdW5jdGlvbihkYXRhKSB7CiAgICAgICAgICAgICAgICAgICAgbG9jYXRpb24ucmVsb2FkKCk7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgZXJyb3I6IGZ1bmN0aW9uKGRhdGEpIHsKICAgICAgICAgICAgICAgICAgcmVzdWx0YWRvKGRhdGEucmVzcG9uc2VUZXh0KTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7CiAgICB9KTsKICAgIDw/cGhwIGlmKCRfU0VTU0lPTlsnYWRtaW4nXSkgeyA/PgoJICAkKCcjdmVuZGVkb3JDJykudmFsKDApOwogICAgICAkKCcjYWRtaW5DJykudmFsKDEpOwogICAgPD9waHAgfSA/PgoKICAgICQoJyNuaXZlbEMnKS5vbignY2hhbmdlJywgZnVuY3Rpb24oKXsKICAgICAgIHZhciB2YWx1ZSA9ICQodGhpcykudmFsKCk7CiAgICAgICAkKCcjc0MnKS5lbXB0eSgpOwogICAgICAgaWYodmFsdWUgPT0gJ3ZlbmRlZG9yJyl7CiAgICAgICAgICAgJCgnI2FkbWluQycpLnZhbCgwKTsKICAgICAgICAgICAkKCcjdmVuZGVkb3JDJykudmFsKDEpOwoJCSAgICQoJyNDcmVkaXRvQycpLnZhbCgxKTsKICAgICAgICAgICAkKCIjc0MiKS5hcHBlbmQoY2xvbmVDKTsKCSAgICQoJyNleGRpYUMnKS5oaWRlKCk7CgkgICAkKCcjQ29uZWN0YWRvQycpLmhpZGUoKTsKICAgICAgIH0gZWxzZSBpZiAodmFsdWUgPT0gJ2FkbWluJyl7CiAgICAgICAgICAgJCgnI2FkbWluQycpLnZhbCgxKTsKICAgICAgICAgICAkKCcjdmVuZGVkb3JDJykudmFsKDApOwogICAgICAgICAgICQoIiNzQyIpLmFwcGVuZChjbG9uZUMpOwoJICAgJCgnI2V4ZGlhQycpLmhpZGUoKTsKCSAgICQoJyNDb25lY3RhZG9DJykuaGlkZSgpOwogICAgICAgfSBlbHNlIHsKICAgICAgICAgICAkKCcjYWRtaW5DJykudmFsKDApOwogICAgICAgICAgICQoJyN2ZW5kZWRvckMnKS52YWwoMCk7CgkgICAkKCIjc0MiKS5hcHBlbmQoY2xvbmVDKTsJICAgCgkgICAkKCcjZXhkaWFDJykuc2hvdygpOwoJICAgJCgnI0NvbmVjdGFkb0MnKS5zaG93KCk7CiAgICAgICB9CiAgICB9KTsKZnVuY3Rpb24gc2V0Q29va2llKG5hbWUsdmFsdWUsZGF5cykgewogICAgdmFyIGV4cGlyZXMgPSAiIjsKICAgIGlmIChkYXlzKSB7CiAgICAgICAgdmFyIGRhdGUgPSBuZXcgRGF0ZSgpOwogICAgICAgIGRhdGUuc2V0VGltZShkYXRlLmdldFRpbWUoKSArIChkYXlzKjI0KjYwKjYwKjEwMDApKTsKICAgICAgICBleHBpcmVzID0gIjsgZXhwaXJlcz0iICsgZGF0ZS50b1VUQ1N0cmluZygpOwogICAgfQogICAgZG9jdW1lbnQuY29va2llID0gbmFtZSArICI9IiArICh2YWx1ZSB8fCAiIikgICsgZXhwaXJlcyArICI7IHBhdGg9LyI7Cn0KZnVuY3Rpb24gZ2V0Q29va2llKG5hbWUpIHsKICAgIHZhciBuYW1lRVEgPSBuYW1lICsgIj0iOwogICAgdmFyIGNhID0gZG9jdW1lbnQuY29va2llLnNwbGl0KCc7Jyk7CiAgICBmb3IodmFyIGk9MDtpIDwgY2EubGVuZ3RoO2krKykgewogICAgICAgIHZh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pLm9uKCdjaGFuZ2UnLCBmdW5jdGlvbigpewogICAgICAgdmFyIHZhbHVlID0gJCh0aGlzKS52YWwoKTsKICAgICAgIGlmKHZhbHVlID09ICd2ZW5kZWRvcicpewogICAgICAgICAgICQoJyNhZG1pbkUnKS52YWwoMCk7CiAgICAgICAgICAgJCgnI3ZlbmRlZG9yRScpLnZhbCgxKTsKICAgICAgICAgICAkKCIjcyIpLmFwcGVuZChjbG9uZSk7CgkgICAkKCcjZXhkaWFFJykuaGlkZSgpOwoJICAgJCgnI0NyZWRpdG9FJykuaGlkZSgpOwoJICAgJCgnI0NvbmVjdGFkb0UnKS5oaWRlKCk7CiAgICAgICB9IGVsc2UgaWYgKHZhbHVlID09ICdhZG1pbicpIHsKICAgICAgICAgICAkKCcjYWRtaW5FJykudmFsKDEpOwogICAgICAgICAgICQoJyN2ZW5kZWRvckUnKS52YWwoMCk7IAogICAgICAgICAgICQoIiNzIikuYXBwZW5kKGNsb25lKTsKCSAgICQoJyNleGRpYUUnKS5oaWRlKCk7CgkgICAkKCcjQ3JlZGl0b0UnKS5oaWRlKCk7CgkgICAkKCcjQ29uZWN0YWRvRScpLmhpZGUoKTsKICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgJCgnI2FkbWluRScpLnZhbCgwKTsKICAgICAgICAgICAkKCcjdmVuZGVkb3JFJykudmFsKDApOwogICAgICAgICAgICQoIiNzIikuYXBwZW5kKGNsb25lKTsKCSAgICQoJyNleGRpYUUnKS5zaG93KCk7CgkgICAkKCcjQ3JlZGl0b0UnKS5zaG93KCk7CgkgICAkKCcjQ29uZWN0YWRvRScpLnNob3coKTsKICAgICAgIH0KICAgIH0pOwogICAgaWYod2luZG93Lm1vYmlsZWNoZWNrKCkpewoJJCgnI2NoZWNrbWUnKS5yZW1vdmUoKTsKICAgIH0KICAgICQoJy50aGVhZC1saWdodCB0aDpub3QoIi5ub21lY29sIiknKS5yZW1vdmUoKTsKPC9zY3JpcHQ+Cjw/cGhwIHJlcXVpcmVfb25jZSgiY29tdW0ucGhwIik7IApyZXF1aXJlX29uY2UoImFsZXJ0YS5waHAiKTs/PgoKPC9odG1sPgo8P3BocCAKfSBlbHNlIHsKICAgIGhlYWRlcigiTG9jYXRpb246IGluZGV4LnBocCIpOwogICAgZGllKCk7Cn0KPz4="));//Generated by Ampare PHP Encoder. For more security please use php protect before encode the php program

Function Calls

base64_decode 1

Variables

None

Stats

MD5 20e96bb4a3ac02d8cde94ca5f7318a9b
Eval Count 1
Decode Time 104 ms