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 //DROP TABLE 1 - 2 //CREATE TABLE 1 - 2 include_once "../../../614_baglan.php..
Decoded Output download
<?php
//DROP TABLE 1 - 2
//CREATE TABLE 1 - 2
include_once "../../../614_baglan.php";
//*********************************************************************
//Drop Table 1
if(mysql_query("DROP TABLE 614_2t_odevt01"))
{
echo "";
}
else
{
echo " " . mysql_error();
}
//Drop Table 2
if(mysql_query("DROP TABLE 614_2t_odevt02"))
{
echo "";
}
else
{
echo "" . mysql_error();
}
//*********************************************************************
//Crete Table 1
$sql1 = "CREATE TABLE 614_2t_odevt01
(
tcno int,
adsoyad varchar(15),
unique index (tcno)
)";
// Execute query
if(mysql_query($sql1))
{
echo "";
}
else
{
echo "" . mysql_error();
//Crete Table 2
$sql2 = "CREATE TABLE 614_2t_odevt02
(
tcno int,
adsoyad varchar(30),
il varchar(30),
kilo int,
boy int,
yas int,
maas int,
unique index (tcno)
)";
// Execute query
if(mysql_query($sql2))
{
echo "";
}
else
{
echo "" . mysql_error();
}
//********************************************************************
mysql_query("insert into 614_2t_odevt01 (tcno,adsoyad) values(12,'Enes')");
mysql_query("insert into 614_2t_odevt01 (tcno,adsoyad) values(14,'Ali')");
mysql_query("insert into 614_2t_odevt01 (tcno,adsoyad) values(16,'Omer')");
mysql_query("insert into 614_2t_odevt02 (tcno,il,kilo,boy,yas,maas) values(12,'Istanbul',75,180,20,3000)");
mysql_query("insert into 614_2t_odevt02 (tcno,il,kilo,boy,yas,maas) values(14,'Izmir',70,175,21,3000)");
mysql_query("insert into 614_2t_odevt02 (tcno,il,kilo,boy,yas,maas) values(16,'Manisa',65,170,21,2000)");
$sonuc=mysql_query("select
614_2t_odevt01.tcno, 614_2t_odevt01.adsoyad, 614_2t_odevt02.il, 614_2t_odevt02.kilo, 614_2t_odevt02.boy, 614_2t_odevt02.yas,614_2t_odevt02.maas
from 614_2t_odevt01, 614_2t_odevt02
where 614_2t_odevt01.tcno=614_2t_odevt02.tcno
order by 614_2t_odevt01.tcno");
if(mysql_error()){
echo "MySql hatasi: " . mysql_error();
exit;
} else {
$kayitsay=mysql_num_rows($sonuc);
if ($kayitsay > 0) {
print "<html><table border=1>";
print "<tr><td>SN</td><td>TCNO</td><td>ADSOYAD</td><td>IL</td><td>KILO</td><td>BOY</td><td>YAS</td><td>MAAS</td><td>DURUM</td>
</tr>";
for ($i = 0; $i < $kayitsay; $i++) {
$tcno=mysql_result($sonuc,$i,tcno);
$adsoyad=mysql_result($sonuc,$i,'adsoyad');
$il=mysql_result($sonuc,$i,il);
$kilo=mysql_result($sonuc,$i,kilo);
$boy=mysql_result($sonuc,$i,boy);
$yas=mysql_result($sonuc,$i,yas);
$maas=mysql_result($sonuc,$i,maas);
$vki=($boy/100)*($boy/100)/$kilo;
if($vki>25){
$durum="Zayif";
}
else{
$durum="Sisman";
}
$s=$i+1;
print "<tr><td>$s</td><td>$tcno</td><td>$adsoyad</td><td>$il</td><td>$kilo</td><td>$boy</td><td>$yas</td><td>$maas</td><td>$durum</td>
</tr>";
} //for
print "</table></html>"; mysql_close();
} else {
print "Kayit yok. Kayitsay=$kayitsay<br />"; mysql_close(); break;
} //if
} //if
?>
Did this file decode correctly?
Original Code
<?php
//DROP TABLE 1 - 2
//CREATE TABLE 1 - 2
include_once "../../../614_baglan.php";
//*********************************************************************
//Drop Table 1
if(mysql_query("DROP TABLE 614_2t_odevt01"))
{
echo "";
}
else
{
echo " " . mysql_error();
}
//Drop Table 2
if(mysql_query("DROP TABLE 614_2t_odevt02"))
{
echo "";
}
else
{
echo "" . mysql_error();
}
//*********************************************************************
//Crete Table 1
$sql1 = "CREATE TABLE 614_2t_odevt01
(
tcno int,
adsoyad varchar(15),
unique index (tcno)
)";
// Execute query
if(mysql_query($sql1))
{
echo "";
}
else
{
echo "" . mysql_error();
//Crete Table 2
$sql2 = "CREATE TABLE 614_2t_odevt02
(
tcno int,
adsoyad varchar(30),
il varchar(30),
kilo int,
boy int,
yas int,
maas int,
unique index (tcno)
)";
// Execute query
if(mysql_query($sql2))
{
echo "";
}
else
{
echo "" . mysql_error();
}
//********************************************************************
mysql_query("insert into 614_2t_odevt01 (tcno,adsoyad) values(12,'Enes')");
mysql_query("insert into 614_2t_odevt01 (tcno,adsoyad) values(14,'Ali')");
mysql_query("insert into 614_2t_odevt01 (tcno,adsoyad) values(16,'Omer')");
mysql_query("insert into 614_2t_odevt02 (tcno,il,kilo,boy,yas,maas) values(12,'Istanbul',75,180,20,3000)");
mysql_query("insert into 614_2t_odevt02 (tcno,il,kilo,boy,yas,maas) values(14,'Izmir',70,175,21,3000)");
mysql_query("insert into 614_2t_odevt02 (tcno,il,kilo,boy,yas,maas) values(16,'Manisa',65,170,21,2000)");
$sonuc=mysql_query("select
614_2t_odevt01.tcno, 614_2t_odevt01.adsoyad, 614_2t_odevt02.il, 614_2t_odevt02.kilo, 614_2t_odevt02.boy, 614_2t_odevt02.yas,614_2t_odevt02.maas
from 614_2t_odevt01, 614_2t_odevt02
where 614_2t_odevt01.tcno=614_2t_odevt02.tcno
order by 614_2t_odevt01.tcno");
if(mysql_error()){
echo "MySql hatasi: " . mysql_error();
exit;
} else {
$kayitsay=mysql_num_rows($sonuc);
if ($kayitsay > 0) {
print "<html><table border=1>";
print "<tr><td>SN</td><td>TCNO</td><td>ADSOYAD</td><td>IL</td><td>KILO</td><td>BOY</td><td>YAS</td><td>MAAS</td><td>DURUM</td>
</tr>";
for ($i = 0; $i < $kayitsay; $i++) {
$tcno=mysql_result($sonuc,$i,tcno);
$adsoyad=mysql_result($sonuc,$i,'adsoyad');
$il=mysql_result($sonuc,$i,il);
$kilo=mysql_result($sonuc,$i,kilo);
$boy=mysql_result($sonuc,$i,boy);
$yas=mysql_result($sonuc,$i,yas);
$maas=mysql_result($sonuc,$i,maas);
$vki=($boy/100)*($boy/100)/$kilo;
if($vki>25){
$durum="Zayif";
}
else{
$durum="Sisman";
}
$s=$i+1;
print "<tr><td>$s</td><td>$tcno</td><td>$adsoyad</td><td>$il</td><td>$kilo</td><td>$boy</td><td>$yas</td><td>$maas</td><td>$durum</td>
</tr>";
} //for
print "</table></html>"; mysql_close();
} else {
print "Kayit yok. Kayitsay=$kayitsay<br />"; mysql_close(); break;
} //if
} //if
?>
Function Calls
None |
Stats
MD5 | 80b39bfaa3dca458c7df6c46b8dd5e69 |
Eval Count | 0 |
Decode Time | 93 ms |