
<?
/********************************************************************************/
/* 小林在贺卡 :	PHP+TXT							        */
/* ==============================						*/
/*  版本: v0.01 -- 2003.03.08					         	*/
/*										*/
/* ---------------------------------------------------				*/
/* - 程式版权 (c) 2003 小林所有	    -		                     		*/
/* - 小林在贺卡版权所有   http://www.xlzx.net.tf    -				*/
/* ---------------------------------------------------				*/
/*										*/
/*						                                */
/* 网站地址:  www.xlzx.net.tf - xlzx.24cc.com - OICQ:26565571		        */
/********************************************************************************/
/*简介：本软件无须数据库支持。                                                  */
/*                                                                              */
/*版权说明: 本软件为免费软件。你可以下载使用。但请保留此声明	                */
/*										*/
/* 本版为测试版。希望大家找出bug！大家多多提建议！	                        */ 
/* 	                                                                        */
/* 申明：由于使用本软件造成任何事故！本人概不负责！				*/
/*										*/
/*      作者：小林   E-mail:lilin525007@sina.com  网址：www.xlzx.net.tf         */
/********************************************************************************/
include("flush.php");
if($toname=="")
{
echo "<center><br><br><br><br><br><br>发送者姓名还没填呢?!<P>";
require("retrun.php");
echo "</center>";
exit();
}
if($fromname=="")
{
echo "<center><br><br><br><br><br><br>接受者姓名还没填呢?!<P>";
require("retrun.php");
echo "</center>";
exit();
}
if(!ereg( "^[^@ ]+@([a-zA-Z0-9-]+.)+([a-zA-Z0-9-]{2}|net|com|gov|mil|org|edu|int)$",$tomail))
{echo "<center><br><br><br><br><br><br>发送者邮件格式不正确!<P>";
require("retrun.php");
echo "</center>";
exit();}
if(!ereg( "^[^@ ]+@([a-zA-Z0-9-]+.)+([a-zA-Z0-9-]{2}|net|com|gov|mil|org|edu|int)$",$frommail))
{echo "<center><br><br><br><br><br><br>接受者邮件格式不正确!<P>";
require("retrun.php");
echo "</center>";
exit();}

if($talk=="")
{
echo "<center><br><br><br><br><br><br>贺词没填呢?!<P>";
require("retrun.php");
echo "</center>";
exit();
}
?>
<TITLE><?echo "$yourhome";?></TITLE>
<link rel="stylesheet" type="text/css" href="lv.css">
<body bgcolor="#FFFFFF" background="bg/<?echo "$backgd";?>.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#9900FF" link="#9900FF" vlink="#9900FF" alink="#FF00FF">
<bgsound src="<?echo "$bgmid";?>" loop='-1'>
<!--music_end--><div align="center"><center>
<table border=0 cellpadding=0 cellspacing=0 width='555' align=center>
  <tr> 
    <td><img src=tk/spacer.gif width=43 height='1' border=0></td>
    <td><img src="tk/spacer.gif" width="459" height="1" border="0"></td>
    <td><img src="tk/spacer.gif" width="53" height="1" border="0"></td>
    <td><img src="tk/spacer.gif" width="1" height="1" border="0"></td>
  </tr>
  <tr> 
    <td colspan="3"><img name="newca2_r1_c1" src="tk/newca2_r1_c1.gif" width="555" height="62" border="0" usemap="#newca2_r1_c1Map"></td>
    <td><img src="tk/spacer.gif" width="1" height="62" border="0"></td>
  </tr>
  <tr> 
    <td rowspan="2" background="tk/newca2_r2_c1.gif">　</td>
        <td rowspan="6" bgcolor="#E2D9FF"> 
          <p align="center">  
