Login   Register  
PHP Classes
elePHPant
Icontem

File: selcgroup.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  >  selcgroup.php  >  Download  
File: selcgroup.php
Role: Application script
Content type: text/plain
Description: normal request handler file to get group contacts
Class: Simple PHP Web Chat
Chat system with Websockets or AJAX as fallback
Author: By
Last change: changed description
Date: 9 months ago
Size: 462 bytes
 

Contents

Class file image Download
<?php
$grpnm 
= (isset($_POST['grpnm']))? $_POST['grpnm'] : '';
$name = (isset($_POST['name']))? $_POST['name'] : '';
$grpnm preg_replace('/[^A-Za-z0-9]/'''$grpnm);
$grpnm trim($grpnm);
$grpcnms '';
if(
$grpnm != '') {
    include_once(
'common.php');
    include_once(
$site_path.'classes'.DIRECTORY_SEPARATOR.'class.GroupDetails.php');
    
$gcd_obj = new GroupDetails();
    
$grpcnms $gcd_obj->groupContacts($name$grpnm);
}
echo 
$grpcnms; exit;
?>