PHP Classes

File: SERVER/NotificationSender.php

Recommend this page to a friend!
  Classes of Ettore Moretti   Xaja Notifier   SERVER/NotificationSender.php   Download  
File: SERVER/NotificationSender.php
Role: Example script
Content type: text/plain
Description: Class source
Class: Xaja Notifier
Notify user browsing a site in real time with AJAX
Author: By
Last change: Update NotificationSender.php
Date: 8 years ago
Size: 540 bytes
 

Contents

Class file image Download
<?php
/**
 * Here intercept the ajax call for the administration panel
 *
 *
 *
 * PHP version 5
 *
 * @author Ettore Moretti <ettoremoretti27@gmail.com>
 * @version 1.0.0
 *
 */
set_time_limit(0);

require_once
'core/XajaAdminServer.php';

// Retrieving the last timestamp
$notification=isset( $_GET['notification'])? $_GET['notification']: 0 ;

// Retrieving the uid
$uid=isset( $_GET['id'])? $_GET['id']: 0 ;

//XajaServerClass instance and send notification
$XS= new XajaAdminServer();

$XS->SendNotification($notification,$uid);