-
Notifications
You must be signed in to change notification settings - Fork 0
/
regx.php
41 lines (36 loc) · 1.09 KB
/
regx.php
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
<?php
/**
* Created by PhpStorm.
* User: Radon
* Date: 30.12.2018
* Time: 14:48
*/
include_once 'mySQLConnector2.0.php';
// sleep(1); /*loader chiroyli ishlashi uchun XD*/
/*offer ID listener for offer Node*/
if ( !empty($_POST['offerID']) ){
$data = $mysqli->query("SELECT * FROM $base.user WHERE `id` = {$_POST['offerID']}");
if($row = $data -> fetch_assoc()){
if ($_POST['offerID'] == $row['id']){
include_once 'offerNode.php';
}else{
echo "error"; die();
}
}else{
echo "error"; die();
}
}elseif ( !empty($_POST['RegID']) ){
$data = $mysqli->query("SELECT * FROM $base.user WHERE `id` = {$_POST['RegID']}");
if($row = $data -> fetch_assoc()){
if ($_POST['RegID'] == $row['id']){
include_once 'regNode.php';
}else{
echo "error"; die();
}
}else{
echo "error"; die();
}
}else{
echo "error"; die();
}
?>