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