/
index.php
109 lines (103 loc) · 4.14 KB
/
index.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Quick chat";
$params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
$params["isadmin"] = true; // just for debug ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
//$params["debug"] = true;
$chat = new phpFreeChat( $params );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>phpFreeChat- Sources Index</title>
<link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/header.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/footer.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/menu.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/content.css" />
</head>
<body>
<div class="header">
<h1>phpFreeChat - Sources Index</h1>
<img alt="logo bulle" src="style/bulle.gif" class="logo2" />
</div>
<div class="menu">
<ul>
<li class="sub title">General</li>
<li>
<ul class="sub">
<li class="item">
<a href="demo/">Demos</a>
</li>
<?php if (file_exists(dirname(__FILE__)."/checkmd5.php")) { ?>
<li>
<a href="checkmd5.php">Check md5</a>
</li>
<?php } ?>
<!--
<li class="item">
<a href="admin/">Administration</a>
</li>
-->
</ul>
</li>
<li class="sub title">Documentation</li>
<li>
<ul>
<li class="item">
<a href="http://www.phpfreechat.net/overview.en.html">Overview [en]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/overview.fr.html">Overview [fr]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/overview.es.html">Overview [es]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/overview.ar.html">Overview [zh]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/overview.ar.html">Overview [ar]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/install.en.html">Install [en]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/install.fr.html">Install [fr]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/faq.en.html">FAQ [en]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/faq.fr.html">FAQ [fr]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/customize.en.html">Customize [en]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/customize.fr.html">Customize [fr]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/changelog.en.html">ChangeLog [en]</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/changelog.fr.html">ChangeLog [fr]</a>
</li>
</ul>
</li>
</ul>
<p class="partner">
<a href="http://www.phpfreechat.net"><img alt="phpfreechat.net" src="style/logo_88x31.gif" /></a><br/>
<a href="http://sourceforge.net/projects/phpfreechat"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=158880&type=1" alt="SourceForge.net Logo" height="31px" width="88px" /></a><br/><br/>
<a href="http://www.hotscripts.com/?RID=N452772">hotscripts.com</a><br/>
<a href="http://www.jeu-gratuit.net/">jeu-gratuit.net</a><br/>
<a href="http://www.pronofun.com/">pronofun.com</a><br/>
</p>
</div>
<div class="content">
<?php $chat->printChat(); ?>
</div>
</body></html>