Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?php
2
 
3
//------------------------------------------------------------------------------------------------------//
4
//																										//
5
//--->									   Talkbox Beta Version										<---//
6
//--->								 Created By AMR Graphics Dec. 2004								<---//
7
//--->						All Rights Reserved By AMR GraphicsÆ 1998 - 2005©						<---//
8
//--->			This is a freeware script and may be redistributed and/or edited as needed			<---//
9
//--->		     Please remember to give credit where credit is due. Thanks for using AMR. 			<---//
10
//																										//
11
//------------------------------------------------------------------------------------------------------//
12
//                                 							                                            //
13
//                       Multilanguage revision added by Bigh72 4 UltrasPice 04 - 2005     		        //
14
//                          www.ultraspice.it or www.casagrandeweb.altervista.org                       //
15
//                                                                                                      //
16
//------------------------------------------------------------------------------------------------------//
17
 
18
//--->	This is where the variables start, edit them to match your needs.
19
//--->	These are the CSS linking areas, place info as needed.
20
 
21
$link_css = "text.css";									//--->	Direct URL to your cascading style sheet.
22
$font_class = "sml-10reg";								//--->	Name of main font style you want to use.
23
$font_header = "lrg-11reg";								//--->	Name of main font style for headings in script pages.
24
$lang = "eng";											//--->	This is where you choose your language of preference.
25
 
26
//--->	Adjust Time (enter -12 to 12 to alter the time displayed under the posters name).
27
 
28
$adjust_time = "3";										//--->	If your not sure about time adjustments, just set it to "0".
29
 
30
//--->	Language and control area, creat a new language kit and email us. "info@amrgraphics.com"
31
 
32
$direct = "languages";									//--->	The folder/directory that contain the language kits.
33
 
34
if ($lang == "eng") {
35
  include ("$direct/lang_eng.txt");
36
} elseif ($lang =="ita") {
37
  include ("$direct/lang_ita.txt");
38
}
39
 
40
//--->	Should a scollbar be presented on any of the talkbox pages? (Yes or No)
41
 
42
$scrollbar_1 = "No";									//--->	This is the scrollbar for the main talkbox page.
43
$scrollbar_2 = "Yes";									//--->	This is the scrollbar for post/help pages.
44
 
45
//--->	Below are the text and page backgrounds in image or hex coloring.
46
 
47
$col_text = "#FFFFFF";									//--->	Standard text posting colour.
48
$back_col = "images/backgrounds/bckgrd_darkgry.gif";	//--->	Set your background for the pop-up windows.
49
$back_img = "images/backgrounds/bckgrd_talkbox.jpg";	//--->	Set your background with a hex color or an image.
50
 
51
//--->	These color settings are for setting colors of backgrounds, scrollbars, etc.
52
 
53
$colcode_1 = "#000000";									//--->	Border color of table used on the Help Code page.
54
$colcode_2 = "#768392";									//--->	Used to change the background color of the table behind the image icon in help area.
55
$colcode_3 = "#000000";									//--->	not available yet.
56
 
57
//--->	These are the text field colours.
58
 
59
$colcode_4 = "#000000";									//--->	Form text and post border color.
60
$colcode_5 = "#6E7B8B";									//--->	Form background color for the text fields.
61
$colcode_6 = "#6E7B8B";									//--->	Form background color for the post button.
62
 
63
//--->	Link colors displayed on the screen.
64
 
65
$collink_1 = "#A7D7E1";									//--->	not available yet.
66
$collink_2 = "#A7D7E1";									//--->	not available yet.
67
$collink_3 = "#A7D7E1";									//--->	Standard text link and name.
68
 
69
//--->	These are the colours for the table backgrounds and/or borders.
70
 
71
$coltabl_1 = "#768392";									//--->	First, Forth, Seventh, talkbox window etc.
72
$coltabl_2 = "#6E7B8B";									//--->	Second, Fifth, Eighth, talkbox window etc.
73
$coltabl_3 = "#596A7C";  								//--->	Third, Sixth, Ninth, talkbox and information window.
74
 
