View file sejkmotorv1.0/trazi2.php

File size: 662B
<?php
include("conf.php");
include("gore.php");
?>
<div class="a">Search user</div>
<div class="b">
<?php
$text=$_POST['ime'];
$t=strlen($text);
include("text.php");

if(!$text){
echo "You must write nick !!!";
}
else
{
if($t<1){
echo "Nick must be longer of 1 !!!";
}
else
{
$dir="users";

if ($handle = opendir($dir)) {
    while (false !== ($file = readdir($handle))) {
        
		if(strstr($file, $text)){
		    $user=$file;
            echo "<a href=\"profil.php?ime=$ime&sifra=$sifra&p=$user\">$user</a> <br/>";
			}
			else {
			}
        
    }
    closedir($handle);
}
}
}

echo "</div>";
include("dole.php");
?>