
<?
/********************************************************************************/
/* 小林在贺卡 :	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         */
/********************************************************************************/
$exp=explode("xlzx","$pswd");

$id=$exp[1];
$pd=$exp[0];
if(!isset($id)||!isset($pd)){
echo <<<EOD
<TABLE>
  <TBODY>
    <TR>
      <TD height="105" width="182"></TD>
      <TD height="105" width="414"></TD>
      <TD height="105" width="142"></TD>
    </TR>
    <TR>
      <TD width="182" height="52"></TD>
      <TD width="414" align="center" height="52"><FONT color="#ff0000">此贺卡不存在！</FONT><BR>
      </TD>
      <TD width="142" height="52"></TD>
    </TR>
    <TR>
      <TD height="53"></TD>
      <TD align="center" height="53"><FONT color="#ff0000">原因：取卡密码错误！或 贺卡已过期！</FONT><BR><br><a href="" onclick="history.go(-1);return false;">[点击返回]</a>
      </TD>
      <TD height="53"></TD>
    </TR>
    <TR>
      <TD height="87" width="182"></TD>
      <TD height="87" width="414"></TD>
      <TD height="87" width="142"></TD>
    </TR>
  </TBODY>
</TABLE>
EOD;
exit();}

include("flush.php");
include("config.php");
$book="data/user/data.php";
$garray = @file($book);
$cog=count($garray);
for($i=0;$i<$cog;$i++){
$larray = explode("|",$garray[$i]);

if($id==$larray[0]){

$id=$larray[0];

$m=$larray[2];
$bgmid=$larray[10];
$backbg=$larray[7];
$address=$larray[11];
$fromname=$larray[3];
$toname=$larray[5];
$frommail=$larray[4];
$message=$larray[9];
$textcolor=$larray[8];
$tomail=$larray[6];
$time=$larray[12];
$passd=$larray[13];
$xlzx=$larray[15];
include("time.php");
$regdate=get_date_chi($time)." ".get_time($time);
$messageb=eregi_replace("`","<br>",$message);
if($pd!=$passd){
echo <<<EOD
<TABLE>
  <TBODY>
    <TR>
      <TD height="105" width="182"></TD>
      <TD height="105" width="414"></TD>
      <TD height="105" width="142"></TD>
    </TR>
    <TR>
      <TD width="182" height="52"></TD>
      <TD width="414" align="center" height="52"><FONT color="#ff0000">此贺卡不存在！</FONT><BR>
      </TD>
      <TD width="142" height="52"></TD>
    </TR>
    <TR>
      <TD height="53"></TD>
      <TD align="center" height="53"><FONT color="#ff0000">原因：取卡密码错误！或 贺卡已过期！</FONT><BR><br><a href="" onclick="history.go(-1);return false;">[点击返回]</a>
      </TD>
      <TD height="53"></TD>
    </TR>
    <TR>
      <TD height="87" width="182"></TD>
      <TD height="87" width="414"></TD>
      <TD height="87" width="142"></TD>
    </TR>
  </TBODY>
</TABLE>
EOD;
exit();}}}
switch($xlzx){
case "a":
$form="<form method='post' action='ko.php'>";
$input="<INPUT type='submit'  value='发确认信'  style='color: #FFFFFF; background-color: #CC33FF; border: 1px solid #FFE1FF'>";
break;
case "b":
$input="<INPUT type='submit'  value='确认信已发'  style='color: #FFFFFF; background-color: #CC33FF; border: 1px solid #FFE1FF' disabled readonly>";
break;
}
echo <<<EOD

<TITLE></TITLE>
<link rel="stylesheet" type="text/css" href="lv.css">
<body bgcolor="#FFFFFF" background="bg/$backbg.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#9900FF" link="#9900FF" vlink="#9900FF" alink="#FF00FF">
<bgsound src="$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">
EOD;

?> 
<?
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;
}
echo <<<EOD
</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:$frommail'>$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="$textcolor">$messageb<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"> <FONT  color=#0080ff> 发卡人:</font><a href='mailto:$tomail'>$toname</a>
      </div>    
  <P align="right">$regdate<p> </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>
<form method="post" action="ko.php">
<input type="hidden" name="from_name" value="$fromname">
<input type="hidden" name="to_name" value="$toname">
<input type="hidden" name="from_mail" value="$frommail">
<input type="hidden" name="to_mail" value="$tomail">
<input type="hidden" name="pd" value="$pd">
<input type="hidden" name="id" value="$id">
<input type="hidden" name="xlzxabc" value="b">
    <p align=center><INPUT type="submit"  value="发确认信"  style="color: #FFFFFF; background-color: #CC33FF; border: 1px solid #FFE1FF">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="button" onclick="javascript:location='index.php'" value="发回复卡"  style="color: #FFFFFF; background-color: #CC33FF; border: 1px solid #FFE1FF"><br><br></p>
</form></div>
</body></html>
EOD;
?>