Pastoid

The page you are looking at now is at this URL: http://pastoid.com/aoc

This paste was last updated on February 17, 2009 at 9:46 pm.

Pasted Coderaw

	public function filter_adminhandler_post_user_fields ( $fields ) {
		$fields['ircnick'] = 'ircnick';
 
		return $fields;
	}
 
	public function action_form_user ( $form, $edit_user ) {
 
		// only allow the user to set this option for themselves
		if ( User::identify() != $edit_user ) {
			//return;
		}
 
		$ircnick = ( isset( $user->info->ircnick ) ) ? $user->info->ircnick : '';
 
		// insert the UPX block into the form above the page_controls section
		$upx = $form->insert('page_controls', 'wrapper', 'upx', _t('UPX'));
		$upx->class = 'container settings';
		$upx->append( 'static', 'upx', '<h2>' . htmlentities( _t('UPX'), ENT_COMPAT, 'UTF-8' ) . '</h2>' );
 
		$ircnick = $form->upx->append('text', 'ircnick', )
 
 
	}

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 6
mibbit.com 1
drunkenmonkey.org 1
Is this paste spam?
<Hide