EDV:Nextbbs/purgatory: Difference between revisions
From KIP Wiki
ā§¼kip-jumptonavigationā§½ā§¼kip-jumptosearchā§½
No edit summary |
No edit summary |
||
Line 52: | Line 52: | ||
> 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> |
||
> <tr><td colspan='2'><hr /></td></tr> |
<pre>> <tr><td colspan='2'><hr /></td></tr></pre> |
Revision as of 07:21, 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
> <tr><td colspan='2'><hr /></td></tr>