75
//--->	This is the table border color adjustment section.
76
 
77
$coltablbdr_1 = "#000000";								//--->	Used to change the colour of certain borders on select tables, such as the postings page.
78
$coltablbdr_2 = "#000000";								//--->	not available yet.
79
$coltablbdr_3 = "#000000";								//--->	not available yet.
80
 
81
//--->	Maximum amount of characters allowed per posting fields in submit form.
82
 
83
$max_char_sbox = 45;									//--->	Max length of your input text boxes.
84
$max_char_name = 15;									//--->	Max amount of characters allowed in name field.
85
$max_char_web = 50;										//--->	Max amount of characters allowed in website field.
86
$max_char_mess = 250;									//--->	Max amount of characters allowed in message field.
87
$char_max =30;											//--->	Max word length, this will chop your word up if to long.
88
 
89
//--->	Image and all it's adjustments, editing is optional and mainly for astetics for submitting of form.
90
 
91
$image_location = "images/misc/transparent.gif";		//--->	Location of image on server.
92
$image_alt_name = "transparent pixels";					//--->	Alternate name of this image.
93
$image_height = 5;										//--->	Image height in pixels or percentage.
94
$image_heightsec = 1;									//--->	Image height in pixels or percentage.
95
$image_width = 100;										//--->	Image width in pixels or percentage.
96
 
97
//--->	This controls the opening of the new windows when the posting and code links are pressed.
98
 
99
$title_post = "Talkbox | $allpost";						//--->	Title of the posting page.
100
$target_post = "_blank";								//--->	All postings will be posted in the targeted area.
101
$wid_post = 375;										//--->	The height of the window that will be opened for the postings.
102
$hid_post = 535;										//--->	The width of the window that will be opened for the postings.
103
 
104
$title_help = "Talkbox | $hlpcod";						//--->	Title of the code page.
105
$target_help = "_blank";								//--->	All help will be posted.
106
$wid_help = 375;										//--->	The height of the window that will be opened for the codes.
107
$hid_help = 535;										//--->	The width of the window that will be opened for the codes.
108
 
109
//---> TalkBox Title, Version, Etc... These variables are for informational use only do not edit, PLEASE.
110
 
111
$main_title = "Talkbox";										//--->	Title to this TalkBox and page postings.
112
$version = "v2.44b";											//--->	Version to this TalkBox and page postings.
113
$url = "http://www.amrgraphics.com/";							//--->	Url link to creators website.
114
$copy = "<a href=\"$url\" target=\"_blank\">AMR®</a>";			//--->	Creators name poster.
115
$powered = "Powered By $copy $main_title $version";				//--->	Power information.
116
 
117
//--->	Do not edit below this line unless you know PHP scripting.
118
//--->	End of variables
119
 
