PHP Classes

File: admin/end.php

Recommend this page to a friend!
  Classes of Miguel Villaseņor   MKCS PHP Support Chat   admin/end.php   Download  
File: admin/end.php
Role: Example script
Content type: text/plain
Description: Example script
Class: MKCS PHP Support Chat
Chat with clients of a support site
Author: By
Last change:
Date: 10 years ago
Size: 331 bytes
 

Contents

Class file image Download
<?php
require_once 'session_initializer.php';
require_once
__DIR__.'/../classes/Chat.php';
if(!isset(
$_SESSION['user_id']))
   
header('Location: login.php ');
if(!isset(
$_GET['id']))
   
header('Location: index.php ');

  
$chat=Chat::getExistingChat($_GET['id']);
  
$chat->finalize();
  
  
  
header('Location: index.php ');