<?
include "../../fastwap.inc.php";
//============================================================================
//Fastwap v.1.3 - a Linkmamager for WAP-Phones
//Copyright (C) 2001 webDessert.ch <[email protected]>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 021111307, USA.
// ==============================================================================
?>
<html>
<head><title>Succesully signed up!</title>
<link rel="STYLESHEET" media="screen" href="site.css" type="text/css">
<?
if($email)
{
echo("<meta http-equiv=\"refresh\" content=\"3; URL=$path_fastwap\">");
}
?>
</head>
<body bgcolor="#ffffff" text="#000000">
<?
$dbcnx = mysql_connect("$db_host", "$db_user", "$db_pass");
if (!$dbcnx) {
echo( "<P>Unable to connect to the " .
"database server at this time.</P>" );
exit();
}
mysql_select_db("$db_dbname", $dbcnx) or die(mysql_error());
// Does the username already exist?
// Request the data from usertable
$result = mysql_query("SELECT username FROM fastwap_person");
if (!$result)
{
echo("<P>No database query possible now, sorry. Please retry in 3 minutes.");
exit();
}
// fetch results in Array
while ( $row = mysql_fetch_array($result) )
{
$user_verify = $row["username"];
if($user_verify == $username_sign)
{
echo("This username exists already, sorry");
exit();
}
}
if(!$password1)
{
echo("Please fill in your password");
exit();
}
if(!$password2)
{
echo("Please fill in your password");
exit();
}
if(!$username_sign)
{
echo("Please fill in your username");
exit();
}
if($password1 != $password2)
{
echo("Please check your password and make shure you inserted two identical passwords.");
exit();
}
$password = md5($password1);
$insertquery="insert into fastwap_person
values('','$username_sign','$password','$email')";
$insertresult = mysql_query($insertquery) or die(mysql_error());
mysql_close();
//Send email if Email was inserted
$password_dc = $password;
$tomail = "$email";
//Subject of the Message
$subject = "Welcome to fastwap";
//The Message. If you edit, pleas keep the variables alive (eg $password1)
$message = "Welcome to fastwap, $username_sign
Your pasword is:
$password1
To access your links whith your mobile use this link:
$path_fastwap/links.wml?us=$username_sign&pw=$password_dc
Or, a bit shorter (but not that safe if you loose your phone):
$path_fastwap/links.wml?us=$username_sign&pass=$password1
To edit your Links via your webbrowser:
$path_fastwap
Have Fun!
";
if($getcopy == "yes")
{
mail($adminmail,$subject,$message,"From: $sender");
}
if($email)
{
mail($tomail,$subject,$message,"From: $sender");
//This Message will be displayed if you've signed up succesfully
echo("Succesully signed up!<br><br>Welcome to Fastwap, $username_sign. An email whith your login information has been sent to you.");
}
if(!$email)
{
echo("Succesully signed up!<br><br>Welcome to Fastwap, $username_sign. <br>You did not insert an Email-Adress. <br>Please write down your Password (its <b>not recoverable</b>) and the link to access your links via your mobile phone.<br><br><br>The Link is:<br>$path_fastwap/links.wml?us=$username_sign&pw=$password_dc<br><br>
Or, a bit shorter (but not that safe if you loose your phone):<br>
$path_fastwap/links.wml?us=$username_sign&pass=$password1<br><br>
<br><a href=\"$path_fastwap\">Login here</a>");
}
?>
</body>
</html>