Loading...
Помощь по скриптам | Заварушка Время
}
function tl($tl){
$d=3600*24;
$day=floor($tl/$d);
$tl=$tl-($d*$day);

$hour=floor($tl/3600);
$tl=$tl-(3600*$hour);

$minute=floor($tl/60);
$tl=$tl-(60*$minute);

$second=floor($tl);

$dayt="".($day>0?"$day д. ":null)."";
$hourt="".($hour>0?"$hour ч. ":null)."";
$minutet="".($minute>0?"$minute м. ":null)."";
$secondt="".($second>0?"$second с. ":null)."";

if($day>0){
$minutet=NULL;
$secondt=NULL;
}
if($hour>0 && $day==0){
$secondt=NULL;
$dayt=NULL;
}

return "$dayt$hourt$minutet$secondt";
} /* Вывод оставшегося времени */

function vremja($time=NULL){
if ($time == NULL)$time = time();
$timep="".date("j M yг. в H:i", $time)."";
$time_p[0]=date("j n Y", $time);
$time_p[1]=date("H:i", $time);

if ($time_p[0] == date("j n Y"))$timep = date("H:i:s", $time);
if ($time_p[0] == date("j n Y", time()-60*60*24))$timep = "Вчера в $time_p[1]";

$timep=str_replace("Jan","Янв",$timep);
$timep=str_replace("Feb","Фев",$timep);
$timep=str_replace("Mar","Мар",$timep);
$timep=str_replace("May","Мая",$timep);
$timep=str_replace("Apr","Апр",$timep);
$timep=str_replace("Jun","Июня",$timep);
$timep=str_replace("Jul","Июля",$timep);
$timep=str_replace("Aug","Авг",$timep);
$timep=str_replace("Sep","Сент",$timep);
$timep=str_replace("Oct","Окт",$timep);
$timep=str_replace("Nov","Нояб",$timep);
$timep=str_replace("Dec","Дек",$timep);
return $timep;
}

Как изменить чтобы время шло по Украине
в штекере смени с мск
Drop Dead , нету

AddDefaultCharset utf-8
DirectoryIndex index.php
Options -Indexes

RewriteEngine On
RewriteRule ^/?$ index.php [L,QSA]
RewriteRule ^clan/journal/?$ clan_journal.php [L,QSA]
RewriteRule ^ten/?$ ten.php [L,QSA]
RewriteRule ^fortuna/?$ fortuna.php [L,QSA]
RewriteRule ^loto/?$ loto.php [L,QSA]
RewriteRule ^coliseum/?$ coliseum.php [L,QSA]
RewriteRule ^alduin/?$ alduin.php [L,QSA]
RewriteRule ^quest/?$ quest.php [L,QSA]
RewriteRule ^clan/st/?$ clanst.php [L,QSA]
RewriteRule ^settclan/?$ settclan.php [L,QSA]
RewriteRule ^prava/?$ prava.php [L,QSA]
RewriteRule ^bashni/?$ bashni.php [L,QSA]
RewriteRule ^bashna/?$ bashna.php [L,QSA]
RewriteRule ^ban/([0-9]*)/?$ ban.php?id=$1 [L,QSA]
RewriteRule ^rinok/merchant/?$ merchant.php [L,QSA]
RewriteRule ^bashna/2/?$ bashna_2.php [L,QSA]
RewriteRule ^bashna/3/?$ bashna_3.php [L,QSA]
RewriteRule ^duel/?$ duel_index.php [L,QSA]
RewriteRule ^duel/batle/?$ duel_batle.php [L,QSA]
RewriteRule ^bashna/4/?$ bashna_4.php [L,QSA]
RewriteRule ^boss/([0-9]*)?$ boss.php?id=$1 [L,QSA]
RewriteRule ^bashna/5/?$ bashna_5.php [L,QSA]
RewriteRule ^bashna/6/?$ bashna_6.php [L,QSA]
RewriteRule ^registration?$ registration.php [L,QSA]
RewriteRule ^auction?$ auction.php [L,QSA]
RewriteRule ^ref?$ ref.php [L,QSA]
RewriteRule ^password/?$ pass.php [L,QSA]
RewriteRule ^main?$ main.php [L,QSA]
RewriteRule ^pay?$ pay.php [L,QSA]
RewriteRule ^worldkassa/my_operation/?$ worldkassa/my_operation.php [L,QSA]
RewriteRule ^arena/([0-9]*)/?$ arena.php?attack=$1 [L,QSA]
RewriteRule ^smitch/([0-9]*)/?$ smitch.php?id=$1 [L,QSA]
RewriteRule ^ban/([0-9]*)/?$ ban.php?id=$1 [L,QSA]
RewriteRule ^clans/?$ clans.php?id=$1 [L,QSA]
RewriteRule ^clan/([0-9]*)/?$ clan.php?id=$1 [L,QSA]
RewriteRule ^clan/user/([0-9]*)/?$ clan.php?user=$1 [L,QSA]
RewriteRule ^clan/kazna/?$ clan.php?kazna [L,QSA]
RewriteRule ^clan/gerb/?$ clan.php?gerb [L,QSA]
RewriteRule ^clan/chat/?$ clan.php?chat [L,QSA]
RewriteRule ^clan/forum/?$ cforum.php [L,QSA]
RewriteRule ^clanst?$ clanst.php [L,QSA]
RewriteRule ^clan_info?$ clan_info.php [L,QSA]
RewriteRule ^clan/([0-9]*)/forum/?$ cforum.php?id=$1 [L,QSA]
RewriteRule ^clan/forum/([0-9]*)?$ cforum.php?forumsub=$1 [L,QSA]
RewriteRule ^clan/forum/sub/([0-9]*)?$ cforum.php?cforum_topic=$1 [L,QSA]
RewriteRule ^clan/bonuses/([0-9]*)/?$ bonuses.php?id=$1 [L,QSA]
RewriteRule ^clan/bonuses/?$ bonuses.php [L,QSA]
RewriteRule ^clan_settings/?$ clan_settings.php [L,QSA]
RewriteRule ^narush/([0-9]*)/?$ narush.php?id=$1 [L,QSA]
RewriteRule ^narush/([0-9]*)/?$ narush.php?id=$1 [L,QSA]
RewriteRule ^nekromant/?$ nekromant.php [L,QSA]
RewriteRule ^arena?$ arena.php [L,QSA]
RewriteRule ^profile/([0-9]*)?$ profile.php?id=$1 [L,QSA]
RewriteRule ^ip_proverka/([0-9]*)?$ ip_proverka.php?id=$1 [L,QSA]
RewriteRule ^settings?$ settings.php [L,QSA]
RewriteRule ^train?$ train.php [L,QSA]
RewriteRule ^rinok?$ rinok.php [L,QSA]
RewriteRule ^rinok/effects?$ effects.php [L,QSA]
RewriteRule ^chat?$ chat.php [L,QSA]
RewriteRule ^rating?$ rating.php [L,QSA]
RewriteRule ^online?$ online.php [L,QSA]
RewriteRule ^mail/([0-9]*)?$ mail.php?id=$1 [L,QSA]
RewriteRule ^snar/([0-9]*)?$ snar.php?id=$1 [L,QSA]
RewriteRule ^inv?$ inv.php [L,QSA]
RewriteRule ^itemshop/([0-9]*)?$ itemshop.php?id=$1 [L,QSA]
RewriteRule ^item/([0-9]*)?$ item.php?id=$1 [L,QSA]
RewriteRule ^manekenImage_([0-9]*).png?$ manekenImage.php?id=$1 [L,QSA]
RewriteRule ^shopImage_([0-9]*).png?$ shopImage.php?id=$1 [L,QSA]
RewriteRule ^settGame?$ adm.php [L,QSA]
RewriteRule ^settGame/ref/?$ adm_ref.php [L,QSA]
RewriteRule ^settGame/bot/?$ adm_bot.php [L,QSA]
RewriteRule ^monstr/([0-9]*)?$ boss.php [L,QSA]
RewriteRule ^monstr/batlle/?$ boss.php?act=batlle [L,QSA]
RewriteRule ^forum/([0-9]*)?$ forum.php?id=$1 [L,QSA]
RewriteRule ^forum/sub/([0-9]*)?$ forum.php?topic=$1 [L,QSA]
RewriteRule ^farm?$ farm.php [L,QSA]
RewriteRule ^pitomnik?$ pit.php [L,QSA]
RewriteRule ^ref/?$ ref.php [L,QSA]
RewriteRule ^amulet?$ amulet.php [L,QSA]
RewriteRule ^common/?$ common.php [L,QSA]
RewriteRule ^common/contacts/?$ common.php?contacts [L,QSA]
RewriteRule ^common/agreement/?$ common.php?agreement [L,QSA]
RewriteRule ^common/rules/1/?$ common.php?rules_1 [L,QSA]
RewriteRule ^common/rules/2/?$ common.php?rules_2 [L,QSA]
RewriteRule ^nekromant/?$ nekromant.php [L,QSA]
RewriteRule ^support/?$ support.php [L,QSA]
RewriteRule ^attainment/?$ adw.php [L,QSA]
RewriteRule ^history/?$ history.php [L,QSA]
RewriteRule ^history/2/?$ history2.php [L,QSA]
RewriteRule ^revolt?$ revolt.php [L,QSA]

# ПОХОД © Вилы Выкидные, 2016
RewriteRule ^campaign/?$ campaign.php [L,QSA]
RewriteRule ^campaign/sent/?$ campaign.php?action=sent [L,QSA]
RewriteRule ^campaign/lose/end/?$ campaign.php?action=lose&end [L,QSA]
RewriteRule ^campaign/go/?$ campaign.php?go [L,QSA]
RewriteRule ^campaign/find/?$ campaign.php?action=find [L,QSA]
RewriteRule ^campaign/lose/?$ campaign.php?action=lose [L,QSA]
RewriteRule ^campaign/find/fight/?$ campaign.php?action=find&fight [L,QSA]
RewriteRule ^campaign/fight/exit/?$ campaign.php?action=exit [L,QSA]
RewriteRule ^campaign/exit/exit/?$ campaign.php?action=exit&exit [L,QSA]
RewriteRule ^campaign/fight/?$ campaign.php?action=fight [L,QSA]
RewriteRule ^campaign/fight/attack/?$ campaign.php?action=fight&attack [L,QSA]
RewriteRule ^campaign/fight/stone/?$ campaign.php?action=fight&stone [L,QSA]
RewriteRule ^campaign/fight/grass/?$ campaign.php?action=fight&grass [L,QSA]
RewriteRule ^campaign/fight/win/?$ campaign.php?action=fight&win [L,QSA]
RewriteRule ^campaign/fight/lose/?$ campaign.php?action=fight&lose [L,QSA]
RewriteRule ^campaign/sent/stone/?$ campaign.php?action=sent&stone [L,QSA]
RewriteRule ^campaign/sent/grass/?$ campaign.php?action=sent&grass [L,QSA]

# ПОХОД © Вилы Выкидные, 2016
RewriteRule ^war/1/?$ war_1.php [L,QSA]
RewriteRule ^war/1/sent/?$ war_1.php?action=sent [L,QSA]
RewriteRul
# ПОХОД © Вилы Выкидные, 2016
RewriteRule ^war/1/?$ war_1.php [L,QSA]
RewriteRule ^war/1/sent/?$ war_1.php?action=sent [L,QSA]
RewriteRule ^war/1/lose/end/?$ war_1.php?action=lose&end [L,QSA]
RewriteRule ^war/1/go/?$ war_1.php?go [L,QSA]
RewriteRule ^war/1/find/?$ war_1.php?action=find [L,QSA]
RewriteRule ^war/1/lose/?$ war_1.php?action=lose [L,QSA]
RewriteRule ^war/1/find/fight/?$ war_1.php?action=find&fight [L,QSA]
RewriteRule ^war/1/fight/exit/?$ war_1.php?action=exit [L,QSA]
RewriteRule ^war/1/exit/exit/?$ war_1.php?action=exit&exit [L,QSA]
RewriteRule ^war/1/fight/?$ war_1.php?action=fight [L,QSA]
RewriteRule ^war/1/fight/attack/?$ war_1.php?action=fight&attack [L,QSA]
RewriteRule ^war/1/fight/stone/?$ war_1.php?action=fight&stone [L,QSA]
RewriteRule ^war/1/fight/grass/?$ war_1.php?action=fight&grass [L,QSA]
RewriteRule ^war/1/fight/win/?$ war_1.php?action=fight&win [L,QSA]
RewriteRule ^war/1/fight/lose/?$ war_1.php?action=fight&lose [L,QSA]
RewriteRule ^war/1/sent/stone/?$ war_1.php?action=sent&stone [L,QSA]
RewriteRule ^war/1/sent/grass/?$ war_1.php?action=sent&grass [L,QSA]
RewriteRule ^uban([a-zA-Z_0-9-/]*)?$ /uban.php?is=$1 [L,QSA] # БАн
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d


# DO NOT REMOVE THIS LINE AND THE LINES BELOW ERRORPAGEID:enuquJ
ErrorDocument 400 /400.html
# DO NOT REMOVE THIS LINE AND THE LINES ABOVE enuquJ:ERRORPAGEID


# DO NOT REMOVE THIS LINE AND THE LINES BELOW ERRORPAGEID:uHyseX
ErrorDocument 404 /404.html
# DO NOT REMOVE THIS LINE AND THE LINES ABOVE uHyseX:ERRORPAGEID


# DO NOT REMOVE THIS LINE AND THE LINES BELOW ERRORPAGEID:Wyjuha
ErrorDocument 500 /500.html
# DO NOT REMOVE THIS LINE AND THE LINES ABOVE Wyjuha:ERRORPAGEID


# DO NOT REMOVE THIS LINE AND THE LINES BELOW ERRORPAGEID:ataqyZ
ErrorDocument 401 /401.html
# DO NOT REMOVE THIS LINE AND THE LINES ABOVE ataqyZ:ERRORPAGEID
SetEnv TZ Europe/Kiev
Тогда напиши туда сам, то что сверху)
T o t o R i n o , куда именно
Вообще без разницы, напиши сверху
T o t o R i n o ,

Не работает
hkolbHik (26.02.2017 в 13:49)
T o t o R i n o ,

Не работает

Попробуй
php_value date.timezone «Europe/Kiev»
T o t o R i n o , ту даже
Онлайн: 3
Время:
Gen. 0.0977
(c) Bym.Guru 2010-2026