Login   Register  
PHP Classes
elePHPant
Icontem

File: biGChat.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of PLSCIS PLP  >  Simple PHP Web Chat  >  biGChat.php  >  Download  
File: biGChat.php
Role: Application script
Content type: text/plain
Description: normal request handler file to init chat with group
Class: Simple PHP Web Chat
Chat system with Websockets or AJAX as fallback
Author: By
Last change: changed role and description
Date: 2013-12-08 13:30
Size: 526 bytes
 

Contents

Class file image Download
<?php
$gnm 
= (isset($_POST['gi']))? $_POST['gi'] : '';
$gid = (isset($_POST['gid']))? $_POST['gid'] : '';
$name = (isset($_POST['name']))? $_POST['name'] : '';
$gnm preg_replace('/[^A-Za-z0-9]/'''$gnm);
$gnm trim($gnm);
$return_val 'error';
if(
$gnm != '' && $gid != '') {
    include_once(
'common.php');
    include_once(
$site_path.'classes'.DIRECTORY_SEPARATOR.'class.InitGroupChat.php');
    
$igc_obj = new InitGroupChat();
    
$return_val $igc_obj->initGChat($name$gid$gnm);
}
echo 
$return_val; exit;
?>