This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpopup_avatars.php
53 lines (49 loc) · 1.67 KB
/
popup_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
47
48
49
50
51
52
53
<?
require("include/misc.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<title>pouet.net avatars</title>
<link rel="stylesheet" href="include/style.css" type="text/css">
<link rel="search" type="application/opensearchdescription+xml" href="opensearch_prod.xml" title="pouët.net - prod search" />
<meta name="description" content="pouët.net - your online demoscene resource">
<meta name="keywords" content="pouët.net,256b,1k,4k,40k,64k,cracktro,demo,dentro,diskmag,intro,invitation,lobster sex,musicdisk,Amiga AGA,Amiga ECS,Amiga PPC,Amstrad CPC,Atari ST,BeOS,Commodore 64,Falcon,MS-Dos,Linux,MacOS,Windows">
<script language="JavaScript" type="text/javascript">
<!--
function pickAvatar(s) {
window.opener.document.forms["<?=htmlspecialchars($_GET['form'], ENT_QUOTES, 'UTF-8')?>"].<?=htmlspecialchars($_GET['field'], ENT_QUOTES, 'UTF-8')?>.value=s;
window.opener.document.avatr.src='avatars/'+s;
window.close();
}
//-->
</script>
</head>
<body background="gfx/trumpet.gif" bgcolor="#3A6EA5">
<br />
<br />
<table style="margin:0px auto"><tr><td valign="top">
<table bgcolor="#000000" cellspacing="1" cellpadding="0" border="0">
<tr>
<th>select your avatar</th>
</tr>
<tr>
<td class="bg1" style="padding: 5px;">
<?
$entry = glob("./avatars/*.gif");
foreach($entry as $e) {
$en = str_replace("./avatars/","",$e);
printf("<a href='javascript:pickAvatar(\"%s\")'><img src='%s' alt='avatar' border='0'/></a>\n",$en,$e);
}
?>
</td>
</tr>
</table>
</td>
</tr></table>
<br />
</div>
</body>
</html>