Файл: region_clean/add.php
Строк: 94
<?
#######################################
## Mod By KoT (borispol) [76-75-072] ##
#######################################
require_once "start.php";
require_once "sid.php";
header('Cache-Control: no-store, no-cache, must-revalidate');
if ($ver == "wml") header ("Content-type:text/vnd.wap.wml; charset=utf-8");
else header("Content-Type:text/html; charset=UTF-8");
require_once "inc.php";
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);
require_once "version.php";
if (isset($_GET['rm']) && !ctype_digit($_GET['rm'])) {
header("Location: index.php?isset=403");
die();
}
$rm = intval($_GET['rm']);
if (isset($_GET['pwd']) && !ctype_digit($_GET['pwd']))
{
header('Location: index.php?isset=403');
}
if ($rm == 10) $takep="&ref=$ref&pwd=$pwd";
else $takep="&ref=$ref";
ob_start();
echo "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><link rel="stylesheet" type="text/css" href="css/$css.css"/>
<title>Сказать</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>
<div align="center">
<form method="POST" action="chat.php?$ses&rm=$rm$takep" name="auth">n";
echo $fsize1;
echo '<div class = "c4">Сообщение в чат:</div>';
echo '<small>*max 400</small><br/>';
echo $fsize2;
if (($ver == "wml") or ($ver == "xhtml")) {
echo '<textarea name="msg" maxlength="400" cols="25" rows="8"></textarea><br/><br/>'; }
if ($rm != 23) {
if ($row["level"] >= 4) {
echo $fsize1;
echo 'Шрифт<br/>';
echo $fsize2;
echo '<select name="shrift">
<option value="0">Обычный</option>
<option value="1">Наклонный</option>';
}
if ($row['level'] >= 5) { echo ' <option value="2">Подчёркнутый</option>'; }
if ($row['level'] >= 6) { echo ' <option value="3">Накл. и подч.</option>'; }
if ($row['level'] >= 6) { echo ' <option value="4">Жирный</option>'; }
if ($row['level'] >= 7) { echo ' <option value="5">Жирн. и подч.</option>'; }
if ($row['level'] >= 7) { echo ' <option value="6">Огромный</option>'; }
if ($row['level'] >= 4) { echo ' </select><br/>'; }
}
if ($ver == "xhtml") {
echo '<select name="cveti_shrift">
<option value="0">Цвет</option>
<option value="1">Чёрный</option>
<option value="2">Синий</option>
<option value="3">Красный</option>
<option value="4">Зелёный</option>
<option value="5">Св.Зелёный</option>
<option value="6">Голубой</option>
<option value="7">Оранжевый</option>
<option value="8">Серый</option>
<option value="9">Розовый</option>
</select><br/>';
}
echo '<input type="submit" class="ibutton" value="Сказать" name="enter"></form>';
echo $divide;
if ($rm == 23) echo "<a href=chat.php?$ses&rm=$rm$takep method=post title="В чат"><input type=submit class=ibutton value="В игру"></a>";
else echo "<a href=chat.php?$ses&rm=$rm$takep method=post title="В чат"><input type=submit class=ibutton value="В чат"></a>";
echo "</div>
</BODY>n
</HTML>n";
$alltraf = $row['alltraf'];
$pagesize = round((ob_get_length())/1024,1);
$alltraf = $alltraf + $pagesize;
mysql_query ("Update users set alltraf='".$alltraf."', lasttraf='".$pagesize."' where id='".$id."'");
mysql_close ($link);
include_once "foot.php";
ob_end_flush();
?>