Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function getpage(){
- $h=date("G");
- if(($h < 12)|| ($h > 5)){
- return ("rano.html");
- }
- elseif(($h > 13)|| ($h < 18)){
- return ("popoludniu.html");
- }
- elseif(($h > 19)|| ($h < 21)){
- return ("wieczor.html");
- }
- elseif(($h > 22)|| ($h < 4)){
- return ("noc.html");
- }
- }
- include(getpage());
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement