/[drupal]/contributions/modules/webfm/modules/webfm_ipfolder/webfm_ipfolder.admin.inc
ViewVC logotype

Diff of /contributions/modules/webfm/modules/webfm_ipfolder/webfm_ipfolder.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Wed Aug 19 15:23:33 2009 UTC revision 1.2, Thu Aug 20 01:10:35 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: webfm_ipfolder.admin.inc,v 1.1 2009/08/19 15:23:33 robmilne Exp $
3  /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */  /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4  /**  /**
5   * @author     Niels Hackius <niels.hackius@tu-harburg.de>   * @author     Niels Hackius <niels.hackius@tu-harburg.de>
6   * @copyright 2009, Technische Universität Hamburg-Harburg: Institut für Logistik und Unternehmensführung   * @copyright 2009, Technische Universität Hamburg-Harburg: Institut für Logistik und Unternehmensführung
7   * @license    http://www.opensource.org/licenses/gpl-3.0.html  GNU General Public License version 3 (GPLv3)   * @license    http://www.opensource.org/licenses/gpl-3.0.html  GNU General Public License version 3 (GPLv3)
8   * @version   $Id$   * @version   $Id: webfm_ipfolder.admin.inc,v 1.1 2009/08/19 15:23:33 robmilne Exp $
9   * @since      12:01:33 15.04.2009   * @since      12:01:33 15.04.2009
10   *   *
11   */   */
# Line 20  function webfm_ipfolder_ips() Line 20  function webfm_ipfolder_ips()
20   $form['ip_list'] = array(   $form['ip_list'] = array(
21      '#type' => 'fieldset',      '#type' => 'fieldset',
22      '#title' => t('Current IP authenticated folders'),      '#title' => t('Current IP authenticated folders'),
23      '#description' => "<b>". t("Instructions:") ."</b><br/> &nbsp;".      '#description' => "<b>". t("Instructions:") ."</b><br/> &nbsp; - ".
24                        t(" - Click on an ip range to modify the authenticator assignment.") ."<br/> &nbsp; ".                        t("Click on an ip range to modify the authenticator assignment.") ."<br/> &nbsp; - ".
25                        t(" - The title fields are sortable.") ."<br/><br/>".                        t("The title fields are sortable.") ."<br/><br/>".
26                        "<b>". t("Your IP: @s", array('@s' => $_SERVER['REMOTE_ADDR'])) ."</b>".                        "<b>". t("Your IP: @s", array('@s' => $_SERVER['REMOTE_ADDR'])) ."</b>".
27                        '<br /><br/>'.                        '<br /><br/>'.
28                        t('Please note that users with the <em>administer webfm</em> rights will be able to download the files anyway.'),                        t('Please note that users with the <em>administer webfm</em> rights will be able to download the files anyway.'),
# Line 269  function webfm_ipfolder_settings() Line 269  function webfm_ipfolder_settings()
269                  '#type' => 'radios',                  '#type' => 'radios',
270                  '#title' => t('Default behavior'),                  '#title' => t('Default behavior'),
271                  '#default_value' => variable_get('webfm_ipfolder_bydefault', false),                  '#default_value' => variable_get('webfm_ipfolder_bydefault', false),
272                  '#options' => array(t('Block access to all folders, but not to IP/folder-Pairs specifed.'), t('Allow access to all folders, but not to IP/folder-Pairs specified.')),                  '#options' => array(t('Block access to all folders, but not to IP/folder-Pairs specifed.'), t('Allow access to all folders, but restrict access for the IP/folder-Pairs as specified.')),
273          );          );
274    
275          return system_settings_form($form);          return system_settings_form($form);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2