/[drupal]/contributions/modules/webfm/modules/webfm_ipfolder/webfm_ipfolder.module
ViewVC logotype

Diff of /contributions/modules/webfm/modules/webfm_ipfolder/webfm_ipfolder.module

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

revision 1.1, Wed Aug 19 15:23:34 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.module,v 1.1 2009/08/19 15:23:34 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.module,v 1.1 2009/08/19 15:23:34 robmilne Exp $
9   * @since               10:10:57 15.04.2009   * @since               10:10:57 15.04.2009
10   *   *
11   */   */
12    
13  /**  /**
14     * Implementation of hook_help
15     *
16     * @param $path string Path being accessed
17     * @param $arg array
18     * @return string A localized string containing the help text.
19     */
20    function webfm_ipfolder_help($path,$arg)
21    {
22            switch ($path) {
23        case 'admin/help#webfm_ipfolder':
24          return '<p>'. t('This module extends the Web File Manager. It allows to block or allow certain IP Ranges access to specified folders. <br /> In the !configuration you can provide IP Ranges and folder names.<br /> Depending on your !settings the selected IP Range will be allowed or blocked. By default it <b>blocks</b> access to all folders.',array('!configuration'=>l(t('configuration'),'admin/settings/webfm_ipfolder'),'!settings'=>l(t('settings'),'admin/settings/webfm_ipfolder/webfm_ipfolder_settings'))) .'</p>';
25            case 'admin/modules#description':
26          return t('Enable the Web File Manager Extension to allow IP based folder blocking.');
27      }
28    }
29    
30    /**
31   * Implementation of hook_webfm_send   * Implementation of hook_webfm_send
32   * Provides an IP based checking routine that allows the user create IP based folder access rules   * Provides an IP based checking routine that allows the user create IP based folder access rules
33   *   *
34   * @param $file   * @param $file object File object of file requested
35   * @return array Containing the maybe set sent flag   * @return array Containing the maybe set sent flag
36   */   */
37    

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

  ViewVC Help
Powered by ViewVC 1.1.2