Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?php
2
 
3
/************************************
4
the version of G-Shout
5
don't change it, for updating purpose
6
*************************************/
7
$version = "1.3.1";
8
 
9
/************************************************************************/
10
/* G-Shout : Gravitasi Shoutbox                                         */
11
/* ============================================                         */
12
/*                                                                      */
13
/* Copyright (c) 2005 by Yohanes Pradono                                */
14
/* http://gravitasi.com                                                 */
15
/*                                                                      */
16
/* This program is free software. You can redistribute it and/or modify */
17
/* it under the terms of the GNU General Public License as published by */
18
/* the Free Software Foundation; either version 2 of the License.       */
19
/*                                                                      */
20
/************************************************************************/
21
 
22
/***************************************
23
 
24
NOTICE NOTICE NOTICE
25
For security reasons, you MUST rename and set the $datafile file and $logfile file (default are 'default.dat' and 'default.log') to be writeable. 
26
From telnet you can type: 
27
chmog ugo+w default.dat
28
chmog ugo+w default.log
29
or 
30
chmod 0666 default.dat
31
chmod 0666 default.log (this sets writeable and readable to all -rw-rw-rw-)
32
 
33
From FTP you can set writeable and readable to all -rw-rw-rw-
34
Please refer to manual for other FTP programs.
35
 
36
DO NOT DELETE index.html file INSIDE DIRECTORY "SECRET"
37
 
38
It would be better if you move directory "secret" to other directory inside your server
39
and then 
40
 
41
Ask your friend if you're in deep trouble :)
42
 
43
***************************************/
44
 
45
/*
46
// to prevent direct access
47
*/
48
if (eregi("config.php",$_SERVER['PHP_SELF'])) {
49
	die("<b>Access Denied!</b><br /><i>You can't access this file directly...</i><br /><br />- G-Shout -");
50
}
51
 
52
 
53
 
54
/* -------------------- BEGIN EDIT HERE ------------------- */
55
 
56
 
57
 
58
/* ADMIN LOGIN */
59
 
60
/* Password for logging in to Control Panel */
61
$admin_password = "gshout";
62
 
63
/* 
64
// Please rename the directory that contains default.dat and default.log file 
65
// to something hard to be guessed.
66
*/
67
$secret_dir = "tajne";
68
 
69
/* change these 2 file's names to something hard to be guessed */
70
$database = "texty.dat";
71
$log = "logy.log";
72
 
73
 
74
/*******************
75
You can edit the variables below later when you are logged in, and go to 'Edit Configuration' page
76
********************/
77
 
78
/* a question if you forget your password */
79
$secret_question = "Who is the author of G-Shout ?";
80
$secret_answer = "donie";
81
 
82
/* themes for admin control panel */
83
$skin = "default";
84
 
85
/* choose your language file inside languages/ directory */
86
$language = "english";
87
 
88
/* 
89
// protected nick, prevent visitors to use your nick and 
90
// this is used to display your name when you reply their messages
91
*/
92
$namaadmin = "yourNick";
93
 
94
/* your own web site */
95
$adminweb = "http://www.yoursite.com";
96
 
97
/*
98
// Option whether you want to keep the last ... entries, and shouts before them, will be auto deleted.
99
// ex: $keep = "20";
100
// set to $keep = "all"; if you want to keep all shouts.
101
*/
102
$keep = "200";
103
 
104
/*
105
// This is to avoid flooding. The person have to wait for another $floodwait minutes to post another messages. 
106
// Set it to '0' to disable it.
107
*/
108
$floodwait = "1";
109
 
110
/* the amount of comments shown. */
111
$commentshown = "40";
112
 
113
/* if idle within these minutes, automatic logged out */
114
$autologout = "20";
115
 
116
/*
117
// If a user posts, they can delete that post within $deletetime minutes of
118
// it being posted, as long as they have the same IP address as when they 
119
// posted it.
120
// If you don't want deleting, set to -1. Default is 20.
121
*/
122
$deletetime = "20";
123
 
124
/* keep the last ... logs, all logs before these last logs will be auto-deleted. */
125
$lastlogs = "250";
126
 
127
/* maximum characters for each comments. Set it 0 (zero) if you don't want to limit it. */
128
$maxchars = "160";
129
 
130
/*
131
// useful if the form becomes one with shoutbox.
132
// use cookie control to save name and url/email so that returning visitor don't have to retype it.
133
*/
134
$usecookie = "no";
135
 
136
/* text wrapping to avoid horizontal scrollbars for visitor who wrote long unbroken word. */
137
$usetextwrapping = "yes";
138
 
139
/*
140
// the width of the text wrapping. The value is relative to the font width. The width of 'A' is not the same as 'i'.
141
// Try checking it by using multiple A's (AAAAAAAAA and on) until it fits your frame.
142
*/
143
$textwrappingwidth = "84";
144
 
145
/*
146
//the character used to seperate wrapped words. '- ' means will be seperated like this: abcde- fghi.
147
// Empty ('') means disabling wordwrapping. use ' ' (space) for textwrapping without separator.
148
*/
149
$wrappingseparator = "- ";
150
 
151
/* Are visitors required to fill Web/Email field? */
152
$require_uri = "no";
153
 