120
$info = wordwrap($info, $char_max, " ", 1);
121
if ($act==add) {
122
 
123
//--->	Start adding postings
124
 
125
$name = strip_tags($name,"");
126
 
127
if ($site == "http://") {
128
$name_link = "$name";
129
} elseif ($site == "") {
130
$name_link = "$name";
131
} else {
132
$name_link = "<a href=\"$site\" target=\"_blank\">$name</a>";
133
 
134
}
135
 
136
if ($name == "$def_name") {
137
	print "<meta http-equiv=\"refresh\" content=\"0; URL=talkbox.php?message=Enter+Name&info2=$info&site2=$site\">";						//--->	Change content=\0;
138
} elseif ($name == "") {
139
	print "<meta http-equiv=\"refresh\" content=\"0; URL=talkbox.php?message=Enter+Name&info2=$info&site2=$site\">";						//--->	Change content=\0;
140
} elseif ($info == "") {
141
	print "<meta http-equiv=\"refresh\" content=\"0; URL=talkbox.php?message=Enter+Message&name2=$name&site2=$site\">";						//--->	Change content=\0;
142
} elseif ($info == "$def_msg") {
143
	print "<meta http-equiv=\"refresh\" content=\"0; URL=talkbox.php?message=Enter+Message&name2=$name&site2=$site\">";						//--->	Change content=\0;
144
} elseif (strlen($info)>$max_char_mess) {
145
	print "<meta http-equiv=\"refresh\" content=\"0; URL=talkbox.php?message=Max+Characters+($max_char_mess)&name2=$name&site2=$site\">";	//--->	Change content=\0;
146
} else {
147
 
148
$file = "talkbox.txt";
149
 
150
//--->	Start TalkBox coding Faces/Swear/etc...
151
 
152
	$info = strip_tags($info,"");
153
	$info = str_replace(":D","<img src='images/faces/big_grin.gif' align='absmiddle'>",$info);
154
	$info = str_replace(":P","<img src='images/faces/big_razz.gif' align='absmiddle'>",$info);
155
	$info = str_replace(":?","<img src='images/faces/confused.gif' align='absmiddle'>",$info);
156
	$info = str_replace("8)","<img src='images/faces/cool_dude.gif' align='absmiddle'>",$info);
157
	$info = str_replace(":[","<img src='images/faces/cry_baby.gif' align='absmiddle'>",$info);
158
	$info = str_replace("8/","<img src='images/faces/eecky.gif' align='absmiddle'>",$info);
159
	$info = str_replace(":>","<img src='images/faces/evil_happy.gif' align='absmiddle'>",$info);
160
	$info = str_replace(":<","<img src='images/faces/evil_mad.gif' align='absmiddle'>",$info);
161
	$info = str_replace(":l","<img src='images/faces/frowner.gif' align='absmiddle'>",$info);
162
	$info = str_replace(":g","<img src='images/faces/greeny.gif' align='absmiddle'>",$info);
163
	$info = str_replace(":@","<img src='images/faces/mad.gif' align='absmiddle'>",$info);	
164
	$info = str_replace(":|","<img src='images/faces/neutral.gif' align='absmiddle'>",$info);
165
	$info = str_replace(":o","<img src='images/faces/redface.gif' align='absmiddle'>",$info);
166
	$info = str_replace("8]","<img src='images/faces/rolleyes.gif' align='absmiddle'>",$info);
167
	$info = str_replace("8D","<img src='images/faces/rotf.gif' align='absmiddle'>",$info);
168
	$info = str_replace(":(","<img src='images/faces/sad.gif' align='absmiddle'>",$info);
169
	$info = str_replace(":)","<img src='images/faces/smile.gif' align='absmiddle'>",$info);
170
	$info = str_replace("')","<img src='images/faces/surprised.gif' align='absmiddle'>",$info);
171
	$info = str_replace(";)","<img src='images/faces/wink.gif' align='absmiddle'>",$info);
172
	$info = str_replace(";x","<img src='images/faces/z_gunner.gif' align='absmiddle'>",$info);
173
	$info = str_replace("[url]","<a href=\"",$info);
174
	$info = str_replace("[/url]","\" target=\"_blank\">[ website ]</a>",$info);
175
	$info = str_replace("[mail]","<a href=\"mailto:",$info);
176
	$info = str_replace("[/mail]","\">[ email ]</a>",$info);
177
	$info = str_replace("$cenword_1","$censored_1",$info);
178
	$info = str_replace("$cenword_2","$censored_2",$info);
179
	$info = str_replace("$cenword_3","$censored_3",$info);
180
	$info = str_replace("$cenword_4","$censored_4",$info);
181
	$info = str_replace("$cenword_5","$censored_5",$info);
182
	$info = str_replace("$cenword_6","$censored_6",$info);
183
	$info = str_replace("$cenword_7","$censored_7",$info);
184
	$info = str_replace("$cenword_8","$censored_8",$info);
185
	$info = str_replace("$cenword_9","$censored_9",$info);
186
	$info = str_replace("$cenword_10","$censored_10",$info);
187
	$info = str_replace("$cenword_11","$censored_11",$info);
188
	$info = str_replace("$cenword_12","$censored_12",$info);
189
	$info = str_replace("$cenword_13","$censored_13",$info);
190
	$info = str_replace("$cenword_14","$censored_14",$info);
191
	$info = str_replace("$cenword_15","$censored_15",$info);
192
	$info = stripslashes($info);
193
	$name = stripslashes($name);
194
	$name_link = stripslashes($name_link);
195
 
196
//--->	End TalkBox coding
197
 
198
//--->	Start to add content to Talkbox
199
 
200
$date = date("G:i", time());
201
 
202
$date_array = explode("-", $date);
203
 
204
$new = $date_array[0] + $adjust_time;									//--->	Time of server to adjust, use variable adjust_time un set up area. 
205
 
206
$daten = date("l, dS of F Y @ $new:i", time());							//--->	Date will display as follows: "Saturday, 27th of November 2004 @ 16:30"
207
 
208
print "<meta http-equiv=\"refresh\" content=\"0; URL=talkbox.php\">";
209
 
210
$fp = fopen ($file, "r+") or die ("error when opening $file");
211
flock($fp,2);
212
$old=fread($fp, filesize($file));
213
rewind($fp);
214
fwrite ($fp, "<b>$name_link</b>: $info<br>$daten<br>\n".$old);
215
flock($fp,3);
216
fclose ($fp);
217
 
218
//--->	Stop adding content to TalkBox
219
 
220
}
221
 
222
//--->	Stop adding to TalkBox
223
 
224
} elseif ($act==all) {
225
 
226
//--->	 Start to display the HTML (TalkBox) to the screen
227
 
228
print "<html><head>
229
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
230
<meta name=\"robots\" content=\"noindex, nofollow\">
231
<title>$title_post</title>
232
<link rel='stylesheet' href='$link_css' type='text/css'>
233
</head><body background=\"$back_col\" bgproperties=\"fixed\" scroll=\"$scrollbar_2\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\">";
234
 
235
		$file = "talkbox.txt";
236
		$fp = fopen ($file, "r") or die ("error when reading $file");
237
		while ( !feof ($fp) ) {
238
		$all_posts = fgets ($fp, 9997);
239
 
240
print "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"$colcode_1\" bordercolor=\"$coltablbdr_1\">
241
        <tr> 
242
          <td bgcolor=\"$coltabl_3\"><p class=\"$font_class\">$all_posts</p></td>
243
        </tr>
244
   	</table>";
245
}
246
 
247
print "<p class=\"$font_class\" align=\"center\" valign=\"middle\">| <a href=\"javascript:self.close()\">$clo_wdw</a> |</p></body></html>";
248
 
249
//--->	 Stop displaying the HTML (TalkBox) to the screen
250
 
251
} elseif ($act == "help") {
252
 
253
//--->	Start to display the HTML (TalkBox Help Area) to the screen
254
 
255
print "<html><head>
256
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
257
<meta name=\"robots\" content=\"noindex, nofollow\">
258
<title>$title_help</title>
259
<link rel='stylesheet' href='$link_css' type='text/css'>
260
</head><body background=\"$back_col\" bgproperties=\"fixed\" scroll=\"$scrollbar_2\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\">
261
			<p class=\"$font_class\">
262
			<table bgcolor=\"$colcode_2\" align=\"center\" width=\"100%\" height=\"\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" style=\"border: 1px solid #000000\">
263
			<tr bgcolor=\"$coltabl_3\">
264
				<td align=\"center\" valign=\"middle\"><p class=\"$font_header\">AMR TalkBox Help Codes</p></td>
265
			</tr>
266
			<tr bgcolor=\"$coltabl_3\">
267
				<td align=\"center\" valign=\"middle\"><p class=\"$font_class\">$line_01</p></td>
268
			</tr>
269
			</table>
270
		<br>
271
			<table bgcolor=\"$colcode_2\" align=\"center\" width=\"100%\" height=\"\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" style=\"border: 1px solid #000000\">
272
			<tr bgcolor=\"$coltabl_3\">
273
				<td align=\"center\" valign=\"middle\"><p class=\"$font_class\">$line_02</p></td>
274
			</tr>
275
			<tr bgcolor=\"$coltabl_3\">
276
				<td align=\"center\" valign=\"middle\"><p class=\"$font_class\">$line_03</p></td>
277
			</tr>
278
			</table>
279
		<br>
280
			<table bgcolor=\"$colcode_2\" align=\"center\" width=\"100%\" height=\"300\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" style=\"border: 1px solid #000000\">
281
       		 <tr bgcolor=\"$coltabl_3\">
282
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_header\">$tabhead</p></td>
283
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_header\">Smiley</p></td>
284
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
285
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_header\">$tabhead</p></td>
286
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_header\">Smiley</p></td>
287
       		 </tr>
288
       		 <tr bgcolor=\"$coltabl_3\">
289
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :D </p></td>
290
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/big_grin.gif\" align=\"absmiddle\"></p></td>
291
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
292
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :p </p></td>
293
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/big_razz.gif\" align=\"absmiddle\"></p></td>
294
       		 </tr>
295
       		 <tr bgcolor=\"$coltabl_3\">
296
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :? </p></td>
297
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/confused.gif\" align=\"absmiddle\"></p></td>
298
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
299
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis 8) </p></td>
300
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/cool_dude.gif\" align=\"absmiddle\"></p></td>
301
       		 </tr>
