Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
No files matched your search
@@ -3,15 +3,15 @@
|
||||
/**
|
||||
* Invision Power Services
|
||||
* Incoming Email Handler - Piping
|
||||
* Last Updated: $Date: 2011-08-23 10:24:47 -0400 (Tue, 23 Aug 2011) $
|
||||
* Last Updated: $Date: 2012-06-06 05:13:39 -0400 (Wed, 06 Jun 2012) $
|
||||
*
|
||||
* @author $Author: mark $
|
||||
* @copyright (c) 2010 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 12th February 2010
|
||||
* @version $Revision: 9404 $
|
||||
* @version $Revision: 10871 $
|
||||
*/
|
||||
|
||||
$writeDebug = FALSE;
|
||||
@@ -21,35 +21,35 @@
|
||||
// Init
|
||||
//--------------------------------------
|
||||
|
||||
$root = isset( $_SERVER['argv'][0] ) ? $_SERVER['argv'][0] : $_SERVER['SCRIPT_FILENAME'];
|
||||
define( '_DOC_IPS_ROOT_PATH', str_replace( 'interface/email/piping.php', '', $root ) );
|
||||
define( 'IPS_ENFORCE_ACCESS', TRUE );
|
||||
define( 'IPB_THIS_SCRIPT', 'public' );
|
||||
|
||||
$INFO = array();
|
||||
require_once( _DOC_IPS_ROOT_PATH . 'conf_global.php' );/*noLibHook*/
|
||||
define( 'BASE_URL', $INFO['board_url'] );
|
||||
|
||||
require_once( _DOC_IPS_ROOT_PATH . 'initdata.php' );/*noLibHook*/
|
||||
define( 'IPS_ROOT_PATH', DOC_IPS_ROOT_PATH . CP_DIRECTORY . '/' );
|
||||
define( 'IPS_KERNEL_PATH', DOC_IPS_ROOT_PATH . "ips_kernel/" );
|
||||
|
||||
$debugPath = DOC_IPS_ROOT_PATH . 'cache/_email.txt';
|
||||
require_once( str_replace( 'interface/email/piping.php', '', ( isset( $_SERVER['argv'][0] ) ? $_SERVER['argv'][0] : $_SERVER['SCRIPT_FILENAME'] ) ) . 'initdata.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );/*noLibHook*/
|
||||
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );/*noLibHook*/
|
||||
|
||||
$registry = ipsRegistry::instance();
|
||||
$registry->init();
|
||||
|
||||
//-----------------------------------------
|
||||
// Get the Email
|
||||
//-----------------------------------------
|
||||
|
||||
$debugPath = DOC_IPS_ROOT_PATH . 'cache/_email.txt';
|
||||
$email = file_get_contents( $readDebug ? $debugPath : 'php://stdin' );
|
||||
|
||||
if ( $writeDebug )
|
||||
{
|
||||
file_put_contents( $debugPath, $email );
|
||||
}
|
||||
|
||||
require_once ( IPS_KERNEL_PATH . 'classIncomingEmail.php' );/*noLibHook*/
|
||||
$incomingEmail = new classIncomingEmail( $email );
|
||||
if ( !$incomingEmail->ignore )
|
||||
|
||||
$override = array();
|
||||
if ( isset( $_SERVER['argv'][1] ) )
|
||||
{
|
||||
@$incomingEmail->route();
|
||||
$override['to'] = $_SERVER['argv'][1];
|
||||
}
|
||||
|
||||
require_once ( IPS_ROOT_PATH . 'sources/classes/incomingEmail/incomingEmail.php' );
|
||||
incomingEmail::parse( $email, $override );
|
||||
|
||||
exit();
|
||||
Reference in new issue
Block a user