154
/*
155
// this will change any url or emails INSIDE the COMMENT to url. Example: 'www.yourdomain.com' will be changed to
156
// '<a href="http://www.yourdomain.net" target="_blank">www.yourdomain.net</a>'.
157
*/
158
$useHTMLencode = "yes";
159
 
160
/*
161
// the text replacement for $useHTMLencode. This is used to save space. It can be '[LINK]' or anything else. 
162
// Leave it blank ('') to let the original url shown. Example: if $urltextreplacement is '[LINK]', 
163
// the www.yourdomain.com will be turned into <a href="http://www.yourdomain.com" target=_blank>[LINK]</a>.
164
// This feature will only be useful if $useHTMLencode is set to "yes".
165
*/
166
$urltextreplacement = '[LINK]';
167
 
168
/*
169
// show advertising. It will show the ad written below. You are given the permission to set this 
170
// variable to "no" if you follow the instruction above (The COPYRIGHT INFRINGEMENT section) ("yes"/"no")
171
*/
172
$showad = "no";
173
 
174
/*
175
// the ad text. You may change it as long as it refers to G-Shout Website.
176
// This will only shows if you set the $showad to "yes".
177
*/
178
$_____COPYRIGHT_____ = 'Copyright &copy; <a href="http://gravitasi.com" target="_blank">Gravitasi</a>';
179
 
180
 
181
/*****************
182
  EMAIL SETTINGS
183
*****************/
184
 
185
/*
186
// If you want to receive every comments written to shoutbox via email, set this variable to "yes".
187
*/
188
$sendcomments = "no";
189
 
190
/* your email address */
191
$emailaddress = "email@yoursite.com";
192
 
193
/* copy carbon will be sent to. Set to '' to disable it. */
194
$ccmail = "";
195
 
196
/* blind copy carbon will be sent to. Set to '' to disable it. */
197
$bccmail = "";
198
 
199
 
200
/*************
201
  appearance
202
*************/
203
 
204
/*
205
// the allowed tags used in the shoutbox. Format must not be changed. No space allowed.
206
// Just write the entities for tags with argument. Example: <a><font> etc. Set it empty to disable it.
207
*/
208
$allowedtags = "<b><u><i>";
209
 
210
/* place horizontal rulers to seperate each comments */
211
$hr = "yes";
212
 
213
 
214
/**********
215
  smileys
216
**********/
217
 
218
/* do you want to use smiley? ("yes"/"no") */
219
$usesmiley = "yes";
220
 
221
/* the smiley directory. Don't forget the underlying backslash. */
222
$smileydir = './images/emoticons/';
223
 
224
$smileys = array (
225
	":)" => "icon_smile.gif",
226
	":D" => "icon_biggrin.gif",
227
	":))" => "icon_lol.gif",
228
	"=))" => "icon_ngakak.gif",
229
	":P" => "icon_razz.gif",
230
	":p" => "icon_razz.gif",
231
	";)" => "icon_wink.gif",
232
	":D~" => "icon_slurp.gif",
233
	":\">" => "icon_redface.gif",
234
	":|" => "icon_mmm.gif",
235
	":(" => "icon_sad.gif",
236
	":o" => "icon_surprised.gif",
237
	":s" => "icon_worried.gif",
238
	":((" => "icon_cry.gif",
239
	":zzz:" => "icon_zzz.gif",
240
	"8)" => "icon_cool.gif",
241
	":*" => "icon_kiss.gif",
242
	":x" => "icon_wek.gif",
243
	":mad:" => "icon_mad.gif",
244
	":evil:" => "icon_evil.gif",
245
	":roll:" => "icon_rolleyes.gif",
246
 
247
/*
248
copy paste template below	
249
**********************
250
	"the_text" => "the_image.gif",	
251
***********************	
252
 
253
add yours below!	
254
*/	
255
    ":tt:" => "icon_applause.gif",
256
    ":v:" => "icon_pis.gif",
257
    "hihihi" => "icon_hihihi.gif",
258
    ":$:" => "icon_duit.gif",
259
    ":!:" => "icon_exclaim.gif",
260
	":?:" => "icon_question.gif",
261
 
262
/*
263
Limit of additions. Add only above this comment
264
*/
265
	":idea:" => "icon_idea.gif"
266
);
267
 
268
 
269
 
270
/************
271
  TIME
272
************/
273
 
274
/* Your time different with GMT  , GMT + ? */
275
$gmt = "7";
276
 
277
/* the syntax is same with PHP date() function - http://www.php.net/date */
278
$dateformat = "l, d F Y H:i";
279
 
280
 
281
 
282
/* -------------------- STOP EDITING HERE ------------------- */
283
 
284
 
285
 
286
/***********************************************************************
287
 
288
Configurations below for admin panel when viewing shout entries and logs
289
 
290
************************************************************************/
291
 
292
$results = "20";
293
$logsperpage = "25";
294
 
295
 
296
/********************************
297
DON'T TOUCH THESE FOLLOWING CODES
298
********************************/
299
//adjusting new version with old version
300
$datafile = $secret_dir.'/'.$database;
301
$logfile = $secret_dir.'/'.$log;
302
$datapath = $datafile;
303
$logpath = $logfile;
304
?>