[ Index ]

PHP Cross Reference of MyBB 1.8.30

title

Body

[close]

/inc/tasks/ -> sendmailqueue.php (source)

   1  <?php
   2  /**
   3   * MyBB 1.8
   4   *
   5   * Copyright 2020 MyBB Group, All Rights Reserved
   6   *
   7   * Website: http://www.mybb.com
   8   * License: http://www.mybb.com/about/license
   9   */
  10  
  11  // Disallow direct access to this file for security reasons
  12  if(!defined('IN_MYBB'))
  13  {
  14      die('Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.');
  15  }
  16  
  17  function task_sendmailqueue($task)
  18  {
  19      global $mybb, $lang;
  20  
  21      $num_to_send = max(1, (int) $mybb->settings['mail_queue_limit']);
  22  
  23      send_mail_queue($num_to_send);
  24  
  25      add_task_log($task, $lang->sprintf($lang->task_sendmailqueue_ran, $num_to_send));
  26  }


2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref