Location: PHPKode > projects > MyOWNSpace > MyOWNspace_v8.2/www/foward.php
<?
$cryptinstall="classes/crypt/cryptographp.fct.php";
include $cryptinstall; 
include "header.php";
include "config.php";
?>
<script language="javascript">
var i = 1;
function changeIt()
{
i++;
my_div.innerHTML = my_div.innerHTML + "<br><label>MyOwnFriend Name(" +i + "):</label><input type='text' name='myfriend" + i + "'>&nbsp;<label>MyOwnFriend Email:</label><input type='text' name='friendemail" +i +"'>"

}
</script>

<?


if(isset($_POST['myfriend1'])&&(chk_crypt($_POST['code']))){
$i=1;
echo '<center><h1>Sending MyOWNinvitation..</H1></center>';
while(isset($_POST['myfriend'.$i.''])){
$login=$_POST['myfriend'.$i.''];    //echo $login.'#';
$email=$_POST['friendemail'.$i.'']; //echo $email.'#';
$i++;
$to='"'.$login.'<'.$email.'>"';
///////EDIT EMAiL
$sujet='Visit MyOwnSpace!';
$code='';
$id=$_POST['id'];
$my=$_POST['my'];
$myemail=$_POST['myemail'];
//reset($myown_user);
//$login= $myown_user[$key]['login'];
//$email= $myown_user[$key]['email'];
$headers = 'From: '.$my.'<'.$myemail.'>'. "\r\n" .
     'Reply-To: <'.$myemail.'>' . "\r\n" .
     'X-Mailer: MyOwn/' . phpversion();
$code='Hello '.$login.' !

'.$my.' is inviting you to discover '.$myspace[$id]['artiste'].'\'s page on MyOWNspace!';

if($_POST['text']!=""&& $my!=""){ 
$code.='

<!--Personal message from : '.$my.'<'.$email.'> -->
'.htmlspecialchars ($_POST['text']).'
<!--End of message-->';
}


$code.='

Click this link to visit '.$myspace[$id]['artiste'].'\'s page on MyOWNspace: <http://myownspace.fr/'.$id.'>

--------------------------------------------------------------------------------

Join MyOwnSpace and you will instantly be connected to your OwnFriends™!

Click Here to Join:
< http://myownspace.fr/signup.php>

What is MyOwnSpace?
======================
MyOwnSpace is an underground community that lets you meet your OwnFriends™\' friends.

 » Create your Own Custom Profile!
 » Play your Own Online Music!
 » Send Mail!
 » Write Blogs & Comments!
 » Manage Your OwnAds™
 » Choose Your OwnFriends™ (soon)
 » It\'s FREE!


Who Uses MyOwnSpace?
=======================
MyOwnSpace is for everyone:

 * Families who want to be Online!
 * Bands that want their own music to be downloaded!
 * Friends who want to keep in touch!
 * Homeless interested in networking!
 * Anyone looking for underground hosting on the web!

What Do I Do?
======================
1. Click the Link In This E-mail!
2. Create Your Own Profile!
3. Start Communicating with Your OwnFriends™ and Your OwnFriends™\'s Friends!
4. Invite Your OwnFriends™ to Join!

Click Here to Learn More:
<http://myownspace.ze.cx/>


You got this email because someone who knows you
sent you an invitation to join them on MyOwnSpace.ze.cx

[Disclaimer:MyOwnSpace.ze.cx is BETA version, we will soon improve new features to MyOwnSpace!]

<!-- hide@address.com -->';
mail($to, $sujet, $code,$headers);
echo "<li>sent mail to ".$to." </li>";
}
echo 'done.<br>[<a href="/">Back</a> to MyOWNspace]';
}
else
{
if (isset($_GET['n'])&&$_GET['n']!=""){
$id=$_GET['n'];
echo'<br><br><br>
<fieldset>
<legend><a class="big_title" >Foward '.$myspace[$id]['artiste'].'\'s page to YourOWNfriends</a></font></legend>
<form name="invitation" action="foward.php" method="POST"><br><br>
<label>MyOwn Name:</label><input type="text" name="my">&nbsp;<label>MyOwn Email:</label><input type="text" name="myemail">
<hr>
<label>MyOwnFriend Name(1):</label><input type="text" name="myfriend1">&nbsp;<label>MyOwnFriend Email:</label><input type="text" name="friendemail1">
<br><input type="hidden" name="id" value="'.$id.'">
<input type="button" value="MORE Friends!" onClick="changeIt()"><br>
<legend id="my_div"></legend>
<hr><label>Personal Message:(optional)</label><br><textarea style="color: black;" name="text" cols="30" rows="4"></textarea><br>
<label>';
dsp_crypt(0,1);
echo '</label><br>Pass the test: <br>
<label><input type="text" name="code"></label><hr>
<input type="submit" value="SEND My OWN invitation!">
</form></fieldset>';


}
else echo"<p>Problem durig the process! try again..</p>";
//else header(location(url:home.php));
}
include "footer.php";
?>
Return current item: MyOWNSpace