/[drupal]/contributions/modules/filerequest/filerequest.module
ViewVC logotype

Diff of /contributions/modules/filerequest/filerequest.module

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

revision 1.4, Mon Jul 3 14:03:54 2006 UTC revision 1.4.2.1, Mon Jul 3 14:12:08 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: filerequest.module,v 1.2.2.2 2006/03/26 15:08:08 elmuerte Exp $  // $Id: filerequest.module,v 1.4 2006/07/03 14:03:54 elmuerte Exp $
3    
4  function filerequest_help($section) {  function filerequest_help($section) {
5    switch ($section) {    switch ($section) {
# Line 65  function filerequest_settings() { Line 65  function filerequest_settings() {
65    $form['settings']['filereq_antileech_image_file'] = array(    $form['settings']['filereq_antileech_image_file'] = array(
66      '#type' => 'textfield',      '#type' => 'textfield',
67      '#title' => t('Image file'),      '#title' => t('Image file'),
68      '#default_value' => variable_get('filereq_antileech_image_file', ""),      '#default_value' => variable_get('filereq_antileech_image_file', "modules/filerequest/watermark.png"),
69      '#size' => 72,      '#size' => 72,
70      '#maxlength' => 65535,      '#maxlength' => 65535,
71      '#description' => t('The image to used when special image handling is enabled. This path is relative to the drupal base directory. <br />In case of the watermark mode the image has to be a 24 bit PNG file. Hint: make use of the alpha channels for PNGs.'),      '#description' => t('The image to used when special image handling is enabled. This path is relative to the drupal base directory. <br />In case of the watermark mode the image has to be a 24 bit PNG file. Hint: make use of the alpha channels for PNGs.'),
# Line 78  function filerequest_settings() { Line 78  function filerequest_settings() {
78    );    );
79    
80    $form['config'][] = array(    $form['config'][] = array(
81      '#value' => "<textarea rows=\"7\" cols=\"72\" readonly=\"readonly\" wrap=\"off\"><?php\n\$config[\"filereq_antileech_enabled\"] = ".variable_get('filereq_antileech_enabled', true).";\n\$config[\"filereq_antileech_regex\"] = \"".addslashes(variable_get('filereq_antileech_regex', preg_quote($_SERVER["HTTP_HOST"])))."\";\n\$config[\"filereq_fspath\"] = \"".addslashes(file_create_path())."\";\n\$config[\"filereq_antileech_image_mode\"] = ".variable_get('filereq_antileech_image_mode', 0).";\n\$config[\"filereq_antileech_image_file\"] = \"".addslashes(variable_get('filereq_antileech_image_file', "modules/filerequest/watermark.png"))."\";\n?></textarea>"      '#value' => "<textarea rows=\"7\" cols=\"72\" readonly=\"readonly\" wrap=\"off\"><?php\n\$config[\"filereq_antileech_enabled\"] = ".variable_get('filereq_antileech_enabled', true).";\n\$config[\"filereq_antileech_regex\"] = \"".addslashes(variable_get('filereq_antileech_regex', preg_quote($_SERVER["HTTP_HOST"])))."\";\n\$config[\"filereq_fspath\"] = \"".addslashes(file_create_path())."\";\n\$config[\"filereq_antileech_image_mode\"] = ".variable_get('filereq_antileech_image_mode', 0).";\n\$config[\"filereq_antileech_image_file\"] = \"".addslashes(variable_get('filereq_antileech_image_file', "modules/filerequest/watermark.png"))."\";\n</textarea>"
82    );    );
83    
84    return $form;    return $form;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.2.1

  ViewVC Help
Powered by ViewVC 1.1.2