EDV:Nextbbs/purgatory
From KIP Wiki
⧼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/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>