Obsah proměnné $user->data v phpBB
18. Prosinec 2008
Pomocí funkce print_r() jsem si nechal vypsat obsah pole $user->data[] pro nepřihlášeného uživatele. Vidíme tak, jaka data můžeme získat bezpracně. Například barvu uživatele: $user->data['user_colour'] atp..
[user_id] => 1
[user_type] => 2
[group_id] => 1
[user_permissions] => 00000000003khra3nk i1cjyo000000 i1cjyo000000 i1cjyo000000
[user_perm_from] => 0
[user_ip] =>
[user_regdate] => 1227702342
[username] => Anonymous
[username_clean] => anonymous
[user_password] =>
[user_passchg] => 0
[user_pass_convert] => 0
[user_email] =>
[user_email_hash] => 0
[user_birthday] =>
[user_lastvisit] => 0
[user_lastmark] => 0
[user_lastpost_time] => 0
[user_lastpage] =>
[user_last_confirm_key] =>
[user_last_search] => 0
[user_warnings] => 0
[user_last_warning] => 0
[user_login_attempts] => 0
[user_inactive_reason] => 0
[user_inactive_time] => 0
[user_posts] => 0
[user_lang] => cs
[user_timezone] => 0.00
[user_dst] => 0
[user_dateformat] => d M Y H:i
[user_style] => 2
[user_rank] => 0
[user_colour] =>
[user_new_privmsg] => 0
[user_unread_privmsg] => 0
[user_last_privmsg] => 0
[user_message_rules] => 0
[user_full_folder] => -3
[user_emailtime] => 0
[user_topic_show_days] => 0
[user_topic_sortby_type] => t
[user_topic_sortby_dir] => d
[user_post_show_days] => 0
[user_post_sortby_type] => t
[user_post_sortby_dir] => a
[user_notify] => 0
[user_notify_pm] => 1
[user_notify_type] => 0
[user_allow_pm] => 1
[user_allow_viewonline] => 1
[user_allow_viewemail] => 1
[user_allow_massemail] => 0
[user_options] => 895
[user_avatar] =>
[user_avatar_type] => 0
[user_avatar_width] => 0
[user_avatar_height] => 0
[user_sig] =>
[user_sig_bbcode_uid] =>
[user_sig_bbcode_bitfield] =>
[user_from] =>
[user_icq] =>
[user_aim] =>
[user_yim] =>
[user_msnm] =>
[user_jabber] =>
[user_website] =>
[user_occ] =>
[user_interests] =>
[user_actkey] =>
[user_newpasswd] =>
[user_form_salt] => a85f92ac60096180
[session_last_visit] => 1229628479
[is_registered] =>
[is_bot] =>
[session_id] => e417cf1d45228067c9df78a4009c2b93
[session_user_id] => 1
[session_start] => 1229628479
[session_time] => 1229628479
[session_browser] => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
[session_forwarded_for] =>
[session_ip] => 94.166.0.108
[session_autologin] => 0
[session_admin] => 0
[session_viewonline] => 1
[session_page] => ../soubor.php
[session_forum_id] => 0