Vergleich sendthread.php - 1.4.0 - 1.4.2

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: sendthread.php 3925 2008-06-16 17:38:23Z Tikitiki $

 * $Id: sendthread.php 4081 2008-08-08 01:47:02Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

 
define('THIS_SCRIPT', 'sendthread.php');


$templatelist = "sendthread";



$templatelist = "sendthread";


Zeile 72Zeile 73
// Check group limits
if($mybb->usergroup['maxemails'] > 0)
{

// Check group limits
if($mybb->usergroup['maxemails'] > 0)
{

	$query = $db->simple_select("maillogs", "COUNT(*) AS sent_count", "fromuid='{$mybb->user['uid']}'");
$sent_count = $db->fetch_field($query, "maillogs");

	$query = $db->simple_select("maillogs", "COUNT(*) AS sent_count", "fromuid='{$mybb->user['uid']}' AND dateline >= '".(TIME_NOW - (60*60*24))."'");
$sent_count = $db->fetch_field($query, "sent_count");

	if($sent_count > $mybb->usergroup['maxemails'])
{
$lang->error_max_emails_day = $lang->sprintf($lang->error_max_emails_day, $mybb->usergroup['maxemails']);

	if($sent_count > $mybb->usergroup['maxemails'])
{
$lang->error_max_emails_day = $lang->sprintf($lang->error_max_emails_day, $mybb->usergroup['maxemails']);