| 1 | <?php
|
|---|
| 2 | /**
|
|---|
| 3 | * Plugin name: User Manager
|
|---|
| 4 | * Template name: plugins/user_manager/user_man_user_settings.php
|
|---|
| 5 | *
|
|---|
| 6 | * PHP version 5
|
|---|
| 7 | *
|
|---|
| 8 | * LICENSE: Hotaru CMS is free software: you can redistribute it and/or
|
|---|
| 9 | * modify it under the terms of the GNU General Public License as
|
|---|
| 10 | * published by the Free Software Foundation, either version 3 of
|
|---|
| 11 | * the License, or (at your option) any later version.
|
|---|
| 12 | *
|
|---|
| 13 | * Hotaru CMS is distributed in the hope that it will be useful, but WITHOUT
|
|---|
| 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|---|
| 15 | * FITNESS FOR A PARTICULAR PURPOSE.
|
|---|
| 16 | *
|
|---|
| 17 | * You should have received a copy of the GNU General Public License along
|
|---|
| 18 | * with Hotaru CMS. If not, see http://www.gnu.org/licenses/.
|
|---|
| 19 | *
|
|---|
| 20 | * @category Content Management System
|
|---|
| 21 | * @package HotaruCMS
|
|---|
| 22 | * @author Nick Ramsay <admin@hotarucms.org>
|
|---|
| 23 | * @copyright Copyright (c) 2009, Hotaru CMS
|
|---|
| 24 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
|
|---|
| 25 | * @link http://www.hotarucms.org/
|
|---|
| 26 | */
|
|---|
| 27 |
|
|---|
| 28 | // set radio buttons plugin hook
|
|---|
| 29 | $h->pluginHook('user_settings_fill_form');
|
|---|
| 30 |
|
|---|
| 31 | ?>
|
|---|
| 32 |
|
|---|
| 33 | <!-- TITLE FOR USER MANAGER -->
|
|---|
| 34 | <h2><?php echo $h->lang["user_man"]; ?></h2>
|
|---|
| 35 |
|
|---|
| 36 | <?php echo $h->lang["user_man_user_settings_desc"]; ?>
|
|---|
| 37 |
|
|---|
| 38 | <p id="user_man_navigation">
|
|---|
| 39 | <a href='<?php echo BASEURL; ?>admin_index.php?plugin=user_manager&page=plugin_settings'><?php echo $h->lang["user_man"]; ?></a>
|
|---|
| 40 | <?php echo "<a href='" . BASEURL . "admin_index.php?plugin=user_manager&page=plugin_settings&subpage=default_perms'>" . $h->lang["user_man_default_perms"] . "</a>"; ?>
|
|---|
| 41 | <b><u><?php echo $h->lang["user_man_default_settings"]; ?></u></b>
|
|---|
| 42 | <?php echo "<a href='" . BASEURL . "admin_index.php?plugin=user_manager&page=plugin_settings&subpage=add_user'>" . $h->lang["user_man_add"] . "</a>"; ?>
|
|---|
| 43 | </p>
|
|---|
| 44 |
|
|---|
| 45 | <?php echo $h->showMessage(); ?>
|
|---|
| 46 |
|
|---|
| 47 | <form name='user_man_user_settings' action='<?php echo BASEURL; ?>admin_index.php' method='post'>
|
|---|
| 48 | <table class='user_settings'>
|
|---|
| 49 | <?php $h->pluginHook('user_settings_extra_settings'); ?>
|
|---|
| 50 | <?php if (!$h->vars['settings']) { $h->showMessage($h->lang['user_man_no_settings'], 'red'); } ?>
|
|---|
| 51 | </table>
|
|---|
| 52 | <div id='user_man_perms_existing_users_note'>
|
|---|
| 53 | <?php echo $h->lang["user_man_force_user_settings_desc"]; ?><br />
|
|---|
| 54 | <p><input type='checkbox' name='force_settings' value='force_settings' <?php echo $h->vars['user_man_user_settings_existing']; ?>>
|
|---|
| 55 | <?php echo $h->lang["user_man_force_user_settings"]; ?></p>
|
|---|
| 56 | </div>
|
|---|
| 57 | <input type='hidden' name='plugin' value='user_manager' />
|
|---|
| 58 | <input type='hidden' name='page' value='plugin_settings' />
|
|---|
| 59 | <input type='hidden' name='subpage' value='default_settings' />
|
|---|
| 60 | <input type='hidden' name='submitted' value='true' />
|
|---|
| 61 | <input type='hidden' name='csrf' value='<?php echo $h->csrfToken; ?>' />
|
|---|
| 62 | <div style='text-align: right'><input class='submit' id='user_man_submit' type='submit' value='<?php echo $h->lang['main_form_update']; ?>' /></div>
|
|---|
| 63 | </form>
|
|---|
| 64 |
|
|---|
| 65 | <div id='user_man_perms_revert_links'>
|
|---|
| 66 | <p><a href='<?php echo BASEURL; ?>admin_index.php?plugin=user_manager&page=plugin_settings&subpage=default_settings&revert=all'><?php echo $h->lang["user_man_revert_all_user_settings"]; ?></a> <?php echo $h->lang["user_man_revert_user_settings_note"]; ?></p>
|
|---|
| 67 | <p><a href='<?php echo BASEURL; ?>admin_index.php?plugin=user_manager&page=plugin_settings&subpage=default_settings&revert=complete'><?php echo $h->lang["user_man_user_settings_trouble"]; ?></a> <?php echo $h->lang["user_man_user_settings_trouble_note"]; ?></p>
|
|---|
| 68 | </div>
|
|---|
| 69 |
|
|---|