[ Index ] |
|
Code source de Mantis 1.1.0rc3 |
1 <?php 2 #!/usr/local/bin/php -q 3 # Mantis - a php based bugtracking system 4 5 # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 6 # Copyright (C) 2002 - 2007 Mantis Team - mantisbt-dev@lists.sourceforge.net 7 8 # Mantis is free software: you can redistribute it and/or modify 9 # it under the terms of the GNU General Public License as published by 10 # the Free Software Foundation, either version 2 of the License, or 11 # (at your option) any later version. 12 # 13 # Mantis is distributed in the hope that it will be useful, 14 # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 # GNU General Public License for more details. 17 # 18 # You should have received a copy of the GNU General Public License 19 # along with Mantis. If not, see <http://www.gnu.org/licenses/>. 20 # See the README and LICENSE files for details 21 22 # -------------------------------------------------------- 23 # $Id: send_emails.php,v 1.1.2.2 2007-10-26 13:36:15 giallu Exp $ 24 # -------------------------------------------------------- 25 26 global $g_bypass_headers; 27 $g_bypass_headers = 1; 28 29 require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' ); 30 31 $t_core_path = config_get( 'core_path' ); 32 33 require_once ( $t_core_path . 'email_api.php' ); 34 35 # Make sure this script doesn't run via the webserver 36 # @@@ This is a hack to detect php-cgi, there must be a better way. 37 if ( isset( $_SERVER['SERVER_PORT'] ) ) { 38 echo "send_emails.php is not allowed to run through the webserver.\n"; 39 exit( 1 ); 40 } 41 42 echo "Sending emails...\n"; 43 email_send_all(); 44 echo "Done.\n"; 45 46 exit( 0 ); 47 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |