diff -r 53cff4b4a802 -r bde1974c263b web/wp-content/plugins/exec-php/includes/user_ui.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/plugins/exec-php/includes/user_ui.php Wed Feb 03 15:37:20 2010 +0000 @@ -0,0 +1,82 @@ +m_cache =& $cache; + + add_action('show_user_profile', array(&$this, 'action_user_profile')); + add_action('edit_user_profile', array(&$this, 'action_user_profile')); + add_action('profile_update', array(&$this, 'action_profile_update')); + } + + // --------------------------------------------------------------------------- + // hooks + // --------------------------------------------------------------------------- + + function action_user_profile() + { + global $profileuser; + global $wp_version; + + if ($profileuser->has_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES)) + { + $usermeta =& $this->m_cache->get_usermeta($profileuser->ID); +?> += 0) : ?> +

+ +
+ + + + + + +
+ +
+ +
+ +has_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES)) + { + $usermeta =& $this->m_cache->get_usermeta($user_id); + $usermeta->set_from_POST(); + $usermeta->save(); + } + } +} +endif; + +?> \ No newline at end of file