29 lines
305 B
PHP
29 lines
305 B
PHP
|
<?php
|
||
|
|
||
|
header("Content-type: text/css");
|
||
|
|
||
|
$h = localtime()[2];
|
||
|
|
||
|
if($h >= 9 and $h < 17) {
|
||
|
|
||
|
$sheet = 't-day';
|
||
|
|
||
|
} elseif($h < 6 or $h > 20) {
|
||
|
|
||
|
$sheet = 't-night';
|
||
|
|
||
|
} else {
|
||
|
|
||
|
$sheet = 't-dawn-or-dusk';
|
||
|
}
|
||
|
|
||
|
echo '
|
||
|
/*
|
||
|
cache : '. session_cache_expire() .'
|
||
|
*/
|
||
|
|
||
|
';
|
||
|
|
||
|
echo file_get_contents($sheet . '.css');
|
||
|
|