<?php
require_once "maincore.php";
require_once THEMES."templates/header.php";
echo "<form action='' method='POST' />
<input type='text' name='ipas' />
<input type='submit' name='tikrinti' value='tikrinti' />
</form>";
if (isset($_POST['tikrinti'])) {
echo "Nariai su tokiu IP: <br />";
$b = dbquery("SELECT * FROM ".DB_USERS." WHERE user_ip = '".$_POST['ipas']."' ");
$i = 1;
while($rezas = dbarray($b)) {
echo "$i. <a href='".BASEDIR."profile.php?lookup=".$rezas['user_id']."' target='_blank'>".$rezas['user_name']."</a> <br />";
$i++;
}
}
require_once THEMES."templates/footer.php";
?>