<?if (isset($_GET['response']))
{
$id_response=intval($_GET['response']);
$ank_response=get_user($id_response);
$respons_msg=''.$ank_response['nick'].', ';
}
else
{
$id_response=NULL;
$ank_response=NULL;
$respons_msg=NULL;
}
if (isset($_GET['links']))
{
if ($user['scop'])$links=''.$user['scop'].'';
else
$links=' [url=/]ссылка[/url] ';
}
else
{
$links=NULL;
}
?>
<table style='font-size:10px' width='100%'>
<table class='post' >
<tr>
<td class='navi' ><a href="/smiles.php">Смайлы</a></td>
<td class='navi' ><a href="/plugins/rules/bb-code.php">Фон</a></td>
<td class='navi' ><a href="/?links">Ссылка</a></td>
</tr>
</table>
<tr>
<td>
<textarea width='100%' name="msg"><?echo $respons_msg; echo $links; echo isset($msg2)?$msg2:null; ?></textarea><br />
</td>
</tr>
</table>
<?
function add_form($str)
{
return preg_replace("#(\n|\r|<br />)+</form>#msiu", " </form>", $str);
}
ob_start('add_form');
?>