Version 3.1.4

This commit is contained in:
Neo committed 2025-12-19 00:32:22 -08:00
1 parent 1d4720f3e2
commit ae5c01cc78
2563 files changed
+283048 -240689

No files matched your search

@@ -1,18 +1,20 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Contact Member Functions
* Last Updated: $Date: 2009-04-14 03:01:20 -0400 (Tue, 14 Apr 2009) $
* Last Updated: $Date: 2010-09-29 20:23:38 -0400 (Wed, 29 Sep 2010) $
* </pre>
*
* @author $Author $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Board
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Members
* @link http://www.iinvisionpower.com
* @link http://www.invisionpower.com
* @since 20th February 2002
* @version $Rev: 4453 $
* @version $Rev: 6925 $
*
*/
if ( ! defined( 'IN_IPB' ) )
@@ -93,7 +95,7 @@ class public_members_messaging_contact extends ipsCommand
break;
default:
$this->registry->output->showError( 'contact_what_action', 1034 );
$this->registry->output->showError( 'contact_what_action', 1034, null, null, 404 );
break;
}
@@ -104,7 +106,7 @@ class public_members_messaging_contact extends ipsCommand
}
/* Output */
$this->registry->output->setTitle( $this->page_title );
$this->registry->output->setTitle( $this->page_title . ' - ' . ipsRegistry::$settings['board_name'] );
$this->registry->output->addContent( $this->output );
$this->registry->output->sendOutput();
}
@@ -146,13 +148,13 @@ class public_members_messaging_contact extends ipsCommand
if( empty( $this->memberData['member_id'] ) )
{
ipsRegistry::getClass('output')->showError( 'members_only_mail', 10313 );
ipsRegistry::getClass('output')->showError( 'members_only_mail', 10313, null, null, 403 );
}
/* Check email permission */
if( ! $this->memberData['g_email_friend'] )
{
ipsRegistry::getClass('output')->showError( 'no_member_mail', 10314 );
ipsRegistry::getClass('output')->showError( 'no_member_mail', 10314, null, null, 403 );
}
if( $this->request['do'] == '01' )
@@ -181,7 +183,7 @@ class public_members_messaging_contact extends ipsCommand
if( ! $id )
{
$this->registry->output->showError( 'mail_member_no_mid', 10315 );
$this->registry->output->showError( 'mail_member_no_mid', 10315, null, null, 404 );
}
/* Query member information */
@@ -190,7 +192,7 @@ class public_members_messaging_contact extends ipsCommand
/* Make sure we have a valid user */
if( ! $member['member_id'] )
{
$this->registry->output->showError( 'mail_member_no_member', 10316 );
$this->registry->output->showError( 'mail_member_no_member', 10316, null, null, 404 );
}
/* Check email privacy */
@@ -254,7 +256,7 @@ class public_members_messaging_contact extends ipsCommand
if( $this->request['to'] == 0 )
{
$this->registry->output->showError( 'mail_member_no_mid', 10318 );
$this->registry->output->showError( 'mail_member_no_mid', 10318, null, null, 404 );
}
/* Query Member */
@@ -264,7 +266,7 @@ class public_members_messaging_contact extends ipsCommand
/* Check for schtuff */
if( ! $member['member_id'] )
{
$this->registry->output->showError( 'mail_member_no_member', 10319 );
$this->registry->output->showError( 'mail_member_no_member', 10319, null, null, 404 );
}
/* Check email privacy */
@@ -397,7 +399,7 @@ class public_members_messaging_contact extends ipsCommand
$this->DB->build( array(
'select' => 'count(email_id) as cnt',
'from' => 'email_logs',
'where' => "from_member_id=$member_id AND email_date > $time_range",
'where' => "from_member_id={$member_id} AND email_date > {$time_range}",
) );
$this->DB->execute();
@@ -406,12 +408,12 @@ class public_members_messaging_contact extends ipsCommand
if( $quota_sent['cnt'] + 1 > $limit )
{
$this->int_error = 'exceeded_quota';
$this->int_extra = limit;
$this->int_extra = $limit;
return FALSE;
}
}
return TRUE; //<{%dyn.down.var.md5p2%}> If we get here...
return TRUE;
}
}