forked from 4ducky/4ducky
The PHP sources, templates and old jQuery-based scripts move unchanged into legacy/ for reference. Shared assets (media/, images/, favicon.ico, the default avatar) stay at the repository root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
67 lines
2.0 KiB
PHP
67 lines
2.0 KiB
PHP
<?php include( $templates.'header.tpl.php' ); ?>
|
|
<div align="center">
|
|
<form action="<?php echo Config::$absolutePath; ?>login" method="post">
|
|
<fieldset>
|
|
<legend>Invites</legend>
|
|
|
|
<dl class="form">
|
|
<dt>Info:</dt>
|
|
<dd>
|
|
-Invitemissbrauch führt zum Ban. (Keine Reaktivierung) / Darunter fällt auch einem gebannten User einen Invite zu geben.
|
|
</dd>
|
|
<dt></dt>
|
|
<dd>-Nutzt die Invites weise. Baut euer Gast groben Unfug, seid ihr auch weg.</dd>
|
|
<dt>Howto:</dt>
|
|
<dd>Einfach den Link weiterschicken.</dd>
|
|
</dl>
|
|
<table class="table" width="100%" border="0" cellspacing="0">
|
|
<tr class="tabletop">
|
|
<td align="center" class="tabletoptd"><strong>InviteCode</strong></td>
|
|
<td align="center" class="tabletoptd" width="100px"><strong>Used</strong></td>
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
$invites = DB::query("SELECT * FROM pl_invites WHERE owner=:1",$user->id);
|
|
|
|
if($invites){
|
|
foreach(array_keys($invites) as $i){?>
|
|
<tr class="tablelist">
|
|
<td align="center" class="tabletd">
|
|
<?php
|
|
if($invites[$i]["used"] == "0"){
|
|
echo '<strong><a href="http://www.4ducky.com/invites/'.$invites[$i]["code"].'">'.$invites[$i]["code"].'</a></strong>';
|
|
}else{
|
|
echo $invites[$i]["code"];
|
|
}?>
|
|
</td>
|
|
<td align="center" class="tabletd" width="50px"><?php
|
|
|
|
if($invites[$i]["used"] == "0"){
|
|
echo "no";
|
|
|
|
}else{
|
|
$usedby = DB::getRow("SELECT * FROM pl_users WHERE id=:1",$invites[$i]["usedby"]);
|
|
echo $usedby["name"];
|
|
|
|
}?>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<?php }
|
|
} else{
|
|
?>
|
|
<td align="center" class="tabletd">Zurzeit keine Invites für dich</td>
|
|
<td class="tabletd"></td>
|
|
|
|
<?php }
|
|
?>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
|
|
<?php include( $templates.'footer.tpl.php' ); ?>
|