Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?php
2
//Dc-shout2.0 (c)devilcoderz 2004
3
include "header.php";
4
include "config.php";
5
include "functions.php";
6
if (!session_is_registered(username)) {
7
echo "Your not loged in!" ;
8
}
9
else
10
{
11
if ($submit)
12
{
13
$sql ="UPDATE dc_setings SET  shout='$box', bbcode='$bbcode', word='$word' WHERE id='1'";
14
$result = mysql_query($sql) or die(mysql_error());
15
echo "updated shoutbox setings";
16
 
17
}
18
else
19
{
20
?>
21
<form method="POST" action="options.php">
22
<b>Shoutbox(On/Off) :</b><select size="1" name="box">
23
<option selected value="y">On</option>
24
<option value="n">Off</option>
25
</select>
26
<br><br>
27
<b>BB Code(On/Off) :</b><select size="1" name="bbcode">
28
<option selected value="y">On</option>
29
<option value="n">Off</option>
30
</select>
31
<br>
32
<b>Worf filter(On/Off) :</b><select size="1" name="word">
33
<option selected value="y">On</option>
34
<option value="n">Off</option>
35
</select>
36
<br>
37
<input type="submit" value="Update" name="submit">
38
</form>
39
<?
40
}
41
}
42
include "footer.php";
43
?>
44
 
45
 
46
 
47
 
48
 
49
 
50
 
51
 
52