-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapisignup.php
More file actions
60 lines (43 loc) · 1.45 KB
/
apisignup.php
File metadata and controls
60 lines (43 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
include ('/home/backglob/public_html/verify/include/config.php');
$id = $_GET['auth_code'];
global $db;
//echo SURL;
//echo "select * from users where auth_code = '".base64_decode($id)."' ";
/*echo "Thanks For Registeration.";
sleep(4);*/
//$username = $_GET['username'];
//echo "select * from users where auth_code = '".base64_decode($id)."' ";exit;
$sql = mysql_query("select * from users where auth_code = '".base64_decode($id)."' ");
if(mysql_num_rows($sql))
{//UPDATE `users` SET first_name='Ata123' WHERE user_id = 441
$userInfo = mysql_fetch_assoc($sql);
$updatedx = $db->update("is_active = '1'","users","user_id=".$userInfo['user_id']." ");
//exit;
if($_SESSION['username'] != "" && $_SESSION['user_id'] != "")
{}
else
{echo "Thanks For Registeration.";
$_SESSION['username'] = $userInfo['username'];
$_SESSION['user_id'] = $userInfo['user_id'];
$_SESSION['email'] = $userInfo['email'];
$_SESSION['first_name'] = $userInfo['first_name'];
$_SESSION['fname'] = $userInfo['first_name']." ".$userInfo['middle_name']." ".$userInfo['last_name'];
//print_r($_SESSION);
// $db->insert('user_id,a_type',"$userInfo[user_id],'login'",'activity');
//echo 'afterssss';
}
?>
<script>
window.setTimeout(function(){
// Move to a new location or you can do something else
window.location.href = "<?=SURL?>?action=getstarted&atype=view";
}, 2000);
</script>
<?php
}
else
{
echo "Sorry, No user found.";
}
?>