302
       		    <tr bgcolor=\"$coltabl_3\">
303
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :[ </p></td>
304
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/cry_baby.gif\" align=\"absmiddle\"></p></td>
305
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
306
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis 8/ </p></td>
307
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/eecky.gif\" align=\"absmiddle\"></p></td>
308
       		 </tr>
309
       		 <tr bgcolor=\"$coltabl_3\">
310
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :> </p></td>
311
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/evil_happy.gif\" align=\"absmiddle\"></p></td>
312
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
313
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :< </p></td>
314
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/evil_mad.gif\" align=\"absmiddle\"></p></td>
315
       		 </tr>
316
       		 <tr bgcolor=\"$coltabl_3\">
317
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :l </p></td>
318
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/frowner.gif\" align=\"absmiddle\"></p></td>
319
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
320
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :g </p></td>
321
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/greeny.gif\" align=\"absmiddle\"></p></td>
322
       		 </tr>
323
       		 <tr bgcolor=\"$coltabl_3\">
324
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :@ </p></td>
325
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/mad.gif\" align=\"absmiddle\"></p></td>
326
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
327
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :| </p></td>
328
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/neutral.gif\" align=\"absmiddle\"></p></td>
329
       		 </tr>
330
       		 <tr bgcolor=\"$coltabl_3\">
331
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :o </p></td>
332
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/redface.gif\" align=\"absmiddle\"></p></td>
333
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
334
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis 8] </p></td>
335
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/rolleyes.gif\" align=\"absmiddle\"></p></td>
336
       		 </tr>