<? switch($m)
{
 case "f":
echo ("
<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" width=\"400\" height=\"400\" id=\"Shockwave Flash Object1\">
  <PARAM name=\"movie\" value=\"$address\">
  <PARAM name=\"quality\" value=\"high\">
<EMBED src=\"$address\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"400\">
</OBJECT>
");
break;
case "p":
echo ("
<IMG border=0 src=\"$address\">
");
break;
}
?>
</p>
    </td>
    <td background="tk/newca2_r2_c3.gif">　</td>
    <td><img src="tk/spacer.gif" width="1" height="26" border="0"></td>
  </tr>
  <tr> 
    <td rowspan="8" background="tk/newca2_r3_c3.gif">&nbsp;</td>
    <td><img src="tk/spacer.gif" width="1" height="23" border="0"></td>
  </tr>
  <tr> 
    <td rowspan="7" background="tk/newca2_r4_c1.gif">&nbsp;</td>
    <td><img src="tk/spacer.gif" width="1" height="4" border="0"></td>
  </tr>
  <tr> 
    <td><img src="tk/spacer.gif" width="1" height="23" border="0"></td>
  </tr>
  <tr> 
    <td><img src="tk/spacer.gif" width="1" height="27" border="0"></td>
  </tr>
  <tr> 
    <td><img src="tk/spacer.gif" width="1" height="181" border="0"></td>
  </tr>
  <tr> 
    <td bgcolor="#E2D9FF"><FONT  color=#0080ff>收卡人:</FONT></STRONG><a href='mailto:<?echo "$frommail";?>'><?echo "$fromname";?></a>  
    </td>   
    <td><img src="tk/spacer.gif" width="1" height="22" border="0"></td>   
  </tr>   
</center>   
  <tr>    
    <td bgcolor="#E2D9FF">   
      <div align="center">   
        <table width="458" border="0" cellspacing="1" cellpadding="1" height="1">   
          <tr>   
            <td width="325" rowspan="2" height="1">
                                                <font color="<?echo "$textcolor";?>"><?echo "$talk";?><font>                       
                </td>  
            <center>
            <td width="118" height="1"><img src="tk/myoupiao.gif" width="115" height="70"></td>  
          </tr>    
          <tr>    
            <td width="118" height="33"></td>  
          </tr>    
        </table>    
      </div>    
      </center>    
    </td>    
    <td><img src="tk/spacer.gif" width="1" height="106" border="0"></td>    
  </tr>    
  <tr>     
    <td bgcolor="#E2D9FF">    
      <div align="right">  发卡人:<a href='mailto:<?echo "$tomail";?>'><?echo "$toname";?></a>
      </div>    
    </td>    
    <td><img src="spacer.gif" width="1" height="20" border="0"></td>    
  </tr>    
  <tr>     
    <td><img name="newca2_r11_c1" src="tk/newca2_r11_c1.gif" width="43" height="32" border="0"></td>    
    <td bgcolor="#E2D9FF">&nbsp;</td>    
    <td><img name="newca2_r11_c3" src="tk/newca2_r11_c3.gif" width="53" height="32" border="0"></td>    
    <td><img src="tk/spacer.gif" width="1" height="32" border="0"></td>    
  </tr>    
  <tr>     
    <td><img name="newca2_r12_c1" src="tk/newca2_r12_c1.gif" width="43" height="42" border="0"></td>    
    <td background="tk/newca2_r12_c2.gif">&nbsp;</td>    
    <td><img name="newca2_r12_c3" src="tk/newca2_r12_c3.gif" width="53" height="42" border="0"></td>    
    <td><img src="tk/spacer.gif" width="1" height="42" border="0"></td>    
  </tr>    
</table>
<?

$book="data/user/data.php";
$garray = @file($book);


$larray = explode("|",$garray[0]);


$ip=$larray[0]+1;

mt_srand((double)microtime()*1000000);
$randval = mt_rand();
echo $randval;


?>
<?
echo <<<EOD
<form method="post" action="ok.php">
<input type="hidden" name="from_name" value="$fromname">
<input type="hidden" name="from_mail" value="$frommail">
<input type="hidden" name="to_mail" value="$tomail">
<input type="hidden" name="to_name" value="$toname">
<input type="hidden" name="backgd" value="$backgd">
<input type="hidden" name="bgmid" value="$bgmid">
<input type="hidden" name="textcolor" value="$textcolor">
<input type="hidden" name="talk" value="$talk">
<input type="hidden" name="n" value="$n">
<input type="hidden" name="idd" value="$id">
<input type="hidden" name="m" value="$m">
<input type="hidden" name="address" value="$address">
<input type="hidden" name="ip" value="$ip">
<input type="hidden" name="randval" value="$randval">
    <p align=center><INPUT type="submit"  value="OK! 寄出"  style="color: #FFFFFF; background-color: #CC33FF; border: 1px solid #FFE1FF">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="button" onclick='javascript:history.back()' value="返回修改"  style="color: #FFFFFF; background-color: #CC33FF; border: 1px solid #FFE1FF"><br><br></p>
</form>
EOD;

?>

</div>
</body></html>