PHP Classes

File: reply.php

Recommend this page to a friend!
  Classes of PLSCIS PLP   Simple PHP Web Chat   reply.php   Download  
File: reply.php
Role: Application script
Content type: text/plain
Description: normal request handler file to send a message
Class: Simple PHP Web Chat
Chat system with Websockets or AJAX as fallback
Author: By
Last change: changed description
Date: 11 years ago
Size: 443 bytes
 

Contents

Class file image Download
<?php
include_once('common.php');
$name = $_POST['name'];
$ci = (isset($_POST['ci']))? trim($_POST['ci']) : '';
$typ = (isset($_POST['all']))? trim($_POST['all']) : '';
$gcid = (isset($_POST['gcid']))? trim($_POST['gcid']) : '';
$msg = $_POST['vMessage'];
include_once(
$site_path.'classes'.DIRECTORY_SEPARATOR.'class.Reply.php');
$rpl_obj = new Reply();
$return_val = $rpl_obj->sendMessage($name, $ci, $msg, $typ, $gcid);
exit;
?>