Changeset 19946

Show
Ignore:
Timestamp:
09/25/07 23:41:43 (9 months ago)
Author:
alexkingorg
Message:

should allow forcing the mobile version to be loaded

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wordpress-mobile-edition/trunk/wp-mobile.php

    r7179 r19946  
    2121Author: Alex King 
    2222Author URI: http://alexking.org 
    23 Version: 2.0 
     23Version: 2.1dev 
    2424*/  
    2525 
     
    3232      if (akm_mobile_exclude()) { 
    3333            return false; 
     34      } 
     35      if (isset($_COOKIE['akm_mobile']) && $_COOKIE['akm_mobile'] == 'true') { 
     36            return true; 
    3437      } 
    3538      $whitelist = array( 
     
    6366            ,'Opera Mini' 
    6467            ,'Palm' 
     68            ,'Playstation Portable' 
    6569            ,'portalmmm' 
    6670            ,'Proxinet' 
     
    174178                  $redirect = true; 
    175179                  break; 
     180            case 'force_mobile': 
    176181            case 'accept_mobile': 
    177182                  setcookie(