tarasfrompir писал(а): ↑Чт июн 06, 2019 4:13 pm
Ану повангую - Не Луна ли у тебя влияет на твои цифры
Код: Выделить всё
function phase_name() {
//$names = array( 'New Moon', 'Waxing Crescent', 'First Quarter', 'Waxing Gibbous', 'Full Moon', 'Waning Gibbous', 'Third Quarter', 'Waning Crescent', 'New Moon' );
$names = array( 'Новолуние', 'Молодая Луна', 'Первая четверть', 'Прибывающая Луна', 'Полнолуние', 'Убывающая Луна', 'Последняя четверть', 'Старая Луна', 'Новолуние');
// There are eight phases, evenly split. A "New Moon" occupies the 1/16th phases either side of phase = 0, and the rest follow from that.
return $names[ floor( ( $this->phase + 0.0625 ) * 8 ) ];
}
function phase_img() {
//$names = array( 'New Moon', 'Waxing Crescent', 'First Quarter', 'Waxing Gibbous', 'Full Moon', 'Waning Gibbous', 'Third Quarter', 'Waning Crescent', 'New Moon' );
$img = array( 'icon-moonnew.png', 'icon-moonwaxingcrescent.png', 'icon-moonfirstquarter.png', 'icon-moonwaxinggibbous.png', 'icon-moonfull.png', 'icon-moonwaninggibbous.png', 'icon-moonthirdquarter.png', 'icon-moonwaningcrescent.png', 'icon-moonnew.png');
// There are eight phases, evenly split. A "New Moon" occupies the 1/16th phases either side of phase = 0, and the rest follow from that.
return $img[ floor( ( $this->phase + 0.0625 ) * 8 ) ];
}
require_once('lib/MoonPhase.php');
// create an instance of the class, and use the current time
$moon = new MoonPhase();
//$age = round( $moon->age(), 1 );
$age = round( $moon->age(), 0 );
$stage = $moon->phase() < 0.5 ? 'растущая' : 'убывающая';
$distance = round( $moon->distance(), 2 );
$nextnewtime = gmdate( 'G:i:s', $moon->next_new_moon() );
$nextnewdate = gmdate( 'd.m.Y', $moon->next_new_moon() );
$nextfulltime = gmdate( 'G:i:s', $moon->next_full_moon() );
$nextfulldate = gmdate( 'd.m.Y', $moon->next_full_moon() );
$newmoon = gmdate('d.m.Y G:i:s', $moon->new_moon() ); ///////////////////////////////////
$fullmoon = gmdate('d.m.Y G:i:s', $moon->full_moon() ); /////////////////////////////////
$phasename = $moon->phase_name();
$phaseimg = $moon->phase_img();
$illumination = round( $moon->illumination()*100, 2 );
sg('ThisComputer.MoonPhase',$illumination); //Фаза луны %
sg('ThisComputer.MoonAge',$age); //Возраст луны (лунный день)
sg('ThisComputer.MoonStage',$stage); //Стадия луны
sg('ThisComputer.MoonDistance',$distance); //Дистанция до луны
sg('ThisComputer.MoonNextNewTime',$nextnewtime); //Время следующего новолуния
sg('ThisComputer.MoonNextNewDate',$nextnewdate); //Новолуние
sg('ThisComputer.MoonNextFullTime',$nextfulltime); //Длительность лунного дня
sg('ThisComputer.MoonNextFullTime',$nextfulltime); //Время следующего полнолуния
sg('ThisComputer.MoonNextFullDate',$nextfulldate); //Дата следующего полнолуния
sg('ThisComputer.MoonPhaseName',$phasename); //Фаза луны
sg('ThisComputer.MoonPhaseImg',$phaseimg); //Фаза луны image file
sg('ThisComputer.MoonNew',$newmoon); //Новолуние ///////////////////////////////////
sg('ThisComputer.MoonFull',$fullmoon); //Время следующего полнолуния //////////////////////////////////
if($moon->new_moon()>time()){
debmes('next new moon '.gmdate('d.m.Y G:i:s', $moon->new_moon() ));
}else{
debmes('next new moon '.gmdate('d.m.Y G:i:s', $moon->next_new_moon() ));
}
if($moon->full_moon()>time()){
debmes('next full moon '.gmdate('d.m.Y G:i:s', $moon->full_moon() ));
}else{
debmes('next full moon '.gmdate('d.m.Y G:i:s', $moon->next_full_moon() ));
}
Да, нет! Луна тут причем? Ни какого отношения к восходу и закату солнца... Да, и писало бы тогда, что свойство было изменено кроном или скриптом, а тут чисто, только значения!
Logrus писал(а): ↑Чт июн 06, 2019 4:20 pm
аха, покажь вебпеременные )))
тут не понял, про что идет речь! Вебпеременные это что?
PS - Даже если вручную удалить значения то, все равно подписывает!

а что то вставляет значения и не пишет, кто это сделал!