File: /home/panama/public_html_old/resend.php
<?
include("include/config.php");
$db_sel = new database();
$pageid=7;
$db_sel->where("pageid=".$pageid);
$db_sel->selectstmt("cmspagemaster");
$pagetitle = $db_sel->f_pagetitle;
$pagemeta = $db_sel->f_pagemeta;
$pagemetadesc = $db_sel->f_pagemetadesc;
//$str_len=strlen($db_sel->f_pagedesc);
//if($str_len>1100)
//$description = substr($db_sel->f_pagedesc,0,1100)."...";
//else
$description = $db_sel->f_pagedesc;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?=$pagemetadesc?>" />
<meta name="keywords" content="<?=$pagemeta?>"/>
<title><?=SITE_TITLE."- Services - ".$pagetitle?></title>
<!-- Stylesheets -->
<link rel="stylesheet" type="text/css" href="styles.css"/>
<!-- Javascript -->
<!--[if IE 6]><script src="js/ie6.js"></script><![endif]-->
<link rel="stylesheet" href="css/dropdownmenu.css" type="text/css" />
<script type="text/javascript" src="js/dropdownmenu.js"></script>
<? include('includescript.php')?>
</head>
<body>
<? include("header.php") ?>
<div id="contentwrapper">
<div class="contentcontainer">
<div class="maincontainer">
<div class="servicesbannerwrapper"><img src="images/banner_services.jpg" width="958" height="178" alt=""/></div>
</div>
<div class="maincontainer">
<div class="servicetextwrapper">
<div class="title">
<div class="breadcrumbs">
<ul>
<li class="first"><span class="titleicons"><img src="images/icon_services.png" width="40" height="42" alt=""/></span> Services</li>
<li><?=$pagetitle?></li>
</ul>
</div>
</div>
<div >
<font size="2">Please Fill up Your Email, Resend
activation Email.</font>
<form action="resend.php" method="POST" onsubmit="return checkInput(this);">
<script type="text/javascript" language="javascript">
function checkInput(resendform)
{
if(signupform.txtEmail.value=="")
{
alert("Email Can not be empty!");
signupform.txtEmail.focus();
return false;
}
var myCheck=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
if(!myCheck.test(signupform.txtEmail.value))
{
alert("Invalid Email!!!");
signupform.txtEmail.focus();
return false;
}
//alert("HaHa");
return true;
}
</script>
<table border="0" width="100%" id="table1">
<tr>
<td align="right" width="26%">Email:</td>
<td width="72%"><input type="text" name="txtEmail" size="52">*</td>
</tr>
<tr>
<td align="right" colspan="2">
<p align="center" style="text-align: center">
<input type="submit" value="Resend" name="submit" id="submit"> <input type="reset" value="Clear" name="reset" id="clear"></td>
</tr>
</table>
<p> </p>
</form>
</div>
</div>
<div class="servicesphotowrapper">
<div class="servicesphotocontainer">
<? include("right.php");?>
</div>
</div>
</div>
</div>
<? include('footer.php') ?>
</div>
<?php require_once ("include/ewconfig.php") ?>
<?php require_once ("include/db.php") ?>
<?php
if (@$_POST["submit"] <> "")
{
$strEmail = @$_POST["txtEmail"];
$conn = phpmkr_db_connect(HOST, USER, PASS, DB, PORT);
MySQL_query("SET NAMES 'utf8'");
/*Check Email*/
$StrCheck="select * from visa_user Where username='".$strEmail."'";
$query = phpmkr_query($StrCheck, $conn) or die("<font color='#FF0000'>ERROR: Failed to execute query at line " . __LINE__ . ": " . phpmkr_error($conn) . '<br>SQL: ' . $sSql."</font>");
$rs = phpmkr_fetch_array($query);
$query = phpmkr_query($StrCheck, $conn) or die("<font color='#FF0000'>ERROR: Failed to execute query at line " . __LINE__ . ": " . phpmkr_error($conn) . '<br>SQL: ' . $sSql."</font>");
if (phpmkr_num_rows($query) > 0)
{
$userid=$rs["userid"];
/*Relocate Page*/
$url="active.php?userid=".$userid."&from=resend";
header("Location: $url");
}
else
{
echo "<script language=javascript>alert('Invalid Email!!!');</script>";
}
}
else
{
}
?>
</body>
</html>