-
Notifications
You must be signed in to change notification settings - Fork 2
/
market_user.php
115 lines (79 loc) · 3.78 KB
/
market_user.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php require_once('config.php'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<!-- include header navigation -->
<?php $current_page = "market_user.php"?>
<?php include 'header_nav.inc.php';?>
<!-- Page Content -->
<div class="container">
<div class="row">
<?php include 'side_bar.inc.php';?>
<div class="col-md-10">
<div class="row class='table-responsive'">
<h3>Auto User</h3>
<p> Name: Phong Dong </p>
<p> Websites: <a href='http://match-all.com/matchall'>http://match-all.com/matchall</a> </p>
<?php
try
{
$conn = getConnectionPDO();
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$query = " select userFirst as 'First Name', userLast as 'Last Name' " .
" , userEmail as 'Email' " .
" , userGender as 'Gender', cellPhone as 'Cell Phone' " .
" , address as 'Address', city as 'City', state as 'State' " .
" , zip as 'Zip Code' " .
" from User ";
$params = null;
$ps = $conn->prepare($query);
$ps->execute($params);
$data = $ps->fetchAll(PDO::FETCH_ASSOC);
if (count($data) > 0)
constructTable($data, true, "", "", "");
else
print "<h3>There is no user</h3>\n";
//Soccer GearX User
// Initialize cURL session
$ch = curl_init();
// Set the URL of the page file to download.
curl_setopt($ch, CURLOPT_URL, 'http://taipham.info/users/list_users.php');
// Ask cURL to write the contents to a file
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//Execute the c session
$content = curl_exec($ch);
// Close cURL session
curl_close($ch);
// Close file
echo "<h3>Soccer GearX User</h3> ";
echo "<p> Name: Tai Pham </p>";
echo "<p> Websites: <a href='http://taipham.info'>taipham.info</a> </p>" . $content;
}
catch (PDOException $ex)
{
echo 'ERROR: ' . $ex->getMessage();
}
catch (Exception $ex)
{
echo 'ERROR: ' . $ex->getMessage();
}
?>
</div>
</div>
</div>
</div>
<!-- /.container -->
<div class="container">
<hr>
<!-- Footer -->
<?php include 'footer.inc.php';?>
</div>
<!-- /.container -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>