Example #1
0
<?php

//require_once("database.php");
require_once "chatClass.php";
$id = intval($_GET['lastTimeID']);
$jsonData = chatClass::getMessages($id);
print $jsonData;
<?php

session_start();
require_once "config.php";
require_once "inc/chatClass.php";
$chattext = strip_tags($_GET['chattext']);
chatClass::setChatLines($chattext, $_SESSION['usrname'], $_SESSION['color']);
<?php

session_start();
require_once "config.php";
require_once "inc/chatClass.php";
$id = intval($_GET['lastTimeID']);
$jsonData = chatClass::getRestChatLines($id);
print $jsonData;
Example #4
0
<?php

//require_once("database.php");
require_once "chatClass.php";
$userid = $_POST['userid'];
$message = strip_tags($_POST['message']);
chatClass::sendMessage($userid, $message);