|
|
@@ -1,12 +1,12 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
require_once './modules/common.mod.php'; |
|
|
|
require_once './modules/chat.mod.php'; |
|
|
|
|
|
|
|
|
|
|
|
$db = new Chat; |
|
|
|
$chat = new Chat; |
|
|
|
|
|
|
|
$user_id = $_POST['id']; |
|
|
|
$chat_message = $_POST['text']; |
|
|
|
|
|
|
|
$db -> send_chat ($user_id, $chat_message); |
|
|
|
$chat -> send ($user_id, $chat_message); |
|
|
|
|