Changeset 12883 for trunk/install.php


Ignore:
Timestamp:
Jan 14, 2012, 1:00:47 PM (12 years ago)
Author:
mistic100
Message:

2021: email notification on user creation + mail for admin at installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install.php

    r12802 r12883  
    460460    $user = build_user(1, true);
    461461    log_user($user['id'], false);
     462   
     463    // email notification
     464    include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
     465         
     466    $keyargs_content = array(
     467      get_l10n_args('Hello %s,', $admin_name),
     468      get_l10n_args('Welcome to your new installation of Piwigo!', ''),
     469      get_l10n_args('', ''),
     470      get_l10n_args('Here is your password: %s', $admin_pass1),
     471      get_l10n_args('', ''),
     472      get_l10n_args('Don\'t hesitate to consult our forums for any help: %s', PHPWG_URL),
     473      );
     474     
     475    pwg_mail(
     476      $admin_mail,
     477      array(
     478        'subject' => 'Just another Piwigo gallery',
     479        'content' => l10n_args($keyargs_content),
     480        'content_format' => 'text/plain',
     481        )
     482      );
    462483  }
    463484}
Note: See TracChangeset for help on using the changeset viewer.