PHP Classes

File: cp.php

Recommend this page to a friend!
  Classes of PLSCIS PLP   Simple PHP Web Chat   cp.php   Download  
File: cp.php
Role: Application script
Content type: text/plain
Description: normal request handler file for change password
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: 616 bytes
 

Contents

Class file image Download
<?php
$name
= (isset($_POST['unm']))? $_POST['unm'] : '';
$email = (isset($_POST['eid']))? $_POST['eid'] : '';
if(
is_string($name)) { $name = trim($name); } else { $name = ''; }
if(
is_string($email)) { $email = trim($email); } else { $email = ''; }
$name = preg_replace('/[^A-Za-z0-9]/', '', $name);
$name = trim($name);
$return_val = 'error';
if(
$name != '' && $email != '') {
    include_once(
'common.php');
    include_once(
$site_path.'classes'.DIRECTORY_SEPARATOR.'class.ModifyPass.php');
   
$mp_obj = new ModifyPass();
   
$return_val = $mp_obj->modifyPasscode($name, $email);
}
echo
$return_val; exit;
?>