Login   Register  
PHP Classes
elePHPant
Icontem

File: actions/send_client_message.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Miguel Villaseņor  >  MKCS PHP Support Chat  >  actions/send_client_message.php  >  Download  
File: actions/send_client_message.php
Role: Example script
Content type: text/plain
Description: Example script
Class: MKCS PHP Support Chat
Chat with clients of a support site
Author: By
Last change:
Date: 1 year ago
Size: 351 bytes
 

Contents

Class file image Download
<?php
session_start
();
require_once 
'../classes/Client.php';

if(isset(
$_SESSION['client_id'])){

if(isset(
$_POST['message'])&&$_POST['message']!=""){
    
$client Client::getClient($_SESSION['client_id']);
    
$client->sendMessage($_POST['message']);
    echo 
"{status :200}";
}else{
    echo 
"{status :400}";
}

}else{
     echo 
"{status :400}";
}