Ethalaya php code leaks

amilaudana

Junior member
  • Jul 20, 2006
    735
    0
    16
    Sri Lanka we..
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Sendemail Script</title>
    </head>
    <body>

    <!-- Required: YOUR email ($myemail). Optional: Enter CC email address ($ccx)
    Required: Add the link for the 'next page' (at the bottom) -->

    <?php

    $myemail = "[email protected]";
    $ccx = "[email protected]";

    if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
    {
    echo "<h2>Use Back - Enter valid e-mail</h2>\n";
    $badinput = "<h2>Feedback was NOT submitted</h2>\n";
    }
    if(empty($visitor) || empty($visitormail) || empty($notes )) {
    echo "<h2>Use Back - fill in all fields</h2>\n";
    }
    echo $badinput;

    $todayis = date("l, F j, Y, g:i a") ;

    $attn = $attn . "(" . $ccopy . ")" ;
    $subject = $attn;

    $notes = stripcslashes($notes);

    $message = " $todayis [EST] \n
    Attention: $attn \n
    Message: $notes \n
    From: $visitor ($visitormail)\n
    Additional Info : IP = $ip \n
    Browser Info: $httpagent \n
    Referral : $httpref \n
    ";

    $from = "From: $visitormail\r\n";

    if (($ccopy == "ccyes") && ($visitormail != ""))
    mail($visitormail, $subject, $message, $from);

    if ($myemail != "")
    mail($myemail, $subject, $message, $from);

    if ($ccx != "")
    mail($ccx, $subject, $message, $from);

    ?>

    <p align="center">
    <font face="Arial"><span style="font-size: 8.5pt">Date: <?php echo $todayis ?>
    <br />
    Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )
    <br />

    Selected Subject: <?php echo $attn ?>
    <br />
    </span><span style="FONT-SIZE: 8.5pt">Your Information and Details</span><span style="font-size: 8.5pt">:<br />
    <?php $notesout = str_replace("\r", "<br/>", $notes);
    echo $notesout; ?>
    <br />
    <?php echo $ip ?>

    <br /><br />
     </span></font></p>

    </body>
    </html>


    =========================

    http://www.ethalaya.com/kathrutaliyanna.html