View file sejkmotorv1.0/conf.php

File size: 813B
<?php
$ime=$_GET['ime'];
$sifra=$_GET['sifra'];

if(!$ime or !$sifra){
echo "Name and password is empty !!!";
echo "<meta http-equiv=\"Refresh\" content=\"1; url=/login.php\">";
exit();
}

$fajl="users/$ime/$ime.sejk";
if(file_exists($fajl)){
$postoji="tacno";
}
else
{
$postoji="netacno";
}

if($postoji==netacno){
echo "User not exists !!!";
echo "<meta http-equiv=\"Refresh\" content=\"1; url=/login.php\">";
exit();
}

$a=file_get_contents($fajl);
$d=explode("@#@", $a);
$s=md5($sifra);
$s2=$d[1];

if($s==$s2){
$tacno="tacna";
}
else
{
$tacno="netacno";
}

if($tacno==netacno){
echo "Password is wrong !!!";
echo "<meta http-equiv=\"Refresh\" content=\"1; url=/login.php\">";
exit();
}


$datum=date("d.m.Y.");
$vreme=date("H:i:s");












?>