1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74:
|
<?php
// 27062004
require_once "common.php";
isnewday(2);
if ($_GET['op']=="block") { $sql = "UPDATE accounts SET avatar='' WHERE acctid=$_GET[userid]"; systemmail($_GET['userid'],"Dein Avatar wurde entfernt","Der Administrator hat beschlossen, dass dein Avatar unangebracht ist, oder nicht funktionierte, und hat ihn entfernt.`n`nWenn du darüber diskutieren willst, benutze bitte den Link zur Hilfeanfrage."); db_query($sql); }
$ppp=25; // Player Per Page to display
if (!$_GET[limit]) {$page=0;}
else { $page=(int)$_GET[limit]; addnav("Vorherige Seite","avatars.php?limit=".($page-1).""); }
$limit="".($page*$ppp).",".($ppp+1); $sql = "SELECT name,acctid,avatar FROM accounts WHERE avatar>'' ORDER BY acctid DESC LIMIT $limit"; $result = db_query($sql);
if (db_num_rows($result)>$ppp) addnav('Nächste Seite','avatars.php?limit='.($page+1).'');
page_header('Spieleravatare');
output('`n`c`bSpieleravatare - Seite '.$page.'`b`c`n',true);
for ($i=0;$i<db_num_rows($result);$i++) { $row = db_fetch_assoc($result);
output('`c<table border="1"><tr>',true);
output('<td>`&'.$row['name'].'`n`n <a href="avatars.php?op=block&userid='.$row['acctid'].'">`^`bentfernen`b</a></td>`n`n',true); addnav('','avatars.php?op=block&userid='.$row['acctid'].'');
$pic_size = @getimagesize($row['avatar']); $pic_width = $pic_size[0]; $pic_height = $pic_size[1];
output('<td><img src="'.$row['avatar'].'"',true);
if ($pic_width > 200) output('width="200"',true );
if ($pic_height > 200) output('height="200"',true );
output('</td></tr></table>`c',true); }
db_free_result($result);
addnav('G?Zurück zur Grotte','superuser.php'); addnav('W?Zurück zum Weltlichen','village.php'); addnav('Aktualisieren','avatars.php');
page_footer(); ?>
|