2 if(file_exists("../login-config.php"))
3 require("../login-config.php");
4 else if(file_exists("../../login-config.php"))
5 require("../../login-config.php");
10 $rawmsg = $_POST["msg"];
12 $rawmsg = ".tell " . $rawmsg;
13 $args = explode(" ", $rawmsg);
14 switch(array_shift($args)){
16 $msg = get_username() . " has joined.";
19 $msg = "<" . get_username() . "> " . join(" ", $args);
22 $msg = get_username() . " has left.";
25 $msg = "*" . get_username() . " " . join(" ", $args);
29 file_put_contents("message.html", htmlentities($msg));