tester1991
PHP МегаМозГ
- Регистрация
- 24 Сен 2008
- Сообщения
- 741
- Реакции
- 181
ставь любую CMS и буит тебе титулка=))
Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
ставь любую CMS и буит тебе титулка=))
writeln('<input type="hidden" name="session" value="<?php echo $session;?>">');
writeln('<b><?php echo $w_your_status;?>:</b><br><select name="update_status" class="input_button">');
write('<option value="<?php echo PIVO;?>"');
if (<?php echo PIVO;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[PIVO];?></option>')
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 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 DND;?>"');
if (<?php echo DND;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[DND];?></option>');
write('<option value="<?php echo GAMES;?>"');
if (<?php echo GAMES;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[GAMES];?></option>')
write('<option value="<?php echo LOVING;?>"');
if (<?php echo LOVING;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[LOVING];?></option>')
write('<option value="<?php echo RABOTA;?>"');
if (<?php echo RABOTA;?> == user_status) write(' selected');
writeln('><?php echo $w_user_status[RABOTA];?></option>')
#user statuses
define('PIVO',8);
define('ONLINE',0);
define('DISCONNECTED',1);
define('AWAY',2);
define('NA',3);
define('DND',4);
define('GAMES',6);
define('LOVING',8);
define('RABOTA',10);
$w_user_statusn[0] = "сменил статус на- <b>Онлайн</b><bgsound src=".$chat_url."Alarm4.mid><IMG SRC=".$chat_url."converts/205.gif>";
$w_user_statusn[1] = "сменил статус на- <b>Обед</b><IMG SRC=".$chat_url."converts/eatchick.gif>";
$w_user_statusn[2] = "сменил статус на- <b>Курю</b><IMG SRC=".$chat_url."converts/060.gif>";
$w_user_statusn[3] = "сменил статус на- <b>Играю в игры</b>";
$w_user_statusn[4] = "сменил статус на- <b>Влюбленный!!!</b>";
$w_user_statusn[5] = "сменил статус на- <b>На работе!!</b>";
$w_user_statusn[3] = "сменил статус на- <b>Я очень злой!</b><IMG SRC=".$chat_url."converts/bur2.gif>";
$w_user_statusn[6] = "сменил статус на- <b>Пиво!</b><IMG SRC=".$chat_url."converts/beerchug.gif>";
$w_user_statusn[7] = "сменил статус на- <b>Уставший</b><IMG SRC=".$chat_url."converts/ustav.gif>";
//user statuses
$w_your_status = "Ваш статус";
$w_user_status[GAMES] = "Играю в игры";
$w_user_status[LOVING]="Люблю тя";
$w_user_status[PIVO] = "Злой";
$w_user_status[RABOTA] = "Сижу на работе";
$w_user_status[ONLINE] = "Онлайн";
$w_user_status[DISCONNECTED] = "Отключен";
$w_user_status[AWAY] = "Обедаю";
$w_user_status[NA] = "N/A";
$w_user_status[DND] = "Курю!";
$w_user_status['PRIVATE'] = "В привате";
$w_st_set = "Установить";
if (isset($update_status))
if($update_status!="") {
$update_status = intval($update_status);
$fields_to_update[0][0] = 20;
$fields_to_update[0][1] = intval($update_status);
for ($t=0;$t<=20;$t++) {
if ($update_status == pow(2,$t) or ($update_status == 0 and $t == 0)) {
// if (! array_key_exists($user_name, $invisibles)) {
$messages_to_show[] = array(MESG_TIME=>my_time(),
MESG_ROOM=>$room_id,
MESG_FROM=>$rooms[$room_id]["bot"],
MESG_FROMWOTAGS=>$rooms[$room_id]["bot"],
MESG_FROMSESSION=>"",
MESG_FROMID=>0,
MESG_FROMAVATAR=>"",
MESG_TO=>"",
MESG_TOSESSION=>"",
MESG_TOID=>"",
MESG_BODY=>"<font color=\"$def_color\">$user_name $w_user_statusn[$t]</font>");
// }
}
}
include($engine_path."messages_put.php");
include($engine_path."user_din_data_update.php");
header("location: who.php?session=$session&photoss=$photoss&".time());
exit;
}
проверь права на файл
/data/quiz/answer.dat