Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?
2
//Dc-shout2.0 (c)devilcoderz 2004
3
if ($show== "")
4
{
5
 
6
//dc shout 2.0 bata codez.darkdevils.co.uk
7
include "admin/config.php";
8
include "template/$theme/top.htm" ;
9
include "inc/functions.php";
10
 
11
 
12
 
13
//start codes
14
$setstart = mysql_query("select * from dc_setings WHERE id='1'");
15
$settings=mysql_fetch_array($setstart);
16
 
17
 
18
 
19
//just makeing it making it more tidy
20
$box = $settings[shout] ;
21
$bc =  $settings[bbcode] ;
22
$word =  $settings[word] ;
23
if ($box== "y")  // is the shoutbox on ?
24
{
25
//lets show these nice people there shouts
26
$result = mysql_query("select * from dc_shoutbox order by id desc limit 10 ");
27
while($r=mysql_fetch_array($result))
28
{
29
$bb = $r[text] ;//starts off the bb thing
30
if ($bc == "y") //if on y it should be on
31
{
32
$bb = str_replace("DD", "<b>Darkdevils</b>", $bb);
33
$bb = str_replace("<f red>", "<font color=red>", $bb);
34
$bb = str_replace("<f green>", "<font color=green>", $bb);
35
$bb = str_replace("<f blue>", "<font color=blue>", $bb);
36
$bb = str_replace("<f gray>", "<font color=gray>", $bb);
37
$bb = str_replace("<f gold>", "<font color=gold>", $bb);
38
$bb = str_replace("</f>", "</font>", $bb);
39
}
40
$loop_template = @implode("", @file("template/$theme/post.htm"));
41
$template = str_replace("{name}", $r['name'], $loop_template);
42
$template = str_replace("{mess}", $bb, $template);
43
echo $template ;
44
}
45
}
46
if ($box== "n")//hope the shoutbox is not off lol
47
{
48
echo "Shoutbox offline :(";
49
}
50
}
51
 
52
 
53
 
54
 
55
 
56
 
57
 
58
 
59
 
60
 
61
 
62
 
63
 
64
 
65
 
66
 
67
 
68
if ($show== "bb")
69
{
70
print"
71
<center><b>::BB codes::</b></center>
72
<br>
73
<br>
74
Red text = &lt;f red&gt;text here&lt;/f&gt;
75
<br>
76
Green text = &lt;f green&gt;text here&lt;/f&gt;
77
<br>
78
Blue text = &lt;f blue&gt;text here&lt;/f&gt;
79
<br>
80
Gray text = &lt;f gray&gt;text here&lt;/f&gt;
81
<br>
82
Gold text = &lt;f gold&gt;text here&lt;/f&gt;
83
<br>
84
Drakdevils = DD
85
<br>
86
<br>
87
<br>
88
";
89
}
90
?>
91
 
92
 
93
 
94
 
95
 
96
 
97
 
98