olamizzy
please am in need of a school website script with the following feature registration, chat forum for members and also members can upload files in the chat forum, download zone, and payment portals thanks in advance
ADMINISTATORR
Weezy Pls weezy can you give me the script, that once a user register it will send verification number to t he person phone, just like you registering on facebook
Weezy
ADMINISTATORR Its a paid service ..Where dyu wnt to use the script?
ADMINISTATORR
Weezy For a PHP site am working on
Weezy
ADMINISTATORR The service is not free, its a registered service and it needs continous renewal ..but if its like sending verification number or link to email ..its free!
ADMINISTATORR
Weezy Ok give me the one for email
Weezy
ADMINISTATORR Copy below, edit carefully
<?php
ERROR_REPORTING(0);
/*
Project: v3.5
Coded By: Aralu Kenechukwu (weezy)
Facebook: http://facebook.com/weezysays
Email: (junioraralu@yahoo.com)
CellPhone +2348137674779
Twitter: @weezy_earl
WebSite: http://weezywap.xtgem.com
*/
ob_start();
require("init.php");
$action=$_GET["action"];
if($action=="resend")
{
include"header.php";
echo"<div class='button'><center>Activation</center></div>";
if($_POST["submit"])
{
$email=cleanvalues($_POST["email"]);
$username=cleanvalues($_POST["username"]);
$check=mysql_query("SELECT * FROM b_users WHERE email='$email' AND $username='$username'");
if(mysql_num_rows($check)<1)
{
$msg="This email / username does not exists in our database";
header("location: index.php?msg=$msg");
exit();
}
else
{
//PREPARE UR CODE
/*$supervalue=$value;
$day=date("U");
$seedval=$day%10000;
srand($seedval);
$key=RAND(1000000, 2000000);
//PREPARE UR MAILER
$email=$_POST["email"];
$subject="Account activation";
$msg="Hello, you requested for your activation details\n
To activate your account, click on the below link\n _____________________________________________________________________________\n
***ACTIVATION LINK***\n
Activation Link: $url/activate.php?email=$email&keynode=$key\n
___________________________________________________________________________\n
Thank you .This is an automated response.
PLEASE DO NOT REPLY.";
$from="Auto-Response";
$date=date("U");
$query=mysql_query("UPDATE b_users SET keynode='$key' WHERE email='$email' AND username='$username'"); mail("$email","$subject","$msg","$from");*/
$msg="Your Activation code has been mailed to $email";
header("location: index.php?msg=$msg");
exit();
}
}
echo"<ul><div class='title'><div class='center'>You are seeing this because you have not activated your account..</div></div><div class='gap'></div>
<b>Question:</b> I Dont know how to Activate my Account.
Solution: Just login to the email address you provided during registration & check your inbox or Spam folder for your activation link<div class='gap'></div>.
<b>Question:</b> I didnt Receive an activation email. If you did'nt receive an activation email from us, it must have been an error from us.
Solution: please use the form below to resend your activation details.</ul>
<form action='#' method='POST'><ul><li><br/>
Your username(the username you used to register)<br/><input type='text' name='username'></li><li>Your email(the email you entered during registration)<br/><input type='text' name='email'></li><li><center><input type='submit' name='submit' class='button' value='Resend Activation'></form</center></li></ul>";
echo"<ul><font color='red'>Check Your email inbox or Spam folder for Your Activation email after Requesting for it</font></ul><div class='gap'></div>";
include"footer.php";
exit();
}
//GET THEM
$email=$_GET["email"];
$keynode=$_GET["keynode"];
//clean them
$email=cleanvalues($email);
$keynode=cleanvalues($keynode);
//Check if email exist
$checkquery=mysql_query("SELECT * FROM b_users WHERE email='$email' AND keynode=$keynode");
if(mysql_num_rows($checkquery)>0)
{
//Check if email has already been validated
$checkemail=mysql_query("SELECT * FROM b_users WHERE email='$email' AND validated=1");
if(mysql_num_rows($checkemail)>0)
{
$msg="This email has already been validated";
header("location: index.php?msg=$msg");
exit();
}
else
{
$update=mysql_query("UPDATE b_users SET validated='1' WHERE email='$email' AND keynode=$keynode");
if($update)
{
$msg="Your account has been validated successfully";
header("location: index.php?msg=$msg");
exit();
}
else
{
$msg="Oops ! An error occured , please try again later";
header("location: index.php?msg=$msg");
exit();
}
}
}
else
{
$msg="No such email in our database";
header("location: index.php?msg=$msg");
exit();
}
?>
Copy code
ADMINISTATORR
Weezy Thanks do you have facebook PHP script