1.chat/inc_common.php
#user statuses
define('ONLINE',0);
define('DISCONNECTED',1);
define('AWAY',2);
define('NA',4);
define('COFFEE',8);
define('GUN',16);
2.chat/languages/ru.php
//user statuses
$w_your_status = "Ваш статус";
$w_user_status[ONLINE] = "Онлайн";
$w_user_status[DISCONNECTED] = "Отключен";
$w_user_status[AWAY] = "Ушел";
$w_user_status[NA] = "N/A";
$w_user_status[COFFEE] = "Сплю";
$w_user_status[GUN] = "Играю";
3.chat/designes/Ваш дизайн/voc.php
writeln('<input type="hidden" name="session" value="<?php echo $session;?>">');
writeln('<b><font color=gray><?php echo $w_your_status;?>:<br></font></b><select name="update_status" class="input_button">');
write('<option value="<?php echo ONLINE;?>"');
if (<?php echo ONLINE;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[ONLINE];?></option>');
write('<option value="<?php echo DISCONNECTED;?>"');
if (<?php echo DISCONNECTED;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[DISCONNECTED];?></option>');
write('<option value="<?php echo AWAY;?>"');
if (<?php echo AWAY;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[AWAY];?></option>');
write('<option value="<?php echo NA;?>"');
if (<?php echo NA;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[NA];?></option>');
write('<option value="<?php echo COFFEE;?>"');
if (<?php echo COFFEE;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[COFFEE];?></option>');
write('<option value="<?php echo GUN;?>"');
if (<?php echo GUN;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[GUN];?></option>');
writeln('</select>');
writeln('<input type="submit" value="OK" class="input_button">');
writeln('</td></tr></form>');
5.chat/designes/Ваш дизайн/who.php
<?php
for($i=0;$i<$total_users;$i++)
{
$status = "";
for ($j=1;$j<=4;$j++)
{
4 заменить на 6
Потакой схеме добавляем свои статусы ;-)
вроде всё