b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/account_activated.txt.php - 97 lines - 3702 bytes - Text - Print

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

   1  <?php
   2  /**
   3   * This is sent to ((SystemAdmins)) to notify them that a new ((User)) account has been activated.
   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_activated.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 $Settings, $UserSettings, $admin_url, $htsrv_url;
  20  
  21  // Default params:
  22  $params = array_merge( array(
  23          'User' => NULL,
  24          'activated_by_admin' => '',// Login of admin which activated current user account
  25      ), $params );
  26  
  27  
  28  $activated_User = $params['User'];
  29  
  30  if( empty( $params['activated_by_admin'] ) )
  31  { // Current user activated own account
  32      echo T_('New user account activated').':';
  33  }
  34  else
  35  { // Admin activated current user account
  36      printf( T_('New user account activated by %s'), $params['activated_by_admin'] ).':';
  37  }
  38  echo "\n\n";
  39  echo T_('Login').": ".$activated_User->login."\n";
  40  echo T_('Email').": ".$activated_User->email."\n";
  41  
  42  if( $activated_User->ctry_ID > 0 )
  43  {    // Country field is defined
  44      load_class( 'regional/model/_country.class.php', 'Country' );
  45      echo T_('Country').": ".$activated_User->get_country_name()."\n";
  46  }
  47  
  48  if( $activated_User->firstname != '' )
  49  {    // First name is defined
  50      echo T_('First name').": ".$activated_User->firstname."\n";
  51  }
  52  
  53  if( $activated_User->gender == 'M' )
  54  {    // Gender is Male
  55      echo T_('I am').": ".T_('A man')."\n";
  56  }
  57  else if( $activated_User->gender == 'F' )
  58  {    // Gender is Female
  59      echo T_('I am').": ".T_('A woman')."\n";
  60  }
  61  
  62  if( $Settings->get( 'registration_ask_locale' ) && $activated_User->locale != '' )
  63  {    // Locale field is defined
  64      global $locales;
  65      echo T_('Locale').": ".$locales[$activated_User->locale]['name']."\n";
  66  }
  67  
  68  if( !empty( $activated_User->source ) )
  69  {    // Source is defined
  70      echo T_('Registration Source').": ".$activated_User->source."\n";
  71  }
  72  
  73  $registration_trigger_url = $UserSettings->get( 'registration_trigger_url', $activated_User->ID );
  74  if( !empty( $registration_trigger_url ) )
  75  {    // Trigger page
  76      echo T_('Registration Trigger Page').": ".$registration_trigger_url."\n";
  77  }
  78  
  79  $initial_blog_ID = $UserSettings->get( 'initial_blog_ID', $activated_User->ID );
  80  if( !empty( $initial_blog_ID ) )
  81  {    // Hit info
  82      echo T_('Initial page').": ".T_('Blog')." ".$UserSettings->get( 'initial_blog_ID', $activated_User->ID )." - ".$UserSettings->get( 'initial_URI', $activated_User->ID )."\n";
  83      echo T_('Initial referer').": ".$UserSettings->get( 'initial_referer', $activated_User->ID )."\n";
  84  }
  85  
  86  echo "\n";
  87  echo T_('Edit user').': '.$admin_url.'?ctrl=user&user_tab=profile&user_ID='.$activated_User->ID."\n";
  88  echo T_('Recent registrations').': '.$admin_url.'?ctrl=users&action=show_recent'."\n";
  89  
  90  // Footer vars:
  91  $params['unsubscribe_text'] = T_( 'If you don\'t want to receive any more notification when an account was activated by email, click here:' ).' '.
  92          $htsrv_url.'quick_unsubscribe.php?type=account_activated&user_ID=$user_ID$&key=$unsubscribe_key$';
  93  
  94  // ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
  95  emailskin_include( '_email_footer.inc.txt.php', $params );
  96  // ------------------------------- END OF EMAIL FOOTER --------------------------------
  97  ?>

title

Description

title

Description

title

Description

title

title

Body