<?php include_once 'dbFunction.php'; error_reporting(0); $funObj = new dbFunction(); if ($_POST['login']) { $emailid = $_POST['emailid']; $password = $_POST['password']; $user = $funObj->Login($emailid, $password); if ($user) { // Registration Success header("location:survey.php"); } else { // Registration Failed echo "<script>alert('Emailid / Password Not Match')</script>"; } } if ($_POST['register']) { $username = $_POST['username']; $emailid = $_POST['emailid']; $password = $_POST['password']; $ngo = $_POST['ngo_name']; $city = $_POST['city_name']; $confirmPassword = $_POST['confirm_password']; if ($password == $confirmPassword) { $email = $funObj->isUserExist($emailid); if (!$email) { $register = $funObj->UserRegister($username, $emailid, $password, $ngo, $city); if ($register) { echo "<script>alert('Registration Successful')</script>"; } else {
<?php include_once 'dbFunction.php'; $funObj = new dbFunction(); if ($_GET['qu'] && $_GET['su']) { $userid = $_GET['qu']; $password = $_GET['su']; $user = $funObj->Login($userid, $password); if ($user) { if ($_SESSION['randm'] == $_GET['ru']) { $_SESSION['user'] = $userid; //echo "log"; $x = $_SESSION['randm']; header("location:skill.php"); } else { //echo "capatcha"; //echo '<br/>'; //$_SESSION['randm']=$text; $x = $_SESSION['randm']; header("location:login1.php"); } } else { header("location:login1.php"); //echo"nolog"; } } else { header('location:login1.php'); }
$var6 = $_POST["password"]; $var7 = $_POST["email"]; $var8 = $_POST["gen"]; $var9 = $_POST["dept"]; $var10 = $_POST["year"]; $var11 = $_POST["gen1"]; $var12 = $_POST["gen2"]; $var13 = $_POST["gen3"]; $var14 = $_POST["gen4"]; $var15 = $_POST["gen5"]; $var16 = $_POST["knowweb"]; $var17 = $_POST["joinweb"]; $var18 = $_POST["exceptweb"]; $var19 = $_POST["mobile_no"]; $apply = $var11 . $var12 . $var13 . $var14 . $var15; $funObj = new dbFunction(); $register1 = $funObj->create(); if ($register1) { $register2 = $funObj->insert($var1, $var2, $var3, $var7, $var19, $var8, $var9, $var10, $apply, $var16, $var17, $var18, $var4, $var6); if ($register2) { $token = sha1(uniqid($var4, true)); $time = $_SERVER['REQUEST_TIME']; $sql = "insert into verify(token,username,tstamp) values('{$token}','{$var4}',{$time})"; $result = mysql_query($sql); if ($result) { $to = $var7; // note the comma // subject $subject = 'activate your account(Webarch recruitment)'; // message $message = "\n<html>\n<head>\n <title>activate</title>\n</head>\t\n<body>\n <p>please activate your account to furthur login to portal by clicking in the following link</p>\n\t<a href='http://localhost/home/home/home/home/activate.php?token={$token}'>click here please</a>\n</body>\n</html>\n";