bulkmail.php

来自「sabreipb 2.1.6 utf-8中文版本!」· PHP 代码 · 共 95 行

PHP
95
字号
<?php/*+--------------------------------------------------------------------------|   Invision Power Board v2.1.5|   =============================================|   by Matthew Mecham|   (c) 2001 - 2005 Invision Power Services, Inc.|   |   =============================================|   Web: |   Time: Wed, 01 Mar 2006 19:11:30 GMT|   Release: |   Licence Info: +---------------------------------------------------------------------------|   > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $|   > $Revision: 23 $|   > $Author: matt $+---------------------------------------------------------------------------||   > TASK SCRIPT: Send Bulk Mail|   > Script written by Matt Mecham|   > Date started: 28th January 2004|+--------------------------------------------------------------------------*///-----------------------------------------// THIS TASKS OPERATIONS:// Sends out bulk mail//+--------------------------------------------------------------------------if ( ! defined( 'IN_IPB' ) ){	print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";	exit();}class task_item{	var $class     = "";	var $root_path = "";	var $task      = "";		/*-------------------------------------------------------------------------*/	// Our 'auto_run' function	// ADD CODE HERE	/*-------------------------------------------------------------------------*/		function run_task()	{		define( 'IN_ACP', 1 );				//-----------------------------------------		// Load Bulk Mailer thing		//-----------------------------------------				require_once( $this->root_path.'sources/action_admin/postoffice.php' );		$po           = new ad_postoffice();		$po->ipsclass =& $this->ipsclass;				$po->mail_send_process( $this->root_path );				//-----------------------------------------		// Unlock Task: DO NOT MODIFY!		//-----------------------------------------				$this->class->unlock_task( $this->task );	}		/*-------------------------------------------------------------------------*/	// register_class	// LEAVE ALONE	/*-------------------------------------------------------------------------*/		function register_class(&$class)	{		$this->class     = $class;		$this->ipsclass  =& $class->ipsclass;		$this->root_path = $this->class->root_path;	}		/*-------------------------------------------------------------------------*/	// pass_task	// LEAVE ALONE	/*-------------------------------------------------------------------------*/		function pass_task( $this_task )	{		$this->task = $this_task;	}		}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?