6 |
kaklik |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/************************************************************************/
|
|
|
4 |
/* G-Shout : Gravitasi Shoutbox */
|
|
|
5 |
/* ============================================ */
|
|
|
6 |
/* */
|
|
|
7 |
/* Copyright (c) 2005 by Yohanes Pradono */
|
|
|
8 |
/* http://gravitasi.com */
|
|
|
9 |
/* */
|
|
|
10 |
/* This program is free software. You can redistribute it and/or modify */
|
|
|
11 |
/* it under the terms of the GNU General Public License as published by */
|
|
|
12 |
/* the Free Software Foundation; either version 2 of the License. */
|
|
|
13 |
/* */
|
|
|
14 |
/************************************************************************/
|
|
|
15 |
|
|
|
16 |
header("Expires: Sun, 10 Jan 1982 05:00:00 GMT");
|
|
|
17 |
header("Last-Modified: ".gmdate("D, d M Y H:i:s"));
|
|
|
18 |
if($SERVER_PROTOCOL == "HTTP/1.0"){
|
|
|
19 |
header("Pragma: no-cache");
|
|
|
20 |
}else{
|
|
|
21 |
header("Cache-Control: no-cache, must-revalidate");
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
include("config.php");
|
|
|
25 |
include("./includes/functions.inc.php");
|
|
|
26 |
include ("./languages/lang-$language.php");
|
|
|
27 |
|
|
|
28 |
if(validCookie($gshout_auth)){
|
|
|
29 |
include("./includes/header.inc.php");
|
|
|
30 |
|
|
|
31 |
if(!is_writable($datafile)){
|
|
|
32 |
$error = _DATA_UNWRITABLE;
|
|
|
33 |
} else if (!is_writable("config.php")){
|
|
|
34 |
$error = _CONF_UNWRITABLE;
|
|
|
35 |
} else if (!is_writable($logfile)){
|
|
|
36 |
$error = _LOG_UNWRITABLE;
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
if($emoticons != true){
|
|
|
40 |
|
|
|
41 |
?>
|
|
|
42 |
|
|
|
43 |
<table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
|
|
|
44 |
<tbody><tr>
|
|
|
45 |
<td class="navCell" style="width: 2%;">
|
|
|
46 |
|
|
|
47 |
<div class="cpNavOff">
|
|
|
48 |
|
|
|
49 |
</div>
|
|
|
50 |
|
|
|
51 |
</td>
|
|
|
52 |
|
|
|
53 |
<td class="navCell">
|
|
|
54 |
<div class="cpNavOn">
|
|
|
55 |
<a href="admin.php"> <?=_EDIT_SHOUTS?> </a>
|
|
|
56 |
</div>
|
|
|
57 |
</td>
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
<td class="navCell">
|
|
|
61 |
<div class="cpNavOff">
|
|
|
62 |
<a href="editconf.php"> <?=_CONFIGURATION?> </a>
|
|
|
63 |
</div>
|
|
|
64 |
</td>
|
|
|
65 |
|
|
|
66 |
<td class="navCell">
|
|
|
67 |
<div class="cpNavOff">
|
|
|
68 |
<a href="logs.php"> <?=_VIEW_LOGS?> </a>
|
|
|
69 |
</div>
|
|
|
70 |
</td>
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
<td class="navCell" style="width: 2%;">
|
|
|
74 |
|
|
|
75 |
<div class="cpNavOff">
|
|
|
76 |
|
|
|
77 |
</div>
|
|
|
78 |
|
|
|
79 |
</td>
|
|
|
80 |
</tr>
|
|
|
81 |
</tbody></table>
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
<div id="breadcrumb">
|
|
|
86 |
<table style="width: 100%;" class="contentWidth" border="0" cellpadding="6" cellspacing="0">
|
|
|
87 |
<tbody><tr>
|
|
|
88 |
<td class="defaultBold">
|
|
|
89 |
<span class="crumblinks">
|
|
|
90 |
<h2><?=_EDIT_SHOUT?></h2>
|
|
|
91 |
</span>
|
|
|
92 |
</td>
|
|
|
93 |
<td class="breadcrumbRight">
|
|
|
94 |
|
|
|
95 |
</td>
|
|
|
96 |
</tr>
|
|
|
97 |
</tbody></table>
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
</div>
|
|
|
101 |
|
|
|
102 |
<div id="content">
|
|
|
103 |
<table border='0' cellspacing='0' cellpadding='0' style='width:100%;' >
|
|
|
104 |
|
|
|
105 |
<?
|
|
|
106 |
if(isset($message)){
|
|
|
107 |
echo "<tr><td class='box' colspan='2'><div class='itemWrapper'>";
|
|
|
108 |
echo "<div class='success'>";
|
|
|
109 |
echo $message;
|
|
|
110 |
echo "</div>";
|
|
|
111 |
echo "</div></td></tr>";
|
|
|
112 |
} else if(isset($error)) {
|
|
|
113 |
echo "<tr><td class='box' colspan='2'><div class='itemWrapper'>";
|
|
|
114 |
echo "<div class='alert'>".$error."</div>";
|
|
|
115 |
echo "</div></td></tr>";
|
|
|
116 |
} else {
|
|
|
117 |
echo "<tr><td><div class='success'> </div></td></tr>";
|
|
|
118 |
}
|
|
|
119 |
?>
|
|
|
120 |
</table>
|
|
|
121 |
|
|
|
122 |
<form name="editshout" method="post" action="admin.php">
|
|
|
123 |
<input type="hidden" name="id" value="<?=$id?>" />
|
|
|
124 |
<input type="hidden" name="timestamp" value="<?=$timestamp?>" />
|
|
|
125 |
<input type="hidden" name="gotopage" value="<?=$page?>" />
|
|
|
126 |
<table width="53%" border="0" cellspacing="0" cellpadding="2" class="">
|
|
|
127 |
<tr align="left" valign="top">
|
|
|
128 |
<td width="20%"><div class="itemTitle"><?=_DATE?></div></td>
|
|
|
129 |
<td width="80%">
|
|
|
130 |
<div class='default'><?=formattanggal($timestamp)?></div>
|
|
|
131 |
</td>
|
|
|
132 |
</tr>
|
|
|
133 |
<tr align="left" valign="top">
|
|
|
134 |
<td width="20%"><div class="itemTitle"><?=_NAME?></div></td>
|
|
|
135 |
<td width="80%">
|
|
|
136 |
<input class="input" type="text" name="name" size="35" value="<?=$name?>" />
|
|
|
137 |
</td>
|
|
|
138 |
</tr>
|
|
|
139 |
<tr align="left" valign="top">
|
|
|
140 |
<td width="20%"><div class="itemTitle"><?=_SEX?></div></td>
|
|
|
141 |
<td width="80%">
|
|
|
142 |
<input id="sexm" class="radio" type="radio" name="sex" size="35" value="m" <?if($sex=="m"){$checked="checked='checked'";echo $checked;}?> /><label for="sexm"> <?=_MALE?> </label>
|
|
|
143 |
<input id="sexf" class="radio" type="radio" name="sex" size="35" value="f" <?if($sex=="f"){$checked="checked='checked'";echo $checked;}?> /><label for="sexf"> <?=_FEMALE?> </label>
|
|
|
144 |
</td>
|
|
|
145 |
</tr>
|
|
|
146 |
<tr align="left" valign="top">
|
|
|
147 |
<td width="20%"><div class="itemTitle"><?=_IP_ADDRESS?></div></td>
|
|
|
148 |
<td width="80%">
|
|
|
149 |
<input class="input" type="text" name="ip" size="35" value="<?=$ip?>" />
|
|
|
150 |
</td>
|
|
|
151 |
</tr>
|
|
|
152 |
<tr align="left" valign="top">
|
|
|
153 |
<td width="20%"><div class="itemTitle"><?=_WEB_EMAIL?></div></td>
|
|
|
154 |
<td width="80%">
|
|
|
155 |
<input class="input" type="text" name="uri" size="35" value="<?=$uri?>" />
|
|
|
156 |
</td>
|
|
|
157 |
</tr>
|
|
|
158 |
<tr align="left" valign="top">
|
|
|
159 |
<td width="20%"><div class="itemTitle"><?=_MESSAGE?></div></td>
|
|
|
160 |
<td width="80%">
|
|
|
161 |
<textarea class="textarea" name="comment" cols="60" wrap="VIRTUAL" rows="7"><?=stripslashes($comment)?></textarea>
|
|
|
162 |
</td>
|
|
|
163 |
</tr>
|
|
|
164 |
<tr align="left" valign="top">
|
|
|
165 |
<td>
|
|
|
166 |
|
|
|
167 |
</td>
|
|
|
168 |
</tr>
|
|
|
169 |
<tr align="left" valign="top">
|
|
|
170 |
<td width="20%"><div class="itemTitle"><?=_REPLYDATE?></div></td>
|
|
|
171 |
<td width="80%">
|
|
|
172 |
<div class='default'><? if($redate==""){echo formattanggal(time());}else{echo formattanggal($redate);}?></div>
|
|
|
173 |
</td>
|
|
|
174 |
</tr>
|
|
|
175 |
<tr align="left" valign="top">
|
|
|
176 |
<td width="20%"><div class="itemTitle"><?=_REPLY?></div></td>
|
|
|
177 |
<td width="80%">
|
|
|
178 |
<textarea class="textarea" name="reply" cols="60" wrap="VIRTUAL" rows="7"><?=stripslashes($reply)?></textarea>
|
|
|
179 |
<div align="right"><a href="editshout.php?emoticons=true" onclick="window.open(this.href, '_blank', 'width=300,height=400,scrollbars=yes,resizable=no,status=yes,screenx=250,screeny=100');return false;" onkeypress="this.onclick()">Emoticons</a></div>
|
|
|
180 |
</td>
|
|
|
181 |
</tr>
|
|
|
182 |
<tr align="left" valign="top">
|
|
|
183 |
<td width="20%">
|
|
|
184 |
<input type="hidden" name="timestamp" value="<?=$timestamp?>" />
|
|
|
185 |
<input type="hidden" name="action" value="updateshout" />
|
|
|
186 |
</td>
|
|
|
187 |
<td width="80%">
|
|
|
188 |
<input type="submit" name="Submit" value="Update Shout" class="submit" />
|
|
|
189 |
</td>
|
|
|
190 |
</tr>
|
|
|
191 |
</table>
|
|
|
192 |
</form>
|
|
|
193 |
|
|
|
194 |
<?
|
|
|
195 |
} else if($emoticons == TRUE) {
|
|
|
196 |
array_walk ($smileys, 'alter_smiley', $smileydir);
|
|
|
197 |
reset ($smileys);
|
|
|
198 |
echo ("<div class=\"smileys\">");
|
|
|
199 |
showEmoticons();
|
|
|
200 |
echo ("</div>");
|
|
|
201 |
echo(" <a href=\"javascript:window.close()\">"._CLOSE_WINDOW."</a><br /><br />\n\n");
|
|
|
202 |
}
|
|
|
203 |
include("./includes/footer.inc.php");
|
|
|
204 |
} else {
|
|
|
205 |
header("Location: admin.php");
|
|
|
206 |
}
|
|
|
207 |
?>
|