b2evolution PHP Cross Reference Blogging Systems

Source: /skins_email/scheduled_task_error_report.html.php - 52 lines - 2216 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.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 $htsrv_url, $admin_url, $baseurl;
  20  
  21  // Default params:

  22  $params = array_merge( array(
  23          'tasks' => array(),
  24      ), $params );
  25  
  26  echo '<p>'.T_('The following scheduled tasks have ended with error:')."</p>\n";
  27  if( is_array( $params['tasks'] ) && count( $params['tasks'] ) )
  28  {
  29      echo '<p><ul>';
  30      foreach( $params['tasks'] as $task )
  31      {
  32          echo '<li>'.$task['name'].': '.$task['message'].'</li>';
  33      }
  34      echo "</ul></p>\n";
  35  }
  36  
  37  // Buttons:

  38  echo '<div class="buttons">'."\n";
  39  echo get_link_tag( $admin_url.'?ctrl=crontab&ctst_timeout=1&ctst_error=1', T_( 'Review tasks with errors' ), 'button_yellow' )."\n";
  40  echo "</div>\n";
  41  
  42  
  43  // Footer vars:

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

  50  emailskin_include( '_email_footer.inc.html.php', $params );
  51  // ------------------------------- END OF EMAIL FOOTER --------------------------------

  52  ?>

title

Description

title

Description

title

Description

title

title

Body