Recent Topics

1 Nov 28, 2009 02:11    

My b2evolution Version: 3.3.2

I posted this is a hack request, but i'm now sure it can be done. I just want to know if there is a way to get around the failsafes. How would a user be able to delete themselves?

especially if they cannot access admin.php. They can change their accounts through it, but cannot delete? How would I mod the code to get this done. I have in _profile.disp.php:

$ProfileForm->begin_fieldset( T_('Additional info') );

	$ProfileForm->info( T_('Level'), $current_User->get('level') );
	$ProfileForm->info( T_('Posts'), $current_User->get('num_posts') );
	$ProfileForm->text_input( 'newuser_url', $current_User->get( 'url' ), 40, T_('URL'), '', array( 'maxlength' => 100, 'class' => 'bComment' ) );
	$ProfileForm->text_input( 'newuser_icq', $current_User->get( 'icq' ), 40, T_('ICQ'), '', array( 'maxlength' => 10, 'class' => 'bComment' ) );
	$ProfileForm->text_input( 'newuser_aim', $current_User->get( 'aim' ), 40, T_('AOL I.M.'), '', array( 'maxlength' => 50, 'class' => 'bComment' ) );
	$ProfileForm->text_input( 'newuser_msn', $current_User->get( 'msn' ), 40, T_('MSN I.M.'), '', array( 'maxlength' => 100, 'class' => 'bComment' ) );
	$ProfileForm->text_input( 'newuser_yim', $current_User->get( 'yim' ), 40, T_('Yahoo I.M.'), '', array( 'maxlength' => 50, 'class' => 'bComment' ) );

	$ProfileForm->checkbox( 'user_delete', '0', T_('Delete Account'), T_('Check this to be Delete Your account') );

$ProfileForm->end_fieldset();

$ProfileForm->buttons( array( array( '', '', T_('Update'), 'SaveButton' ), array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );

$ProfileForm->end_form();

Now how would I get this button to actually delete the user account and then when the page reloads redirect to the home page because the user is no longer logged in?


Form is loading...