Advertisement
arabtion

Untitled

Oct 19th, 2019
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. <!-- Pershendetje ditore -->
  2.  
  3. <? php
  4. . date_default_timezone_set('Asia/karachi');
  5. $Hour = date('G');
  6.  
  7. if ( $Hour >= 5 && $Hour <=11 ) {
  8. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  9. <html>
  10. <class="time-morning">
  11.  
  12. </html>';
  13. }
  14. else if ( $Hour >= 12 && $Hour <=16 ) {
  15. echo '<class="time-night">';
  16. }
  17. else if ( $Hour >= 17 && $Hour <=20 ) {
  18. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  19. <html>
  20. <class="time-night">
  21.  
  22. </html>';
  23. }
  24. else if ( $Hour >= 21 && $Hour <=24 ) {
  25. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  26. <html>
  27. <class="time-night">
  28.  
  29. </html>';
  30. }
  31. ?>
  32. <!-- pershendetje ditore -->
  33.  
  34. <!-- POINTS AND LEVEL IN ONE PANEL -->
  35.  
  36.  
  37. <? php
  38. . date_default_timezone_set('Europe/Tirane');
  39. $Hour = date('G');
  40.  
  41. if ( $Hour >= 5 && $Hour <=11 ) {
  42. echo "<div id=\"greeting_ico\" class=\"morning\"></div>";
  43. }
  44. else if ( $Hour >= 12 && $Hour <=16 ) {
  45. echo "<div id=\"greeting_ico\" class=\"afternon\"></div>";
  46. }
  47. else if ( $Hour >= 17 && $Hour <=21 ) {
  48. echo "<div id=\"greeting_ico\" class=\"evening\"></div>";
  49. }
  50. else if ( $Hour >= 22 && $Hour <=24 ) {
  51. echo "<div id=\"greeting_ico\" class=\"night\"></div>";
  52. }
  53. else if ( $Hour >= 1 && $Hour <=4 ) {
  54. echo "<div id=\"greeting_ico\" class=\"night\"></div>";
  55. }
  56. ?>
  57.  
  58.  
  59. <center><i class="fa fa-star"></i><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"><br><br>
  60.  
  61.  
  62.  
  63. <? php
  64. . date_default_timezone_set('Europe/Tirane');
  65. $Hour = date('G');
  66.  
  67. if ( $Hour >= 5 && $Hour <=11 ) {
  68. echo "Good Morning";
  69. }
  70. else if ( $Hour >= 12 && $Hour <=16 ) {
  71. echo "Good Afternoon";
  72. }
  73. else if ( $Hour >= 17 && $Hour <=21 ) {
  74. echo "Good Evening";
  75. }
  76. else if ( $Hour >= 22 && $Hour <=24 ) {
  77. echo "Good Night";
  78. }
  79. else if ( $Hour >= 1 && $Hour <=4 ) {
  80. echo "Good Night";
  81. }
  82. ?>, <div class="username bgrad14"><?php echo $data['user_name']; ?></div></div>
  83.  
  84. <!-- POINTS AND LEVEL IN ONE PANEL -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement