mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
149 lines
8.6 KiB
PHP
149 lines
8.6 KiB
PHP
|
|
<?php
|
||
|
|
require "../include/bittorrent.php";
|
||
|
|
dbconn();
|
||
|
|
loggedinorreturn();
|
||
|
|
if (get_user_class() < UC_SYSOP)
|
||
|
|
stderr("Sorry", "Access denied.");
|
||
|
|
|
||
|
|
$validTypeMap = [
|
||
|
|
'seedbonus' => 'Bonus',
|
||
|
|
'attendance_card' => 'Attend card',
|
||
|
|
'invites' => 'Invite',
|
||
|
|
'uploaded' => 'Upload',
|
||
|
|
];
|
||
|
|
$type = $_REQUEST['type'] ?? '';
|
||
|
|
stdhead("Add Bonus/Attend card/Invite/upload", false);
|
||
|
|
?>
|
||
|
|
<table class=main width=737 border=0 cellspacing=0 cellpadding=0><tr><td class=embedded>
|
||
|
|
<div align=center>
|
||
|
|
<h1>Add Bonus/Attend card/Invite/upload to all staff members and users:</a></h1>
|
||
|
|
<form method=post action=take-increment-bulk.php>
|
||
|
|
<?php
|
||
|
|
|
||
|
|
if (isset($_GET["returnto"]) || $_SERVER["HTTP_REFERER"])
|
||
|
|
{
|
||
|
|
?>
|
||
|
|
<input type=hidden name=returnto value="<?php echo htmlspecialchars($_GET["returnto"]) ? htmlspecialchars($_GET["returnto"]) : htmlspecialchars($_SERVER["HTTP_REFERER"])?>">
|
||
|
|
<?php
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<table cellspacing=0 cellpadding=5>
|
||
|
|
<?php
|
||
|
|
if (isset($_GET["sent"]) && $_GET["sent"] == 1) {
|
||
|
|
echo '<tr><td colspan=2 class="text" align="center"><font color=red><b> '. ($validTypeMap[$type] ?? '') .' has been added and inform message has been sent.</font></b></tr></td>';
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<tr>
|
||
|
|
<td class="rowhead" valign="top">Type </td>
|
||
|
|
<td class="rowfollow">
|
||
|
|
<?php
|
||
|
|
foreach ($validTypeMap as $name => $text) {
|
||
|
|
$desc = '';
|
||
|
|
if ($name == 'uploaded') {
|
||
|
|
$desc = ' (in GB)';
|
||
|
|
}
|
||
|
|
printf('<label><input type="radio" name="type" value="%s">%s%s</label>', $name, $text, $desc);
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><td class="rowhead" valign="top">Amount </td><td class="rowfollow"><input type=text name=amount size=10></td></tr>
|
||
|
|
<tr>
|
||
|
|
<td class="rowhead" valign="top">Add to</td><td class="rowfollow">
|
||
|
|
<table style="border: 0" width="100%" cellpadding="0" cellspacing="0">
|
||
|
|
<tr>
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="0">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Peasant</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="1">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">User</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="2">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Power User</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="3">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Elite User</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="4">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Crazy User</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="5">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Insane User</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="6">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Veteran User</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="7">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Extreme User</td>
|
||
|
|
</tr>
|
||
|
|
|
||
|
|
<tr>
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="8">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Ultimate User</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="9">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Nexus Master</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="10">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">VIP</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="11">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Uploader</td>
|
||
|
|
</tr>
|
||
|
|
|
||
|
|
<tr>
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="12">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Moderator</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="13">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Administrator</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="14">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">SysOp</td>
|
||
|
|
|
||
|
|
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="15">
|
||
|
|
</td>
|
||
|
|
<td style="border: 0">Staff Leader</td>
|
||
|
|
|
||
|
|
<td style="border: 0"> </td>
|
||
|
|
<td style="border: 0"> </td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr><td class="rowhead" valign="top">Subject </td><td class="rowfollow"><input type=text name=subject size=82></td></tr>
|
||
|
|
<tr><td class="rowhead" valign="top">Reason </td><td class="rowfollow"><textarea name=msg cols=80 rows=5><?php echo $body ?? ''?></textarea></td></tr>
|
||
|
|
<tr>
|
||
|
|
<td class="rowfollow" colspan=2><div align="center"><b>Operator: </b>
|
||
|
|
<?php echo $CURUSER['username']?>
|
||
|
|
<input name="sender" type="radio" value="self" checked>
|
||
|
|
System
|
||
|
|
<input name="sender" type="radio" value="system">
|
||
|
|
</div></td></tr>
|
||
|
|
<tr><td class="rowfollow" colspan=2 align=center><input type=submit value="Do It!" class=btn></td></tr>
|
||
|
|
</table>
|
||
|
|
<input type=hidden name=receiver value=<?php echo $receiver ?? ''?>>
|
||
|
|
</form>
|
||
|
|
|
||
|
|
</div></td></tr></table>
|
||
|
|
<br />
|
||
|
|
NOTE: Do not user BB codes. (NO HTML)
|
||
|
|
<?php
|
||
|
|
stdfoot();
|