root/trunk/wifidog-auth/wifidog/admin/online_users.php @ 568

Revision 568, 2.0 KB (checked in by fproulx, 8 years ago)

2005-04-25 Fran�ois Proulx <francois.proulx@…

  • More interface work
  • 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   * This program is free software; you can redistribute it and/or    *
4   * modify it under the terms of the GNU General Public License as   *
5   * published by the Free Software Foundation; either version 2 of   *
6   * the License, or (at your option) any later version.              *
7   *                                                                  *
8   * This program is distributed in the hope that it will be useful,  *
9   * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
10   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
11   * GNU General Public License for more details.                     *
12   *                                                                  *
13   * You should have received a copy of the GNU General Public License*
14   * along with this program; if not, contact:                        *
15   *                                                                  *
16   * Free Software Foundation           Voice:  +1-617-542-5942       *
17   * 59 Temple Place - Suite 330        Fax:    +1-617-542-2652       *
18   * Boston, MA  02111-1307,  USA       gnu@gnu.org                   *
19   *                                                                  *
20   \********************************************************************/
21  /**@file
22   * @author Copyright (C) 2004 Philippe April.
23   */
24define('BASEPATH','../');
25require_once 'admin_common.php';
26require_once BASEPATH.'classes/Node.php';
27
28$security = new Security();
29$security->requireAdmin();
30
31try {
32    $online_users = Node::getAllOnlineUsers();
33        $smarty->assign("users_array", $online_users);
34} catch (Exception $e) {
35        $smarty->assign("error", $e->getMessage());
36}
37
38require_once BASEPATH.'classes/MainUI.php';
39$ui=new MainUI();
40$ui->setToolSection('ADMIN');
41$ui->setMainContent($smarty->fetch("admin/templates/online_users.html"));
42$ui->display();
43//$smarty->display("admin/templates/online_users.html");
44?>
Note: See TracBrowser for help on using the browser.