Login   Register  
PHP Classes
elePHPant
Icontem

File: managegroup.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  >  managegroup.php  >  Download  
File: managegroup.php
Role: Application script
Content type: text/plain
Description: normal request handler file for managing groups
Class: Simple PHP Web Chat
Chat system with Websockets or AJAX as fallback
Author: By
Last change: changed role and description
Date: 1 year ago
Size: 618 bytes
 

Contents

Class file image Download
<?php
$grpcon 
= (isset($_POST['grpcon']))? trim($_POST['grpcon']) : '';
$grpnms = (isset($_POST['grpnms']))? trim($_POST['grpnms']) : '';
$name = (isset($_POST['name']))? trim($_POST['name']) : '';
$grpnms preg_replace('/[^A-Za-z0-9,]/'''$grpnms);
$grpnms trim(trim($grpnms,','));
$return_val 'error';
if(
trim($grpnms) != '' && trim($grpcon) != '') {     //
    
include_once('common.php');
    include_once(
$site_path.'classes'.DIRECTORY_SEPARATOR.'class.ManageGroups.php');
    
$mg_obj = new ManageGroups();
    
$return_val $mg_obj->manageUserGroups($name$grpnms$grpcon);
}
echo 
$return_val; exit;
?>