EDV:Nextbbs/purgatory: Difference between revisions

From KIP Wiki
ā§¼kip-jumptonavigationā§½ā§¼kip-jumptosearchā§½
No edit summary
Ā 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
== File changes ==
== File changes ==


'''admin/edit_users.php'''
'''admin/edituser.php'''


line 152 before '''$qry .= '''
line 152 before '''$qry .= '''
Line 23: Line 23:


line 292
line 292
$purgatory = '';
$purgatory = "";


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


line 379
line 379<pre>
<tr><td>Purgatory</td><td><input type="checkbox" name="purgatory" value="1" $purchecked> $purgatory</td></tr>
<tr><td>Purgatory</td><td><input type="checkbox" name="purgatory" value="1" $purchecked> $purgatory</td></tr>
<tr><td colspan='2'><hr /></td></tr>
<tr><td colspan='2'><hr /></td></tr></pre>



== diff output ==
== diff output ==


'''diff orig_edit_user.php edituser.php'''
'''diff orig_edit_user.php edituser.php'''
151a152
<pre> 151a152
> if($INPUT['purgatory']=='1' ) { $purgatory=1; } else { $purgatory=0; }
> if($INPUT['purgatory']=='1' ) { $purgatory=1; } else { $purgatory=0; }
170c171,172
170c171,172
Line 52: Line 51:
> if ($purgatory=='1') { $purchecked="checked"; } else { $purchecked=""; }
> if ($purgatory=='1') { $purchecked="checked"; } else { $purchecked=""; }
372a379,380
372a379,380
> <tr><td>Purgatory</td><td><input type="checkbox" name="purgatory" value="1" $purchecked> $purgatory</td></tr>
> <tr><td>Purgatory</td><td><input type="checkbox" name="purgatory" value="1" $purchecked> $purgatory</td></tr>
<pre>> <tr><td colspan='2'><hr /></td></tr></pre>
> <tr><td colspan='2'><hr></td></tr>
</pre>

Latest revision as of 07:02, 4 March 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/edituser.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

 	<tr><td>Purgatory</td><td><input type="checkbox" name="purgatory" value="1" $purchecked> $purgatory</td></tr>
 	<tr><td colspan='2'><hr /></td></tr>

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
 >               <tr><td>Purgatory</td><td><input type="checkbox" name="purgatory" value="1" $purchecked> $purgatory</td></tr>
 >               <tr><td colspan='2'><hr></td></tr>