Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?
2
/*
3
 +-------------------------------------------------------------------+
4
 |                      S H O U T B O X   (v1.0)                     |
5
 |                          P a r t   III                            |
6
 |                                                                   |
7
 | Copyright Gerd Tentler               http://www.gerd-tentler.de   |
8
 | Created: Jun. 1, 2004                Last modified: Jul. 21, 2005 |
9
 +-------------------------------------------------------------------+
10
 | This program may be used and hosted free of charge by anyone for  |
11
 | personal purpose as long as this copyright notice remains intact. |
12
 |                                                                   |
13
 | Obtain permission before selling the code for this program or     |
14
 | hosting this software on a commercial website or redistributing   |
15
 | this software over the Internet or in any other medium. In all    |
16
 | cases copyright must remain intact.                               |
17
 +-------------------------------------------------------------------+
18
*/
19
  error_reporting(E_WARNING);
20
 
21
//========================================================================================================
22
// Includes
23
//========================================================================================================
24
 
25
  include('config.inc.php');
26
  if(!isset($language)) $language = 'en';
27
  include("lang_$language.inc");
28
  include('smilies.inc');
29
 
30
//========================================================================================================
31
// Main
32
//========================================================================================================
33
?>
34
<html>
35
<head>
36
<title><? echo $msg['smilies']; ?></title>
37
<script language="JavaScript"> <!--
38
function insert(txt) {
39
  if(window.opener) {
40
    el = window.opener.document.fShout.Text;
41
    if(!el.value) el.value = txt + ' ';
42
    else el.value += ((el.value.charAt(el.value.length-1) == ' ') ? '' : ' ') + txt + ' ';
43
    self.close();
44
  }
45
}
46
//--> </script>
47
<link rel="stylesheet" href="shoutbox.css" type="text/css">
48
</head>
49
<body leftmargin=5 topmargin=5 marginwidth=5 marginheight=5>
50
<table border=0 cellspacing=0 cellpadding=4 align=center>
51
<?
52
  while(list($code, $img) = each($sm)) {
53
    if($img != $img_old) {
54
      $bgcolor = ($bgcolor != '#E0E0E0') ? '#E0E0E0' : '#F0F0F0';
55
?>
56
      <tr bgcolor=<? echo $bgcolor; ?>>
57
      <td><a href="javascript:insert('<? echo $code; ?>')">
58
      <img src="smilies/<? echo $img; ?>" border=0 width=15 height=15></a></td>
59
      <td class="cssShoutText"><b><? echo $code; ?></b></td>
60
      </tr>
61
<?
62
    }
63
    $img_old = $img;
64
  }
65
?>
66
</table>
67
</body>
68
</html>