forked from Bigjoos/U-232-V1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
moresmiles.php
46 lines (43 loc) · 1.93 KB
/
moresmiles.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
/**
* http://btdev.net:1337/svn/test/Installer09_Beta
* Licence Info: GPL
* Copyright (C) 2010 BTDev Installer v.1
* A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
* Project Leaders: Mindless,putyn.
**/
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
require_once INCL_DIR.'bbcode_functions.php';
dbconn(false);
$lang = array_merge( load_language('global'));
loggedinorreturn();
$htmlout = '';
$htmlout = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta name='generator' content='TBDev.net' />
<meta name='MSSmartTagsPreventParsing' content='TRUE' />
<title>More Smilies</title>
<link rel='stylesheet' href='./templates/1/itunes.css' type='text/css' />
</head>
<body>
<script type='text/javascript'>
function SmileIT(smile,form,text){
window.opener.document.forms[form].elements[text].value = window.opener.document.forms[form].elements[text].value+' '+smile+' ';
window.opener.document.forms[form].elements[text].focus();
window.close();
}
</script>
<table class='list' width='100%' cellpadding='1' cellspacing='1'>";
$count='';
while ((list($code, $url) = each($smilies))) {
if ($count % 3 == 0)
$htmlout .= " \n<tr>";
$htmlout .= "\n\t<td class=\"list\" align=\"center\"><a href=\"javascript: SmileIT('" . str_replace("'", "\'", $code) . "','" . htmlspecialchars($_GET["form"]) . "','" . htmlspecialchars($_GET["text"]) . "')\"><img border='0' src='./pic/smilies/" . $url . "' alt='' /></a></td>";
$count++;
if ($count % 3 == 0)
$htmlout .= "\n</tr>";
}
$htmlout .= "</table><div align='center'><a href='javascript: window.close()'>[ Close Window ]</a></div></body></html>";
print $htmlout;