Login   Register  
PHP Classes
elePHPant
Icontem

File: csrch.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  >  csrch.php  >  Download  
File: csrch.php
Role: Application script
Content type: text/plain
Description: normal request handler file for contact search
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:33
Size: 416 bytes
 

Contents

Class file image Download
<?php
$name 
= (isset($_POST['name']))? $_POST['name'] : '';
$name preg_replace('/[^A-Za-z0-9]/'''$name);
$name trim($name);
$udtls = array();
if(
trim($name) != '') {
    include_once(
'common.php');
    include_once(
$site_path.'classes'.DIRECTORY_SEPARATOR.'class.UserContacts.php');
    
$uc_obj = new UserContacts();
    
$udtls $uc_obj->getUserGroupsNContacts($name);
}
echo 
json_encode($udtls); exit;
?>