Просмотр файла eforum25/offset.php

Размер файла: 1Kb
  1. <?php
  2. include "config.php";
  3.  
  4. if(isset($settime)){
  5. setcookie('user_time',$settime,time()+86400*100,'/');
  6. include "incl/head.inc";
  7. die("<title>...</title></head><body onload=\"if(window.opener){window.opener.location='index.php'}self.close()\"></body></html>");
  8. }
  9.  
  10. include "incl/head.inc";?>
  11. <title>...</title></head><body>
  12. <table align="center" border="0" cellpadding="0" cellspacing="0"><tr><td class="q">
  13. <table width="100%" border="0" cellspacing="1" cellpadding="5">
  14. <tr class="c"><td><?php print $lang[72];?></td></tr>
  15. <tr class="b"><td><table cellspacing="6"><tr><td class="s" nowrap="nowrap">
  16. <?php
  17. for($i=-12;$i<=13;$i++){
  18. $time_entry=gmdate($time_format,time()+$i*3600);
  19.  
  20. if($user_time==$i){$color=';color:#ffffff';}else{$color='';}
  21. if($i==0){$gmt='&nbsp;GMT';}else{$gmt='';}
  22.  
  23. print "<a href=\"#\" onclick=\"window.location='offset.php?f=$f'+amp+'settime=$i';return false\" style=\"text-decoration:none$color\">".$time_entry."$gmt</a><br />\n";
  24. }?>
  25. </td></tr></table></td></tr></table></td></tr></table></body></html>