-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathavatars.php
46 lines (41 loc) · 1.65 KB
/
avatars.php
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
<?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("`b`&Spieler Avatare - Seite $page:`0`b`n");
for ($i=0;$i<db_num_rows($result);$i++){
$row = db_fetch_assoc($result);
output("`![<a href='avatars.php?op=block&userid={$row['acctid']}'>Entfernen</a>]",true);
addnav("","avatars.php?op=block&userid={$row['acctid']}");
output("`&{$row['name']}: `^");
$pic_size = @getimagesize($row[avatar]);
$pic_width = $pic_size[0];
$pic_height = $pic_size[1];
output("<img src=\"$row[avatar]\" ",true);
if ($pic_width > 200) output("width=\"200\" ",true );
if ($pic_height > 200) output("height=\"200\" ",true );
output("alt=\"$row[name]\"> `n`n",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();
?>