brookedot

Untitled

Nov 23rd, 2011
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1.     $domain = parse_url($site_url, PHP_URL_HOST);
  2.         if($get_cookie_check =='true'){
  3.             //set the cookie
  4.             setcookie("mobileesp_wp_full_site", 1, time()+86400, "/", $domain);
  5.             $_COOKIE['mobileesp_wp_full_site'] = 1;
  6.  
  7.         }
  8.         if($get_cookie_check =='false'){
  9.             //set the cookie
  10.             setcookie("mobileesp_wp_full_site", 0, time()-3600, "/", $domain);
  11.             $_COOKIE['mobileesp_wp_full_site'] = 0;
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment