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

Diff of /contributions/modules/listhandler/listhandler.module

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

revision 1.54, Thu Nov 18 00:06:58 2004 UTC revision 1.55, Wed Nov 24 22:03:32 2004 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: listhandler.module,v 1.53 2004/10/01 00:08:33 uwe Exp $  // $Id: listhandler.module,v 1.54 2004/11/18 00:06:58 killes Exp $
3    
4  function listhandler_help($section) {  function listhandler_help($section) {
5    $output = '';    $output = '';
6    switch($section) {    switch($section) {
7      case 'admin/modules#description':      case 'admin/modules#description':
8        $output = t('Connect your mailing lists to your drupal site and your drupal site to your mailing lists.');        $output = t('Connect your mailing lists to your drupal site and your drupal site to your mailing lists.');
9        $output .= ' $Id: listhandler.module,v 1.53 2004/10/01 00:08:33 uwe Exp $';        $output .= ' $Id: listhandler.module,v 1.54 2004/11/18 00:06:58 killes Exp $';
10        break;        break;
11    }    }
12    return $output;    return $output;
# Line 347  function listhandler_user_save($array = Line 347  function listhandler_user_save($array =
347    
348    foreach ($array as $key => $value) {    foreach ($array as $key => $value) {
349      if ($key == 'pass') {      if ($key == 'pass') {
350        $fields[] = check_query($key);        $fields[] = db_escape_string($key);
351        $values[] = md5($value);        $values[] = md5($value);
352        $s[] = "'%s'";        $s[] = "'%s'";
353      }      }
354      else if (substr($key, 0, 4) !== "auth") {      else if (substr($key, 0, 4) !== "auth") {
355        if (in_array($key, $user_fields)) {        if (in_array($key, $user_fields)) {
356          $fields[] = check_query($key);          $fields[] = db_escape_string($key);
357          $values[] = $value;          $values[] = $value;
358          $s[] = "'%s'";          $s[] = "'%s'";
359        }        }

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

  ViewVC Help
Powered by ViewVC 1.1.2