Location: PHPKode > scripts > WH Social > wh_social/resend.php
<?php require('framework/session.php'); ?>
<?php require('style/layout/header.php'); ?>

<div id="content_wrapper">
    <div class="content">

    <?php

        if($_SERVER['REQUEST_METHOD'] != 'POST') {

        echo '<p>&nbsp;</p>
        <table align="center" width="350" border="0" cellpadding="0" cellspacing="0" summary="' . $lang['resend'] . '">
        <tr><td><h1>&nbsp;&nbsp;' . $lang['resend'] . '</h1></td></tr>
        <tr><td><div class="sign_in"><form name="resend" method="post" action="">
        <p><input type="text" name="email" size="30" class="textfields" required> <input type="submit" name="resend" value="' . $lang['request_mail'] . '" alt="' . $lang['request_mail'] . '" class="buttons"><br>
        <small>' . $lang['email_must_be_filled'] . '</small></p>
        </form></div></td></tr></table>';

        }else{

        $email = trim($_POST['email']);

        $query = mysql_query("SELECT name, email, hash FROM members WHERE email = '$email' LIMIT 1") OR die(mysql_error());

        while($row = mysql_fetch_assoc($query)) {

            $name = mysql_real_escape_string($row['name']);
            $hash = mysql_real_escape_string($row['hash']);

            if(mysql_num_rows($query) > 0) {

            $subject = $lang['complete_your_registration'];
            $message = '' . $lang['thank_you_for_registration'] . '

-------------------------------
' . $lang['name'] . ': ' . $name . '
' . $lang['e_mail_adress'] . ':  ' . $email . '
-------------------------------

' . $lang['click_verify_link'] . ':
' . $url . 'verify.php?email=' . $email . '&hash=' . $hash . '
';

            $header   = array();
            $header[] = 'From: ' . mb_encode_mimeheader($title, 'utf-8', 'Q') . ' <' . $webmaster . '>';
            $header[] = 'MIME-Version: 1.0';
            $header[] = 'Content-type: text/plain; charset=utf-8';
            $header[] = 'Content-transfer-encoding: 8bit';

            $send = mail("$email", "$subject", "$message", "$header");

        if($send) {

        echo '<p class="success">' . $lang['resend_success'] . ' . <a href="signin.php" class="success_link">' . $lang['go_to_signin'] . '</a></p>';

            }else{

            echo '<p class="false">' . $lang['resend_false'] . ' - <a href="javascript:history.back();" class="false_link">' . $lang['back'] . '</a></p>';
            }

                }else{

                echo '<p class="false">' . $lang['user_not_exists'] . '</p>';
                }
            }
        }

	?>

<?php require('style/layout/footer.php'); ?>
Return current item: WH Social