Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- */
- require_once('classes/MySQLGopher.php');
- require_once('classes/LKChat.php');
- $LKChat = new LKChat();
- $LKChat->hostname = "joshpc1:3306";
- $LKChat->user = "root";
- $LKChat->password = "root";
- $LKChat->db = "lkchat";
- $LKChat->table = $LKChat->table;
- $LKChat->errorSwitch = 0;
- $LKChat->connect();
- $LKChat->selectDB();
- $LKChat->initializeDataBaseStructure();
- if (isset($_GET['operation'])) {
- $go = $_GET['operation'];
- switch ($go) {
- case "init":
- $LKChat->initChatWindow();
- break;
- case "write":
- $message = $_GET['message'];
- $user = $_GET['user'];
- //$lastTimeStamp = $_GET['lastTimeStamp'];
- $LKChat->writeMsg($user, $message);
- //$LKChat->update($lastTimeStamp);
- break;
- case "update":
- $lastTimeStamp = $_GET['lastTimeStamp'];
- $LKChat->update($lastTimeStamp);
- break;
- }
- die();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement