Размер файла: 783B
<?php
include("include/head.php");
echo '<u>Users</u> / <a href="search.php?name='.$name.'&pass='.$pass.'">search</a><br><br>';
$folder = "users";
$users = @opendir($folder) or die("Error - $folder");
while ($user_name = readdir($users)) {
if($user_name == "." || $user_name == ".." || $user_name == ".htaccess")
continue;
if (!is_file($user_name))
{
$user_name = str_replace(".class","",$user_name);
echo "<form action=\"sendmess.php?name=$name&pass=$pass\" method=\"post\">
Name:<br/><input name=\"value_user\" type=\"text\" maxlength=\"8\" value=\"$user_name\"><br/>
<input type=\"submit\" value=\"write\" /></form>";
}
}
closedir($users);
echo '<a href="index.php?name='.$name.'&pass='.$pass.'">Back in cabinet</a>';
include("include/foot.php");
?>