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 /* This file is protected by copyright law and provided under license. Reverse engin..
Decoded Output download
session_start();
require ("../config/config.php");
require ("../config/config_db.php");
require ("restrito.php");
$turma = $_GET['codTurma'];
if ($turma == '')
{
echo "['| - Selecione uma turma']";
exit;
}
$mes_atual = $_GET['mes'];
if ($mes_atual <= 0)
{
echo "['| - Selecione o mes']";
exit;
}
$ano_atual = $ano_pro;
function diaSemana($diaSemana){
switch ($diaSemana) {
case '0': $ret = 'Domingo';break;
case '1': $ret = 'Segunda';break;
case '2': $ret = 'Tera';break;
case '3': $ret = 'Quarta';break;
case '4': $ret = 'Quinta';break;
case '5': $ret = 'Sexta';break;
case '6': $ret = 'Sabado';break;
}
return $ret;
}
$sqlEvento = "
SELECT
DATA_EVE, AULA_EVE, DESCRICAO_EVE
FROM
EVENTO
WHERE
TURMA_EVE = '$turma' AND
ANO_EVE = '$ano_atual' AND
EXTRACT(MONTH FROM DATA_EVE) = '$mes_atual'
";
$queryEvento = &$conn->Execute($sqlEvento);
if ($queryEvento){
while(!$queryEvento->EOF){
$aDataEve[] = $queryEvento->UserDate($queryEvento->fields[0],"d/m/Y");
$aAulaEve[] = $queryEvento->fields[1];
$aDescEve[] = utf8_encode($queryEvento->fields[2]);
$queryEvento->MoveNext();
}
}else {
echo "['|Contate o suporte']";exit;
}
for ($a=1;$a<=(cal_days_in_month(CAL_GREGORIAN,$mes_atual,$ano_atual));$a++) {
$diaSemana = date("w",mktime(0,0,0,$mes_atual,$a,$ano_atual));
$data = date("d/m/Y",mktime(0,0,0,$mes_atual,$a,$ano_atual));
if (count($aDataEve) >0 &&in_array($data,$aDataEve)){
foreach($aDataEve as $key =>$dtEvento){
if ($dtEvento == $data &&$aAulaEve[$key] == 'S'){
$horario[] = $data."|".$data." - ".diaSemana($diaSemana);
}else if ($dtEvento == $data) {
$horario[] = "|".$aDescEve[$key];
}
}
}else if ($diaSemana != 0 &&$diaSemana != 6){
$horario[] = $data."|".$data." - ".diaSemana($diaSemana);
}
}
if (count($horario) >0){
$option = "['| - Selecione',";
$option .= "'".implode("', '",$horario)."'";
$option .= "]";
echo $option;
}else {
echo "['Nenhum Aluno Encontrado']";
}
;
Did this file decode correctly?
Original Code
<?php /* This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0xa08;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NGY5KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdBVng0WE10Z1c2SVBzTzBUR0xZbkR2OCtiZWxvYUUvSDJxd041S2lkU0Z5Wm1jMWt1anpVSjNCOWg3cFFScmZDPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dn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WtLqEtDSWiGkoYreWwjcl9LFo8DSsxuuP4Am6t3Ka3rqEgvqoxu5bYu5b87k+BMJE8MmIY5QxiKiWxqNo9v1Ex25bDLqEtMMEiDFW4huWxbil87Hb+6zb+5S6tLqEtXm6tMXb+LqL+eKIYKQxiekaivqbB2S6tMXb+LqL+eKWtMUWxLZe+52Tnh5egLMEiv1EtRF/uFFewAS6tLJL+eKodLkW4JrWxL5b+LqWxbi6tMVE8jqL+eK8zLZe+KEW4JrWxEn6zKQxwLSo96qaiKk83J2TYA5etMJbYhwHxW16tLqEtX1WwAcWxW1etKqDBvcb87qIxL5l8Mne83qoiXF0uFre8jUeYVFewAS6tLJL+eKodLkW4JrWxL5b+LqIYVQxwLSo96qaiKk83J2TYAwHxW16tMXe+ONL+eK8zLZe+KE0uFrxdJIH8vmaBD2l8b2IxL5l8Mne83qoiX2WnJ2sxAi6wL5l8Mne83qoiX2WnJ2OwKQxwLSo96qaiKk83J2TYA5etMJbYhwHxW16tLqEtX1WwAcWxW1etKqDBvcb87qIxL5l8Mne83qoiXF0uFrxdJIl8b2ItOkE87JIxLSo96qaiKkIYAfsxKQxwLkagLFoBh2TYAw8zERWxJ2DBvme8OFoB7K6zuw0uS5o9VJl8r1WxhrWxWdWw7Fo+VmoBLKIxWdPxAdWwu5ltrzb+6Foz51Wwaw0uS5o9VJl8r1WxhrWx6EWNmIe8OSozA5o9VJl8r10uFre8jUeYVQxivNltR2WKmdniv1lgvcWXMmE87kWXv1bBr1Eg6qetRd+YWQxdJI0u==_]TK|VuE{SMIJ\
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | 24ce3cd19e16e455ae406277b3d19653 |
Eval Count | 3 |
Decode Time | 104 ms |