Размер файла: 1.36Kb
<?php
include '../wap/guestbook/mylib.php';
include '../wap/config.php';
include 'acl.php';
session_start();
$rpl=htmlspecialchars(trim($_GET['rpl']),ENT_QUOTES);
header("Cache-Control: no-cache");
if (($conn=pg_connect("host=$dbhost port=$dbport dbname=$dbname user=$dbuser password=$dbpass"))) {
pg_query($conn,"SET CLIENT_ENCODING TO 'KOI8';");
}
$login='';
$message='';
if ($rpl) {
$res=pg_query($conn,"select users.login,messages.message from messages,users where messages.id='$rpl' and messages.fr_u=users.id");
if (pg_numrows($res)) {
$login=pg_result($res,0,0);
$message=pg_result($res,0,1);
}
}
?>
<html>
<head>
<title>оПЧПЕ УППВЭЕОЙЕ</title>
</head>
<body>
<form action="msgsend.php" method=post>
<table>
<?php
if ($message) print "<tr><td>ч ПФЧЕФ ОБ:</td><td>".$message."</td></tr>\n";
print "<tr><td>ID:</td><td><input name=\"to_id\" type=\"text\" value=\"\" maxlength=\"5\"></td></tr>\n";
print "<tr><td colspan=2>ЙМЙ</td></tr>\n";
print "<tr><td>оЙЛ:</td><td><input name=\"login\" type=\"text\" value=\"".$login."\" maxlength=\"15\" /></td></tr>\n";
print "<tr><td>уППВЭЕОЙЕ:</td><td><textarea name=\"message\" rows=10 cols=80></textarea></td></tr>\n";
pg_close($conn);
?>
<TR><TD></TD><TD><INPUT TYPE=SUBMIT VALUE="пФРТБЧЙФШ">
<INPUT TYPE=RESET VALUE="пЮЙУФЙФШ"></TD></TR>
</table>
</FORM>
</body>
</html>