PHP Classes

File: rejectgreq.php

Recommend this page to a friend!
  Classes of PLSCIS PLP   Simple PHP Web Chat   rejectgreq.php   Download  
File: rejectgreq.php
Role: Application script
Content type: text/plain
Description: normal request handler file to reject group request
Class: Simple PHP Web Chat
Chat system with Websockets or AJAX as fallback
Author: By
Last change: changed role and description
Date: 11 years ago
Size: 477 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);
$return_val = 'error';
if(
$grpnm != '') {
    include_once(
'common.php');
    include_once(
$site_path.'classes'.DIRECTORY_SEPARATOR.'class.RejectRequest.php');
   
$rr_obj = new RejectRequest();
   
$return_val = $rr_obj->rejectGRequest($name, $grpnm);
}
echo
$return_val; exit;
?>