-
Notifications
You must be signed in to change notification settings - Fork 0
/
load.php
55 lines (50 loc) · 1.23 KB
/
load.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
if($_GET['user_type']=='ngo')
$user=0;
if($_GET['user_type']=='customer')
$user=1;
if($_GET['location']=='lahore')
$loc=1;
else if($_GET['location']=='karachi')
$loc=2;
else if($_GET['location']=='islamabad')
$loc=3;
else if($_GET['location']=='rawalpindi')
$loc=4;
else if($_GET['location']=='quetta')
$loc=5;
else if($_GET['location']=='peshawar')
$loc=6;
else if($_GET['location']=='other')
$loc=7;
if($_GET['category']=='medical')
$cat=1;
else if($_GET['category']=='education')
$cat=2;
else if($_GET['category']=='animals')
$cat=3;
else if($_GET['category']=='creative')
$cat=4;
else if($_GET['category']=='event')
$cat=5;
else if($_GET['category']=='religion')
$cat=6;
else if($_GET['category']=='sports')
$cat=7;
else if($_GET['category']=='travel')
$cat=8;
else if($_GET['category']=='volunteer')
$cat=9;
else if($_GET['category']=='personal')
$cat=10;
else if($_GET['category']=='other')
$cat=11;
if($_GET['product']=='yes')
$prod=1;
else if($_GET['product']=='no')
$prod=2;
$dec=$_GET['desc'];
$amt=$_GET['amt'];
$result = shell_exec('C:\Users\tayyab\AppData\Local\Programs\Python\Python37\python "A:\xampp\htdocs\linear_regression\load.py"'. " " .$user." " . $loc." " . $cat." " . $dec." " . $prod. " " .$amt." " . "2>&1");
echo ($result);
?>