337
       		    <tr bgcolor=\"$coltabl_3\">
338
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis 8D </p></td>
339
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/rotf.gif\" align=\"absmiddle\"></p></td>
340
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
341
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :( </p></td>
342
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/sad.gif\" align=\"absmiddle\"></p></td>
343
       		 </tr>
344
       		 <tr bgcolor=\"$coltabl_3\">
345
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis :) </p></td>
346
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/smile.gif\" align=\"absmiddle\"></p></td>
347
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
348
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis ') </p></td>
349
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/surprised.gif\" align=\"absmiddle\"></p></td>
350
       		 </tr>
351
       		 <tr bgcolor=\"$coltabl_3\">
352
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis ;) </p></td>
353
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/wink.gif\" align=\"absmiddle\"></p></td>
354
				<td width=\"2%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"10\" width=\"10\"></p></td>
355
				<td width=\"34%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\">$usthis ;x </p></td>
356
				<td width=\"15%\" align=\"center\" valign=\"middle\"><p class=\"$font_class\"><img src=\"images/faces/z_gunner.gif\" align=\"absmiddle\"></p></td>
357
       		 </tr> 
358
			</table>
359
		<br>
360
			<table bgcolor=\"$colcode_2\" align=\"center\" width=\"100%\" height=\"\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" style=\"border: 1px solid #000000\">
