b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/account_new.html.php - 102 lines - 3920 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.html.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.html.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 '<p>'.T_('A new user has registered on the site').':</p>'."\n";
  37  
  38  echo '<table class="email_table">'."\n";
  39  echo '<tr><th>'.T_('Login').':</th><td>'.get_user_colored_login( $params['login'] ).'</td></tr>'."\n";
  40  echo '<tr><th>'.T_('Email').':</th><td>'.$params['email'].'</td></tr>'."\n";
  41  
  42  if( $params['country'] > 0 )
  43  { // Country field is entered
  44      load_class( 'regional/model/_country.class.php', 'Country' );
  45      $CountryCache = & get_CountryCache();
  46      $user_Country = $CountryCache->get_by_ID( $params['country'] );
  47      echo '<tr><th>'.T_('Country').':</th><td>'.$user_Country->get_name().'</td></tr>'."\n";
  48  }
  49  
  50  if( $params['firstname'] != '' )
  51  { // First name is entered
  52      echo '<tr><th>'.T_('First name').':</th><td>'.$params['firstname'].'</td></tr>'."\n";
  53  }
  54  
  55  if( $params['gender'] == 'M' )
  56  { // Gender is Male
  57      echo '<tr><th>'.T_('I am').':</th><td>'.T_('A man').'</td></tr>'."\n";
  58  }
  59  else if( $params['gender'] == 'F' )
  60  { // Gender is Female
  61      echo '<tr><th>'.T_('I am').':</th><td>'.T_('A woman').'</td></tr>'."\n";
  62  }
  63  
  64  if( !empty( $params['locale'] ) )
  65  { // Locale field is entered
  66      global $locales;
  67      echo '<tr><th>'.T_('Locale').':</th><td>'.$locales[ $params['locale'] ]['name'].'</td></tr>'."\n";
  68  }
  69  
  70  if( !empty( $params['source'] ) )
  71  { // Source is defined
  72      echo '<tr><th>'.T_('Registration Source').':</th><td>'.$params['source'].'</td></tr>'."\n";
  73  }
  74  
  75  if( !empty( $params['trigger_url'] ) )
  76  { // Trigger page
  77      echo '<tr><th>'.T_('Registration Trigger Page').':</th><td>'.get_link_tag( $params['trigger_url'] ).'</td></tr>'."\n";
  78  }
  79  
  80  if( !empty ( $params['initial_hit'] ) )
  81  { // Hit info
  82      echo '<tr><th>'.T_('Initial page').':</th><td>'.T_('Blog')." ".$params['initial_hit']->hit_blog_ID." - ".$params['initial_hit']->hit_uri.'</td></tr>'."\n";
  83      echo '<tr><th>'.T_('Initial referer').':</th><td>'.get_link_tag( $params['initial_hit']->hit_referer ).'</td></tr>'."\n";
  84  }
  85  
  86  echo '</table>'."\n";
  87  
  88  // Buttons:
  89  echo '<div class="buttons">'."\n";
  90  echo get_link_tag( $admin_url.'?ctrl=user&user_tab=profile&user_ID='.$params['new_user_ID'], T_('Edit User'), 'button_yellow' )."\n";
  91  echo get_link_tag( $admin_url.'?ctrl=users&action=show_recent', T_('View recent registrations'), 'button_gray' )."\n";
  92  echo "</div>\n";
  93  
  94  // Footer vars:
  95  $params['unsubscribe_text'] = T_( 'If you don\'t want to receive any more notifications about new user registrations, click here:' )
  96              .' <a href="'.$htsrv_url.'quick_unsubscribe.php?type=user_registration&user_ID=$user_ID$&key=$unsubscribe_key$">'
  97              .T_('instant unsubscribe').'</a>.';
  98  
  99  // ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
 100  emailskin_include( '_email_footer.inc.html.php', $params );
 101  // ------------------------------- END OF EMAIL FOOTER --------------------------------
 102  ?>

title

Description

title

Description

title

Description

title

title

Body