API:getUserData

From MODx Wiki
Jump to: navigation, search

Usage

$array = $modx->getUserData();

Example structure of return value:

Array
(
   [ip] => 10.1.1.15
   [ua] => mozilla/5.0 (macintosh; u; intel mac os x 10.5; en-us; rv:1.9.0.1) gecko/2008070206 firefox/3.0.1
   [browser] => mz
   [long_name] => mozilla
   [version] => 1.9.0.1
   [maj_ver] => 1
   [min_ver] => .9.0.1
   [letter_ver] => 
   [javascript] => 1.5
   [platform] => Unknown
   [os] => Unknown
   [language] => en-us,en
   [gecko] => 2008070206
   [gecko_ver] => 1.9.0.1
   [html] => true
   [images] => true
   [frames] => true
   [tables] => true
   [java] => true
   [plugins] => true
   [css2] => true
   [css1] => true
   [iframes] => true
   [xml] => true
   [dom] => true
   [hdml] => false
   [wml] => false
   [must_cache_forms] => true
   [avoid_popup_windows] => false
   [cache_ssl_downloads] => false
   [break_disposition_header] => false
   [empty_file_input_value] => false
   [scrollbar_in_way] => false
)
Personal tools