<?php /** * Here intercept the ajax call for the administration panel * * * * PHP version 5 * * @author Ettore Moretti <*****@*****.**> * @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);
<?php /** * The administration frontEnd panel, Here we can control the connected users and send notifications * * * * PHP version 5 * * @author Ettore Moretti <*****@*****.**> * @version 1.0.0 * */ require_once "core/XajaAdminServer.php"; $XS = new XajaAdminServer(); $UserData = $XS->getAllUser(); ?> <html> <head> <title>XajaNotification - Admin Example</title> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/ui-darkness/jquery-ui.css" rel="stylesheet"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script> <script src="js/dialog.js" type="text/javascript"></script> <script src="js/tablesorter.min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> $(document).ready(function() { $("#refresh").click(function () { location.reload();