| 1 | {* |
|---|
| 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 | * Section of tool pane for the administration interface |
|---|
| 38 | * |
|---|
| 39 | * @package WiFiDogAuthServer |
|---|
| 40 | * @subpackage Templates |
|---|
| 41 | * @author Max Horvath <max.horvath@maxspot.de> |
|---|
| 42 | * @copyright 2006 Max Horvath, maxspot GmbH |
|---|
| 43 | * @version Subversion $Id: change_password.php 914 2006-01-23 05:25:43Z max-horvath $ |
|---|
| 44 | * @link http://www.wifidog.org/ |
|---|
| 45 | */ |
|---|
| 46 | |
|---|
| 47 | *} |
|---|
| 48 | |
|---|
| 49 | {if $sectionADMIN} |
|---|
| 50 | {* |
|---|
| 51 | BEGIN section ADMIN |
|---|
| 52 | *} |
|---|
| 53 | {if $userIsSuperAdmin} |
|---|
| 54 | <fieldset> |
|---|
| 55 | <legend>{"User administration"|_}:</legend> |
|---|
| 56 | <ul> |
|---|
| 57 | <li><a href="{$base_url_path}admin/user_log.php">{"User logs"|_}</a></li> |
|---|
| 58 | <li><a href="{$base_url_path}admin/online_users.php">{"Online Users"|_}</a></li> |
|---|
| 59 | <li><a href="{$base_url_path}admin/stats.php">{"Statistics"|_}</a></li> |
|---|
| 60 | <li><a href="{$base_url_path}admin/import_user_database.php">{"Import NoCat user database"|_}</a></li> |
|---|
| 61 | </ul> |
|---|
| 62 | </fieldset> |
|---|
| 63 | {/if} |
|---|
| 64 | |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | {if $userIsSuperAdmin || $userIsANodeOwner} |
|---|
| 68 | <fieldset> |
|---|
| 69 | <legend>{"Node administration"|_}:</legend> |
|---|
| 70 | {if !$userIsSuperAdmin} |
|---|
| 71 | <form action="{$formAction}" method="post"> |
|---|
| 72 | <div id="NodeSelector">{$nodeUI}</div> |
|---|
| 73 | |
|---|
| 74 | <input type="hidden" name="object_class" value="Node"> |
|---|
| 75 | <input type="hidden" name="action" value="edit"> |
|---|
| 76 | <input type="submit" name="edit_submit" value="{"Edit"|_}"> |
|---|
| 77 | </form> |
|---|
| 78 | {else} |
|---|
| 79 | <ul> |
|---|
| 80 | <li><a href="{$base_url_path}admin/generic_object_admin.php?object_class=Node&action=list">{"Nodes"|_}</a></li> |
|---|
| 81 | </ul> |
|---|
| 82 | {/if} |
|---|
| 83 | </fieldset> |
|---|
| 84 | {/if} |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | {if $userIsSuperAdmin} |
|---|
| 88 | <fieldset> |
|---|
| 89 | <legend>{"Network administration"|_}:</legend> |
|---|
| 90 | <ul> |
|---|
| 91 | <li><a href="{$base_url_path}admin/generic_object_admin.php?object_class=Network&action=list">{"Networks"|_}</a></li> |
|---|
| 92 | </ul> |
|---|
| 93 | </fieldset> |
|---|
| 94 | {/if} |
|---|
| 95 | <fieldset> |
|---|
| 96 | <legend>{"Server administration"|_}:</legend> |
|---|
| 97 | <ul> |
|---|
| 98 | {if $userIsSuperAdmin} |
|---|
| 99 | <li><a href="{$base_url_path}admin/generic_object_admin.php?object_class=Server&action=list">{"Servers"|_}</a></li> |
|---|
| 100 | {/if} |
|---|
| 101 | <li><a href="{$base_url_path}admin/generic_object_admin.php?object_class=Content&action=list">{"Reusable content library"|_}</a></li> |
|---|
| 102 | </ul> |
|---|
| 103 | </fieldset> |
|---|
| 104 | {* |
|---|
| 105 | END section ADMIN |
|---|
| 106 | *} |
|---|
| 107 | {/if} |
|---|