This commit is contained in:
2022-10-06 22:04:13 +02:00
commit 4bc486fd92
487 changed files with 19040 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
<?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' ); ?>