Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if( isset( $_COOKIE['TzSelect'] ) )
- {
- header( 'Location: http://xasxx.dasxxx.com/feed.php');
- }
- ?>
- <html> ....
- <form action='CalendarFeeder3.php' method="post">
- <select name="myvalue" id="SelectTimeZone">
- <option value="Africa/Mbabane">Africa/Mbabane</option>
- <option value="Africa/Mogadishu">Africa/Mogadishu</option>
- <option value="Africa/Monrovia">Africa/Monrovia</option>
- </select>
- <input type="submit">
- </form>
- if( isset( $_COOKIE['TzSelect'] ) )
- {
- $myvalue = $_COOKIE["TzSelect"];
- date_default_timezone_set($myvalue);
- }
- else
- {
- $number_of_days = 1000 ;
- $date_of_expiry = time() + 60 * 60 * 24 * $number_of_days ;
- setcookie( "TzSelect", myvalue, $date_of_expiry, "/" ) ;
- }
- Name: TzSelect
- Content: myvalue
- Domain: xasdas.sxasmze.com
- Path: /
- Send for: Any kind of connection
- Accessible to script: Yes
- Created: Thursday, August 21, 2014 7:20:12 PM
- Expires: Wednesday, May 17, 2017 7:20:12 PM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement