if (isset($_REQUEST['note']) && ($_REQUEST['note']!=""))
{ echo ''.stripslashes($_REQUEST['note']).''; }
?>
|
eScene Help
|
|
|
|
// Send E-mail
if (isset($_REQUEST['sendto'])&&($_REQUEST['sendto']!=""))
{
//valid e-mail ?
$email=$_REQUEST['sendto'];
$from=$_REQUEST['sentfrom'];
if (eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@([0-9a-z](-?[0-9a-z])*\.)+[a-z]{2}([zmuvtg]|fo|me)?$",$email))
{
if ($from=="")
{ $from="$anon_address"; }
if (eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@([0-9a-z](-?[0-9a-z])*\.)+[a-z]{2}([zmuvtg]|fo|me)?$",$from))
{
$text=my_file_get_contents($email_path);
$link='http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].'?';
// if ($from != "$anon_address")
// {
$link.='sentfrom='.rawurlencode($from).'&';
$link.='viewby='.rawurlencode($email).'&';
if (isset($_REQUEST['title']) && ($_REQUEST['title']!=""))
{ $link.='title='.rawurlencode($_REQUEST['title']).'&'; }
if (isset($_REQUEST['note']) && ($_REQUEST['note']!=""))
{ $link.='note='.rawurlencode($_REQUEST['note']).'&'; }
// }
$link.='b='.$_REQUEST['b'];
$link.='&i='.$_REQUEST['i'];
if ($from==$anon_address)
{ $f="an Anonymous Visitor"; } else { $f=$from; }
$text=str_replace('LINK',$link,$text);
$text=str_replace('EMAIL',$f,$text);
if (isset($_REQUEST['title']) && ($_REQUEST['title']!=""))
{ $t=($_REQUEST['title']); }
else
{ $t=' built an E-Scene, wanted you to see it'; }
mail($email,$t,$text,"From: $from\r\n"
."Reply-To: $from\r\n"
."X-Mailer: E-Scene via PHP/" . phpversion());
} else {
echo '
You typed your e-mail address wrong, please try again
';
}
} else {
echo '
You typed your friends e-mail address wrong, please try again
';
$_REQUEST['sendto']="";
}
}
if (isset($_REQUEST['sentfrom'])&&(!isset($_REQUEST['sendto'])))
{
$from=$_REQUEST['sentfrom'];
if (eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@([0-9a-z](-?[0-9a-z])*\.)+[a-z]{2}([zmuvtg]|fo|me)?$",$from))
{
if ($from != "$anon_address")
{
$text=my_file_get_contents($note_path);
$link='http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].'?';
$link.='b='.$_REQUEST['b'];
if (isset($_REQUEST['title']) && ($_REQUEST['title']!=""))
{ $link.='title='.rawurlencode($_REQUEST['title']).'&'; }
if (isset($_REQUEST['note']) && ($_REQUEST['note']!=""))
{ $link.='note='.rawurlencode($_REQUEST['note']).'&'; }
$link.='&i='.$_REQUEST['i'];
// $link=rawurlencode($link);
$text=str_replace('LINK',$link,$text);
if (isset($_REQUEST['viewby']))
{
$f=$_REQUEST['viewby'];
} else { $f=$anon_address; }
$text=str_replace('EMAIL',$f,$text);
if (!file_exists($log_dir.$_SERVER['REQUEST_URI']))
{
touch($log_dir.$_SERVER['REQUEST_URI']);
mail($from,$f.' saw your E-Scene !!!'.$_REQUEST['title'],$text,
"From: $f\r\n"
."Reply-To: $f\r\n"
."X-Mailer: E-Scene via PHP/" . phpversion());
}
}
}
}
?>
Help with eScenes
- Drag the images on the right onto the background.
- Use the 'Previous' and 'Next' links to choose more images, hold down the mouse button to scroll
- Click the right mouse button to remove images
- Send your creation to your friends
if (isset($_REQUEST['i'])&&($_REQUEST['i']!=""))
{
$ims=split("X",$_REQUEST['i']);
while (list($k,$im_str)=each($ims))
{
$im_type=substr($im_str,0,1);
$im_def=substr($im_str,1);
$def=split("Z",$im_def);
$img_no=$def[0];
$img_x=$def[1];
$img_y=$def[2];
switch($im_type) {
case 'd': $im_type='doll'; break;
case 'c': $im_type='cloth'; break;
case 't': $im_type='toy'; break;
}
echo '
';
}
}
if (isset($_REQUEST['imlist'])&&($_REQUEST['imlist']!=""))
{
$ims=split(":",$_REQUEST['imlist']);
while (list($k,$im_str)=each($ims))
{
$im_type=substr($im_str,0,strpos($im_str,"="));
$im_def=substr($im_str,strpos($im_str,"=")+1);
$def=split(",",$im_def);
$img_no=$def[0];
$img_x=$def[1];
$img_y=$def[2];
switch($im_type) {
case 'd': $im_type='doll'; break;
case 'c': $im_type='cloth'; break;
case 't': $im_type='toy'; break;
}
echo '
';
}
}
function add_img($type,$num,$pos)
{
echo '
';
}
//backwards compatibility
if (isset($_REQUEST['d'])&&($_REQUEST['d']!=""))
{ add_img("doll",$_REQUEST['d'],$_REQUEST['dp']); }
if (isset($_REQUEST['c'])&&($_REQUEST['c']!=""))
{ add_img("cloth",$_REQUEST['c'],$_REQUEST['cp']); }
if (isset($_REQUEST['t'])&&($_REQUEST['t']!=""))
{ add_img("toy",$_REQUEST['t'],$_REQUEST['tp']); }
?>