b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/account_closed.txt.php - 56 lines - 2196 bytes - Text - Print

Description: This is sent to ((SystemAdmins)) to notify them that a ((User)) account has been closed (either by the User themselves or by another Admin).

   1  <?php
   2  /**
   3   * This is sent to ((SystemAdmins)) to notify them that a ((User)) account has been closed (either by the User themselves or by another Admin).
   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_closed.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          'login'   => '',
  24          'email'   => '',
  25          'reason'  => '',
  26          'user_ID' => '',
  27          'closed_by_admin' => '',// Login of admin which closed current user account
  28      ), $params );
  29  
  30  
  31  if( empty( $params['closed_by_admin'] ) )
  32  {    // Current user closed own account
  33      echo T_('A user account was closed!');
  34  }
  35  else
  36  {    // Admin closed current user account
  37      printf( T_('A user account was closed by %s'), $params['closed_by_admin'] );
  38  }
  39  echo "\n\n";
  40  
  41  echo T_('Login').": ".$params['login']."\n";
  42  echo T_('Email').": ".$params['email']."\n";
  43  echo T_('Account close reason').": ".$params['reason'];
  44  echo "\n\n";
  45  
  46  echo T_('Edit user').': '.$admin_url.'?ctrl=user&user_tab=profile&user_ID='.$params['user_ID'];
  47  
  48  // Footer vars:
  49  $params['unsubscribe_text'] = T_( 'If you don\'t want to receive any more notification when an account was closed, click here:' ).' '.
  50          $htsrv_url.'quick_unsubscribe.php?type=account_closed&user_ID=$user_ID$&key=$unsubscribe_key$';
  51  
  52  // ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
  53  // If site footers are enabled, they will be included here:
  54  emailskin_include( '_email_footer.inc.txt.php', $params );
  55  // ------------------------------- END OF EMAIL FOOTER --------------------------------
  56  ?>

title

Description

title

Description

title

Description

title

title

Body