Parašė DJ-EnZoto· 2008 Sau. 19 18:01:07
#1
opentable("Rekomenduok mus");
?>
<?php
/* Setting */
$your_host="http://lmharef.com"; /* your host */
/* language setting */
$hello="hello";
$Tell_A_Friend_MSG="Recommend this Site to a Friend";
$Forward_YourName="Your name:";
$Forward_YourEmail="Your email-address:";
$Forward_YourMessage="Your Message";
$Forward_ReceiverEMail="Receiver email-address:";
$Forward_ReceiverName="Receiver name:";
$Forward_Article_succ="your message was successfully sent.";
$Forward_YourName_Error="Error: your name is missing";
$Forward_YourEmail_Error="Error: your email-address is missing";
$Forward_ReceiverEMail_Error="Error: Receiver email-address is missing.";
$Forward_ReceiverName_Error="Error: Receiver name is missing.";
$Forward_YourMessage_Error="your message is missing.";
$Forward_MailSubject="check it out.";
$Forward_URL="URL";
$Forward_MailMessage="I found a website link
that I thought you might like to check it out!
Here is my personal message to you : ";
$Forward_YourSite_description=" tell a freind is a free phpfusion addon made by mave & shedrock";
/* please dont change anything after this line */
$red="#FF0000";
$black="#000000";
$fontc=$black;
$tabadd=true;
$tabthanks=false;
$msg=$Tell_A_Friend_MSG;
if($sendmsg){
if(empty($your_name)){
$msg=$Forward_YourName_Error;
$fontc=$red;
}
if(empty($your_email)){
$msg=$Forward_YourEmail_Error;
$fontc=$red;
}
if(empty($rec_name)){
$msg=$Forward_ReceiverName_Error;
$fontc=$red;
}
if(empty($rec_email)){
$msg=$Forward_ReceiverEMail_Error;
$fontc=$red;
}
if(empty($your_msg)){
$msg=$Forward_YourMessage_Error;
$fontc=$red;
}
if(!preg_match("/@/",$your_email)){
$msg=$Forward_YourEmail_Error;
}
if(!preg_match("/@/",$rec_email)){
$msg=$Forward_ReceiverEMail_Error;
}
else if(($your_name) && ($your_email) && ($rec_name) && ($rec_email) && ($your_msg) && (preg_match("/@/",$rec_email))&& (preg_match("/@/",$your_email)) ) {
$MailMSG="$hello $rec_name\n$Forward_MailMessage\n$your_msg\n\n$Forward_URL: $your_host\n$Forward_YourSite_description\n";
$send_mail= mail ($rec_email,$Forward_MailSubject,$MailMSG, "From: $your_email");
$tabthanks=true;
$tabadd=false;
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Recommend this Site to a Friend</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="600" align="left" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top"><p>
</p>
<p>
<?php if($tabadd){ ?>
</p>
<form action="<?php echo"$PHP_SELF";?>" method="post">
<table class="tbl" width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFCC33">
<tr>
<td align="center" class="tbl1">Rekomenduok draugui</td>
</tr>
<tr>
<td align="center"><table width="420" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150"><?php echo"$Forward_YourName";?></td>
<td width="270"><input class="textbox" name="your_name" type="text" value="<?php echo "$your_name"; ?>" size="25"></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><table width="420" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" height="18"><?php echo"$Forward_YourEmail";?></td>
<td width="270"><input class="textbox" name="your_email" type="text" value="<?php echo "$your_email"; ?>" size="25"></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><table width="420" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150"><?php echo"$Forward_ReceiverName";?></td>
<td width="270"><input class="textbox" name="rec_name" type="text" value="<?php echo "$rec_name"; ?>" size="25"></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><table width="420" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150"><?php echo"$Forward_ReceiverEMail";?></td>
<td width="270"><input class="textbox" name="rec_email" type="text" value="<?php echo "$rec_email"; ?>" size="25"></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><table width="420" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" align="left" valign="top"><?php echo"$Forward_YourMessage";?></td>
<td width="270"><textarea class="textbox" name="your_msg" cols="50" rows="6" wrap="VIRTUAL"><?php echo "$your_msg"; ?></textarea></td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" align="center"><input class="button" name="sendmsg" type="submit" value="Siųsti">
</td>
</tr>
</table>
</form>
<p>
<?php
}
?>
</p></td>
</tr>
<tr>
<td align="center" valign="bottom">
<?php if($tabthanks){ ?>
<table width="100%">
<tr>
<td align="center"><?php echo"$Forward_Article_succ";?></td>
</tr>
</table>
<?php } ?></td>
</tr>
</table>
</body>
</html>
<?
closetable();
require_once BASEDIR."side_right.php";
require_once BASEDIR."footer.php";
?>
==================
i kur ydeti sita tell.php kad veiktu svetaineje ? nes skriptu bibliotekoje neparasyta
chipass edited: Išmok redaguot savo postus