num > 0 ) //asm$ //if( false) { $sql = "select count(id) as num from std_month_stock_pdf_email where email = '".$_POST['email']."' and date <= CURDATE() and date >= DATE_SUB(CURDATE(), INTERVAL 30 DAY) "; //echo $sql; $result = mysql_query($sql) ; $res = mysql_fetch_object( $result ) ; if( $res->num > 0 ) { // echo "==="; // ob_start(); @header("Location: http://www.stocktradersdaily.com".$_SERVER['SCRIPT_NAME']."?received=1"); // ob_end_flush(); echo "=!="; exit(); } else { $sql = "select * from std_month_stock_pdf_email where email='".$_POST['email']."'"; $result = mysql_query($sql) ; $row = mysql_fetch_array($result); $sql = "update std_month_stock_pdf_email set stock='".strtoupper($_POST['stock'])."', date='".date("Y-m-d")."', request='".$_POST['monthly']."', download='".($row['download']+1)."' WHERE email='".$_POST['email']."'"; $result = mysql_query($sql) ; $sql = "update std_month_stock_pdf_email_track set last_track_email_date='".date("Y-m-d")."' where std_month_stock_pdf_email_id='".$row["id"]."'"; $result = mysql_query($sql) ; sent_email($_POST['stock']) ; } } else { $date = date("Y-m-d"); // $script = $_SERVER['SCRIPT_NAME'] ; // $script = str_replace(".php", "", $script ); //$script = explode("/", $script ); // $num = count($script) ; // $script_name = $script[ $num - 1 ] ; $sql = "insert into std_month_stock_pdf_email ( name , email , stock , date ,request ) value ('".$_POST['name']."','".$_POST['email']."','".strtoupper($_POST['stock'])."','".$date."' , '".$_POST['monthly']."') "; $result = mysql_query($sql) ; $std_month_stock_pdf_email_id = mysql_insert_id(); $sql = "insert into std_month_stock_pdf_email_track (std_month_stock_pdf_email_id, last_track_email_date) value ('".$std_month_stock_pdf_email_id."', '".date("Y-m-d")."')"; $result = mysql_query($sql) ; sent_email($_POST['stock']) ; } } else { form();} } else { form();} ?> Special Discount for Report Subscribers"; } ?> Stock Traders Daily

Top of the market to You!

I would also like you to know that our long term financial indicator, The Investment Rate, which the Market has followed exactly since 1900, tells us that the Market is poised for a decline that will last for the next 10 years. It predicted the Great Depression and the Stagflation periods of the 1970's in advance too, so you should understand what it is saying. We sell this report through Reuters to their Institutional Clients for $300 each. However, you can get it for FREE right here: : 
Stock Traders Daily

Sincerely,

Thomas H. Kee Jr.
CEO, Stock Traders Daily
"; } ?> Click here to go back to the input page "; } /* *********************************************************** email form ################################################################# */ function form() { ?>

Get your free Real Time Trading Report Now.  Type the symbol of the stock into the field below.  This report will be e-mailed to you, make sure your address is correct.  For additional Information, click one of the links below.

" ; } ?>

Name*
Email Address*
Stock Symbol*
* Required Fields
We are offering this FREE report to you as an added value.  We want you to understand how to trade the stocks you are following.  We offer 1 FREE Report to you every month.  If you like the report you receive, come back and get another.

*privacy policy

We respect the privacy of all of our customers and we do not share your personal information with anyone.  Your e-mail is requested so that we can send your FREE report to you.  We will not provide your e-mail to any online marketing firm.  Your information is treated as personal and confidential.

0) return false ; else return true ; } /* ########################################################################### ######################### email ################################################## */ function check_email_address($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } /* if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } ==============================*/ return true; } /* ############################################################# ************** testing the the stock existence ************** */ function read_stock($stocks) { $stk = strtoupper ( $stocks ) ; //First check file if it exist $filename = "../clubsite/Club2/SSD/Stocks/$stk"; // echo $filename; //echo $filename; if (file_exists($filename)) { return true; } else { // @header("Location: http://www.stocktradersdaily.com/Main/monthly_pdf.php?notfound=1"); echo "" ; exit(); } } //////////// ========== send_stock_reports =============//////////////// function sent_email($stocks) { global $email; global $name ; include_once("../clubsite/Club/pdf/gen_TradingReport.php"); //echo $stocks; include_once("../clubsite/Club/EmailManagement/clsEmail.php"); //Start Email Sending Process $stk = strtoupper ( $stocks ) ; $stockfile1 = pdf_name( $stk ); // Path to the file // echo "
-".$stockfile1."-
" ; //return ; if ( strlen($stockfile1) < 2 ) { global $message ; array_push( $message , "Unable to provide the pdf file "); return ; } // $stockfile1 = $stockfile1."pdf"; // Path to the file $mail = new mime_mail(); $attachment1 = fread(fopen("$stockfile1", "r"), filesize("$stockfile1")); $mail->add_attachment("$attachment1", "TradingReport_".$stocks.".pdf", "Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAgEASABIAAD/7QT+UGhvdG9zaG"); //fclose($attachment1); // echo "
Sending email.... $stock1 "; $mail->from = " Thomas Hill "; $mail->headers = "Errors-To: [EMAIL=adeel.hussain@verticity.com]adeel.hussain@verticity.com[/EMAIL]"; $mail->to = $email ; //$mail->to = "ahmedshaikhm@yahoo.com" ;//asm$ //$mail->to = "ahmedshaikhm123@aim.com" ;//asm$ //$mail->bcc = "tomkee@stocktradersdaily.com"; // ryahya@verticity.com kryahya@hotmail.com $mail->subject = "Your $stk Report"; $mail->body = "

Here is your Updated $stk Report. It has been sent as an attachment to this e-mail in PDF format. Before you do anything else, print this report. It will be much easier to use after you print it.

IMPORTANT! Because stocks are dynamic, and because this is a real time report, you need to use the real time data in the attached report in conjunction with the charts of $stk in order to make correct decisions. Follow these instructions:

1. Determine if you are interested in day trading, swing trading, or investing in $stk for the long term.

2. Determine if you want to buy or short $stk.

3. Read the report to identify the trading plan you want to use.

4. Simulate the trade your chose using our real time trading simulatoror. click here and see if the plan works: http://www.ultimatetraderchallenge.com.

NOTE: If you did not receive the attached report it is probably because your email provider has blocked it. Please try using a Yahoo, Gmail, or Hotmail account if you have one of those. Otherwise, you can sign up for a free trial to get the report in html (dynamic) format: http://www.stocktradersdaily.com.

"; // Message that the email has in it $mail->send(); $mail2 = new mime_mail(); $mail2->from = " Stock Traders Daily "; $mail2->headers = "Errors-To: [EMAIL=adeel.hussaina@verticity.com]adeel.hussain@verticity.com[/EMAIL]"; $mail2->to = "info@stocktradersdaily.com" ; //$mail->bcc = "tomkee@stocktradersdaily.com"; // ryahya@verticity.com kryahya@hotmail.com $mail2->subject = "requested $stk Trading Report " ; $mail2->body = "

A $stk stock report has been sent to $email
User Name: $name

"; // Message that the email has in it $mail2->send(); //End Email Sending Process //echo "email sent"; if ( file_exists($stockfile1) ) unlink( $stockfile1 ); if ( file_exists( $stockfile1 ) ) unlink( $stockfile1 ); echo "" ; // @header("Location: http://www.stocktradersdaily.com/Main/monthly_pdf.php?mailsent=1&stock=$stk&email=$email") ; exit(); } ?>