| 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 |
*/ |
*/ |
| 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/> ". |
'#description' => "<b>". t("Instructions:") ."</b><br/> - ". |
| 24 |
t(" - Click on an ip range to modify the authenticator assignment.") ."<br/> ". |
t("Click on an ip range to modify the authenticator assignment.") ."<br/> - ". |
| 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.'), |
| 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); |