EDV:Nextbbs/purgatory: Difference between revisions

From KIP Wiki
ā§¼kip-jumptonavigationā§½ā§¼kip-jumptosearchā§½
No edit summary
Ā 
No edit summary
Line 1: Line 1:
= netxBBS / set/get purgatory flag =
= netxBBS / set or remove purgatory flag =


In the current version ( nightly build ) it is possible to set a 'purgatory flag' for newly registered users.
In the current version ( nightly build ) it is possible to set a 'purgatory flag' for newly registered users.

Revision as of 07:18, 26 February 2008

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 >