EDV:Nextbbs/purgatory

From KIP Wiki
Revision as of 07:18, 26 February 2008 by Weis (talk | contribs)
⧼kip-jumptonavigation⧽⧼kip-jumptosearch⧽

netxBBS / set or remove purgatory flag

In the current version ( nightly build ) it is possible to set a 'purgatory flag' for newly registered users. But the is still no technique to remove this flag. The following changes enables an admin user set or remove this flag via the admin_CP and User Properties:

File changes

admin/edit_users.php

line 152 before $qry .=

	if($INPUT['purgatory']=='1' ) { $purgatory=1; } else  { $purgatory=0; }

line 171

		"',purgatory=$purgatory".
		" WHERE server='{$CONFIG->server}' AND user_ID='{$INPUT['eid']}'";

line 234

	$purgatory = &$row['purgatory'];

line 262

	$purgatory = &$INPUT['purgatory'];

line 292

	$purgatory = ;

line 353

	if ($purgatory=='1') { $purchecked="checked"; } else { $purchecked=""; }

line 379

Purgatory<input type="checkbox" name="purgatory" value="1" $purchecked> $purgatory



diff output

diff orig_edit_user.php edituser.php
151a152
>                               if($INPUT['purgatory']=='1' ) { $purgatory=1; } else  { $purgatory=0; }
170c171,172
<                                       "' WHERE server='{$CONFIG->server}' AND user_ID='{$INPUT['eid']}'";
---
>                                       "',purgatory=$purgatory".
>                                       " WHERE server='{$CONFIG->server}' AND user_ID='{$INPUT['eid']}'";
231a234
>                       $purgatory = &$row['purgatory'];
258a262
>                       $purgatory = &$INPUT['purgatory'];
287a292
>                       $purgatory = ;
347a353
>               if ($purgatory=='1') { $purchecked="checked"; } else { $purchecked=""; }
372a379,380

> Purgatory<input type="checkbox" name="purgatory" value="1" $purchecked> $purgatory >