C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\portal\modules\shout_box\mod.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
require("code.php");
if(
$code != $xcode) {
exit;
}
if(!isset(
$do)) {
echo 
"<center><b>Shout Box</b></center><hr noshade>";
echo 
"<center>[<a href=\"$mod_url&do=post\">Post on Shout Box</a>]</center><p>";
echo 
$shout_box "<p>";
echo 
"<center>[<a href=\"$mod_url&do=post\">Post on Shout Box</a>]</center><p>";
}
if(
$do == "post") {
if(
$online == 1) {
echo 
"<center><b>Shout Box : New Post</b></center><hr noshade>";
echo <<<HTML

<form action="
$mod_post&do=post_go" method="POST">
Content: <br><textarea name="sb_content" cols="30" rows="4"></textarea><p>
<input type="submit" value="Post on Shout Box"> <input type="reset" value="Clear Form">
</form>
HTML;
}
else { 
$viv "Not_Logged_In"; }
}
if(
$do == "post_go") {
if(
$online == 1) {
$err 0;
if(
$sb_content == "") {
derr("Content is blank.");
$err 1;
}
if(
$err == 0) {
$sb_content alter($sb_content);
require(
$mod_root."/shout_box.php");
if(
$shout_box_c == "") {
$n_shout_box_c $usr."&&".$sb_content;
}
else {
$n_shout_box_c $usr."&&".$sb_content."||".$shout_box_c;
}
wf($mod_root."/shout_box.php","w","<?php\n\$shout_box_c = \"$n_shout_box_c\";\n?>");
dmsg("Posted on Shout Box.");
}
}
else { 
$viv "Not_Logged_In"; }
}
?>