GIF89a;
Direktori : /home/serb/public_html/fbChatSource/public/ajax/ |
Current File : /home/serb/public_html/fbChatSource/public/ajax/add_msg.php |
<?php session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); if (isset($_POST['msg'])) { // require_once __DIR__ . '/../../core/FbChatMock.php'; include "fbChatSource/core/FbChatMock.php"; $userId = (int) $_SESSION['user_id']; // Escape the message string $msg = htmlentities($_POST['msg'], ENT_NOQUOTES); $chat = new FbChatMock(); $result = $chat->addMessage($userId, $msg); } ?>