root/trunk/wifidog-auth/wifidog/ping/index.php @ 1133

Revision 1133, 3.1 KB (checked in by benoitg, 7 years ago)
  • Major schema update (this one is going to make your database grind for a while, sorry about that...) Fix a long standing design problem with the node table, where the ID could be changed. This caused performance problems when replacing gateways, and caused problems when exporting data to other systems. Among other things, it will allow us to finally finish the JiWire? output.
  • Stylesheet.php: New content type. Takes advantage of two pass content display to create stylesheets to be used only at a specific node, or with a specific content.


  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2
3/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5// +-------------------------------------------------------------------+
6// | WiFiDog Authentication Server                                     |
7// | =============================                                     |
8// |                                                                   |
9// | The WiFiDog Authentication Server is part of the WiFiDog captive  |
10// | portal suite.                                                     |
11// +-------------------------------------------------------------------+
12// | PHP version 5 required.                                           |
13// +-------------------------------------------------------------------+
14// | Homepage:     http://www.wifidog.org/                             |
15// | Source Forge: http://sourceforge.net/projects/wifidog/            |
16// +-------------------------------------------------------------------+
17// | This program is free software; you can redistribute it and/or     |
18// | modify it under the terms of the GNU General Public License as    |
19// | published by the Free Software Foundation; either version 2 of    |
20// | the License, or (at your option) any later version.               |
21// |                                                                   |
22// | This program is distributed in the hope that it will be useful,   |
23// | but WITHOUT ANY WARRANTY; without even the implied warranty of    |
24// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     |
25// | GNU General Public License for more details.                      |
26// |                                                                   |
27// | You should have received a copy of the GNU General Public License |
28// | along with this program; if not, contact:                         |
29// |                                                                   |
30// | Free Software Foundation           Voice:  +1-617-542-5942        |
31// | 59 Temple Place - Suite 330        Fax:    +1-617-542-2652        |
32// | Boston, MA  02111-1307,  USA       gnu@gnu.org                    |
33// |                                                                   |
34// +-------------------------------------------------------------------+
35
36/**
37 * This will respond to the gateway to tell them that the gateway is still up,
38 * and also log the gateway checking in for network monitoring
39 *
40 * @package    WiFiDogAuthServer
41 * @author     Alexandre Carmel-Veilleux <acv@acv.ca>
42 * @copyright  2004-2006 Alexandre Carmel-Veilleux
43 * @version    Subversion $Id$
44 * @link       http://www.wifidog.org/
45 */
46
47/**
48 * Load required files
49 */
50require_once('../include/common.php');
51
52echo "Pong";
53$db = AbstractDb::getObject(); 
54$gw_id = $db->escapeString($_REQUEST['gw_id']);
55$user_agent =  $db->escapeString($_SERVER['HTTP_USER_AGENT']);
56$db->execSqlUpdate("UPDATE nodes SET last_heartbeat_ip='$_SERVER[REMOTE_ADDR]', last_heartbeat_timestamp=CURRENT_TIMESTAMP, last_heartbeat_user_agent='$user_agent' WHERE gw_id='$gw_id'");
57
58/*
59 * Local variables:
60 * tab-width: 4
61 * c-basic-offset: 4
62 * c-hanging-comment-ender-p: nil
63 * End:
64 */
65
66?>
Note: See TracBrowser for help on using the browser.