Login   Register  
PHP Classes
elePHPant
Icontem

File: rejectcreq.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  >  rejectcreq.php  >  Download  
File: rejectcreq.php
Role: Application script
Content type: text/plain
Description: normal request handler file to reject contact request
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:38
Size: 455 bytes
 

Contents

Class file image Download
<?php
$cnm 
= (isset($_POST['c']))? $_POST['c'] : '';
$name = (isset($_POST['name']))? $_POST['name'] : '';
$cnm preg_replace('/[^A-Za-z0-9]/'''$cnm);
$cnm trim($cnm);
$return_val 'error';
if(
$cnm != '') {
    include_once(
'common.php');
    include_once(
$site_path.'classes'.DIRECTORY_SEPARATOR.'class.RejectRequest.php');
    
$rr_obj = new RejectRequest();
    
$return_val $rr_obj->rejectCRequest($name$cnm);
}
echo 
$return_val; exit;
?>