b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/account_new.txt.php - 96 lines - 3275 bytes - Text - Print

Description: This is sent to ((SystemAdmins)) to notify them that a new ((User)) account has been created.

   1  <?php
   2  /**
   3   * This is sent to ((SystemAdmins)) to notify them that a new ((User)) account has been created.
   4   *
   5   * For more info about email skins, see: http://b2evolution.net/man/themes-templates-skins/email-skins/
   6   *
   7   * b2evolution - {@link http://b2evolution.net/}
   8   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
   9   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}
  10   *
  11   * @version $Id: account_new.txt.php 6136 2014-03-08 07:59:48Z manuel $
  12   */
  13  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  14  
  15  // ---------------------------- EMAIL HEADER INCLUDED HERE ----------------------------
  16  emailskin_include( '_email_header.inc.txt.php', $params );
  17  // ------------------------------- END OF EMAIL HEADER --------------------------------
  18  
  19  global $admin_url, $htsrv_url;
  20  
  21  // Default params:
  22  $params = array_merge( array(
  23          'country'     => '',
  24          'firstname'   => '',
  25          'gender'      => '',
  26          'locale'      => '',
  27          'source'      => '',
  28          'trigger_url' => '',
  29          'initial_hit' => '',
  30          'login'       => '',
  31          'email'       => '',
  32          'new_user_ID' => '',
  33      ), $params );
  34  
  35  
  36  echo T_('A new user has registered on the site').":";
  37  echo "\n\n";
  38  
  39  echo T_('Login').": ".$params['login']."\n";
  40  echo T_('Email').": ".$params['email']."\n";
  41  if( $params['country'] > 0 )
  42  { // Country field is entered
  43      load_class( 'regional/model/_country.class.php', 'Country' );
  44      $CountryCache = & get_CountryCache();
  45      $user_Country = $CountryCache->get_by_ID( $params['country'] );
  46      echo T_('Country').": ".$user_Country->get_name()."\n";
  47  }
  48  
  49  if( $params['firstname'] != '' )
  50  { // First name is entered
  51      echo T_('First name').": ".$params['firstname']."\n";
  52  }
  53  
  54  if( $params['gender'] == 'M' )
  55  { // Gender is Male
  56      echo T_('I am').": ".T_('A man')."\n";
  57  }
  58  else if( $params['gender'] == 'F' )
  59  { // Gender is Female
  60      echo T_('I am').": ".T_('A woman')."\n";
  61  }
  62  
  63  if( !empty( $params['locale'] ) )
  64  { // Locale field is entered
  65      global $locales;
  66      echo T_('Locale').": ".$locales[ $params['locale'] ]['name']."\n";
  67  }
  68  
  69  if( !empty( $params['source'] ) )
  70  { // Source is defined
  71      echo T_('Registration Source').": ".$params['source']."\n";
  72  }
  73  
  74  if( !empty( $params['trigger_url'] ) )
  75  { // Trigger page
  76      echo T_('Registration Trigger Page').": ".$params['trigger_url']."\n";
  77  }
  78  
  79  if( !empty ( $params['initial_hit'] ) )
  80  { // Hit info
  81      echo T_('Initial page').": ".T_('Blog')." ".$params['initial_hit']->hit_blog_ID." - ".$params['initial_hit']->hit_uri."\n";
  82      echo T_('Initial referer').": ".$params['initial_hit']->hit_referer."\n";
  83  }
  84  
  85  echo "\n";
  86  echo T_('Edit user').': '.$admin_url.'?ctrl=user&user_tab=profile&user_ID='.$params['new_user_ID']."\n";
  87  echo T_('Recent registrations').': '.$admin_url.'?ctrl=users&action=show_recent'."\n";
  88  
  89  // Footer vars:
  90  $params['unsubscribe_text'] = T_( 'If you don\'t want to receive any more notifications about new user registrations, click here:' ).' '.
  91          $htsrv_url.'quick_unsubscribe.php?type=user_registration&user_ID=$user_ID$&key=$unsubscribe_key$';
  92  
  93  // ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
  94  emailskin_include( '_email_footer.inc.txt.php', $params );
  95  // ------------------------------- END OF EMAIL FOOTER --------------------------------
  96  ?>

title

Description

title

Description

title

Description

title

title

Body