361
			<tr bgcolor=\"$coltabl_3\"> 
362
		  		<td align=\"center\" valign=\"middle\"><p class=\"$font_header\">$line_04<br></p></td>
363
			</tr>
364
			<tr bgcolor=\"$coltabl_3\">
365
				<td align=\"center\" valign=\"middle\"><p class=\"$font_class\">$line_05 $main_title $line_06 $version.</p></td>
366
			</tr>
367
			</table>
368
		<br>
369
			<table bgcolor=\"$colcode_2\" align=\"center\" width=\"100%\" height=\"\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" style=\"border: 1px solid #000000\">
370
			<tr bgcolor=\"$coltabl_3\">
371
				<td><p class=\"$font_class\" align=\"center\" valign=\"middle\">| <a href=\"javascript:self.close()\">$clo_wdw</a> |</p></td>
372
			</td>
373
			</table></p></body></html>";
374
 
375
//--->	Stop displaying the HTML (TalkBox Help Area) to the screen
376
 
377
} else {
378
 
379
//--->	Start to display the TalkBox postings on screen
380
 
381
$file = "talkbox.txt";
382
$fp = fopen ($file, "r+") or die ("error when reading $file");
383
$mess = file($file);
384
 
385
if ($name2 == "$name" ) { $name2 = "$def_name"; }		//--->	Change "NAME" and it'll be changed on the screen in your TalkBox.
386
 
387
if ($site2 == "$site" ) { $site2 = "http://"; }		//--->	Change "HTTP://" and it'll be changed on the screen in your TalkBox.
388
 
389
if ($info2 == "$info" ) { $info2 = "$def_msg"; }		//--->	Change "MESSAGE" and it'll be changed on the screen in your TalkBox.
390
 
391
 
392
print "<html><head>
393
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
394
<meta name=\"robots\" content=\"noindex, nofollow\">
395
<title>$main_title $version</title>
396
<link rel=\"stylesheet\" href=\"$link_css\" type=\"text/css\">
397
</head>
398
<body background=\"$back_img\" bgproperties=\"fixed\" scroll=\"$scrollbar_1\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\">";
399
 
400
print "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=\"$colcode_1\">
401
  <tr>
402
    <td> 
403
      <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$colcode_1\" bordercolor=\"$coltablbdr_1\">
404
        <tr> 
405
          <td bgcolor=\"$coltabl_1\"><p class=\"$font_class\" color=\"$col_text\">$mess[0]</p></td>
406
        </tr>
407
        <tr>
408
          <td bgcolor=\"$coltabl_2\"><p class=\"$font_class\" color=\"$col_text\">$mess[1]</p></td>
409
        </tr>
410
        <tr>
411
          <td bgcolor=\"$coltabl_3\"><p class=\"$font_class\" color=\"$col_text\">$mess[2]</p></td>
412
        </tr>
413
        <tr>
414
          <td bgcolor=\"$coltabl_1\"><p class=\"$font_class\" color=\"$col_text\">$mess[3]</p></td>
415
        </tr>
416
        <tr>
417
          <td bgcolor=\"$coltabl_2\"><p class=\"$font_class\" color=\"$col_text\">$mess[4]</p></td>
418
        </tr>
419
        <tr>
420
          <td bgcolor=\"$coltabl_3\"><p class=\"$font_class\" color=\"$col_text\">$mess[5]</p></td>
421
		</tr>
422
      </table>
423
    </td>
424
  </tr>
425
</table>";	
426
 
427
print "<table>
428
			<form name=\"input\" method=\"post\" action=\"talkbox.php?act=add\">
429
				<table class=\"$font_class\" width=\"0\" height=\"0\" border=\"0\" bordercolor=\"$colcode_4\" cellspacing=\"0\" cellpadding=\"0\">
430
					<p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"$image_height\" width=\"$image_width\"></p>
431
					<tr><td>
432
						<input class=\"$font_class\" type=\"text\" name=\"name\" value=\"$name2\" onfocus=\"this.value=''\" class=\"text\" style=\"border:1px solid $colcode_4; border-style: solid; background-color:$colcode_5;\" size=\"$max_char_sbox\" maxlength=\"$max_char_name\">	
433
					</td></tr>
434
					<tr><td>
435
						<p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"$image_heightsec\" width=\"$image_width\"></p>
436
					</td></tr>
437
					<tr><td>
438
						<input class=\"$font_class\" type=\"text\" name=\"site\" value=\"$site2\" class=\"text\" style=\"border:1px solid $colcode_4; border-style: solid; background-color:$colcode_5;\" size=\"$max_char_sbox\" maxlength=\"$max_char_web\">
439
					</td></tr>
440
					<tr><td>
441
						<p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"$image_heightsec\" width=\"$image_width\"></p>
442
					</td></tr>
443
					<tr><td>
444
						<input class=\"$font_class\" type=\"text\" name=\"info\" value=\"$info2\" onfocus=\"this.value=''\" class=\"text\" style=\"border:1px solid $colcode_4; border-style: solid; background-color:$colcode_5;\" size=\"$max_char_sbox\" maxlength=\"$max_char_mess\">
445
					</td></tr>
446
					<tr><td>
447
						<p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"$image_height\" width=\"$image_width\"></p>
448
					</td></tr>
449
					<tr>
450
					<td>
451
					<table width=\"250\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
452
						<tr>
453
							<td align=\"left\" valign=\"middle\" width=\"40\"><input class=\"$font_class\" type=\"submit\" name=\"submit\" value=\"submit\" class=\"text\" style=\"border:1px solid $colcode_4; border-style: solid; background-color:$colcode_6;\"></td>
454
							<td align=\"left\" valign=\"middle\" width=\"5\"></td>
455
							<td align=\"left\" valign=\"middle\" width=\"205\"><p class=\"$font_class\">| <a href=\"#\" target=\"$target_post\" onclick=\"window.open('?act=all',this.target,'width=$wid_post,height=$hid_post'); return false;\" title=\"$title_post\">$allpost</a> | - | <a href=\"#\" target=\"$target_help\" onclick=\"window.open('?act=help',this.target,'width=$wid_help,height=$hid_help'); return false;\" title=\"$title_help\">$hlpcod</a> |</p></td>
456
						</tr>
457
					</table>
458
					</td</tr>
459
					<tr><td>
460
						<p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"$image_height\" width=\"$image_width\"></p>
461
					</td></tr>
462
					<tr><td>
463
						<p class=\"$font_class\">$message</b></p>
464
					</td></tr>
465
					<tr><td>
466
						<p class=\"$font_class\"><img src=\"$image_location\" alt=\"$image_alt_name\" height=\"$image_height\" width=\"$image_width\"></p>
467
					</td></tr>
468
					<tr><td>
469
						<p class=\"$font_class\">$powered</p>
470
					</td></tr>
471
				</table>
472
			</form>
473
		</table>
474
	</body>
475
</html>";
476
 
477
//--->	Stop displaying the TalkBox and posting it on screen
478
 
479
}
480
 
481
?>
482