Advertisement
Guest User

Untitled

a guest
Aug 21st, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <?php
  2. if( isset( $_COOKIE['TzSelect'] ) )
  3. {
  4. header( 'Location: http://xasxx.dasxxx.com/feed.php');
  5. }
  6. ?>
  7. <html> ....
  8. <form action='CalendarFeeder3.php' method="post">
  9. <select name="myvalue" id="SelectTimeZone">
  10. <option value="Africa/Mbabane">Africa/Mbabane</option>
  11. <option value="Africa/Mogadishu">Africa/Mogadishu</option>
  12. <option value="Africa/Monrovia">Africa/Monrovia</option>
  13. </select>
  14. <input type="submit">
  15. </form>
  16.  
  17. if( isset( $_COOKIE['TzSelect'] ) )
  18. {
  19. $myvalue = $_COOKIE["TzSelect"];
  20. date_default_timezone_set($myvalue);
  21. }
  22. else
  23. {
  24. $number_of_days = 1000 ;
  25. $date_of_expiry = time() + 60 * 60 * 24 * $number_of_days ;
  26. setcookie( "TzSelect", myvalue, $date_of_expiry, "/" ) ;
  27. }
  28.  
  29. Name: TzSelect
  30. Content: myvalue
  31. Domain: xasdas.sxasmze.com
  32. Path: /
  33. Send for: Any kind of connection
  34. Accessible to script: Yes
  35. Created: Thursday, August 21, 2014 7:20:12 PM
  36. Expires: Wednesday, May 17, 2017 7:20:12 PM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement