b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/scheduled_task_error_report.txt.php - 47 lines - 2072 bytes - Text - Print

Description: This is sent to ((SystemAdmins)) to notify them that one or more ((ScheduledTasks)) failed to execute properly.

   1  <?php
   2  /**

   3   * This is sent to ((SystemAdmins)) to notify them that one or more ((ScheduledTasks)) failed to execute properly.

   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: scheduled_task_error_report.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 $htsrv_url, $admin_url, $baseurl;
  20  
  21  // Default params:

  22  $params = array_merge( array(
  23          'tasks' => array(),
  24      ), $params );
  25  
  26  echo T_('The following scheduled tasks have ended with error:')."\n";
  27  if( is_array( $params['tasks'] ) && count( $params['tasks'] ) )
  28  {
  29      foreach( $params['tasks'] as $task )
  30      {
  31          echo '- '.$task['name'].': '.$task['message']."\n";
  32      }
  33  }
  34  echo "\n";
  35  
  36  $tasks_url = $admin_url.'?ctrl=crontab&ctst_timeout=1&ctst_error=1';
  37  echo sprintf( T_('To see more information about these tasks click here: %s'), $tasks_url );
  38  
  39  // Footer vars:

  40  $params['unsubscribe_text'] = T_( 'You are a scheduled task admin, and you are receiving notifications when a scheduled tasks ends with error or timeout.' )."\n".
  41          T_( 'If you don\'t want to receive any more notifications about scheduled task errors, click here:' ).' '.
  42          $htsrv_url.'quick_unsubscribe.php?type=cronjob_error&user_ID=$user_ID$&key=$unsubscribe_key$';
  43  
  44  // ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------

  45  emailskin_include( '_email_footer.inc.txt.php', $params );
  46  // ------------------------------- END OF EMAIL FOOTER --------------------------------

  47  ?>

title

Description

title

Description

title

Description

title

title

Body