GetDeviceCapabilitiesFromAgent($_SERVER['HTTP_USER_AGENT']); //print_r( $wurfl->wurfl_agent ); if ( $wurfl->wurfl_agent ) { if ( $wurfl->getDeviceCapability( 'html_wi_oma_xhtmlmp_1_0' ) ) { $device['width'] = $wurfl->getDeviceCapability( 'resolution_width' ); $device['height'] = $wurfl->getDeviceCapability( 'resolution_height' ); } } } else { // This is an example of using fixed device strings to just match your phone etc $devices = array( array( 'name'=>"Motorola V600", 'ua_match'=>"MOT-V600", 'skin'=>"mobile", 'cookies'=>false, 'width'=>176, 'height'=>220 ), ); foreach ( $devices as $tempDevice ) { if ( preg_match( '/'.$tempDevice['ua_match'].'/', $_SERVER['HTTP_USER_AGENT'] ) ) { $skin = $tempDevice['skin']; $cookies = $tempDevice['cookies']; break; } } } foreach ( getSkinIncludes( 'includes/config.php' ) as $includeFile ) require_once $includeFile; foreach ( getSkinIncludes( 'includes/functions.php' ) as $includeFile ) require_once $includeFile; if ( empty($_REQUEST['view']) ) $_REQUEST['view'] = isset($user)?'console':'login'; if ( !isset($user) && ZM_OPT_USE_AUTH ) { if ( ZM_AUTH_TYPE == "remote" && !empty( $_SERVER['REMOTE_USER'] ) ) { $_REQUEST['view'] = "postlogin"; $_REQUEST['action'] = "login"; $_REQUEST['username'] = $_SERVER['REMOTE_USER']; } } // If there are additional actions foreach ( getSkinIncludes( 'includes/actions.php' ) as $includeFile ) require_once $includeFile; ?>