-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
140 lines (97 loc) · 3.24 KB
/
profile.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
include('incsession.php');
require 'vendor/autoload.php';
use Parse\ParseClient;
use Parse\ParseObject;
use Parse\ParseQuery;
ParseClient::initialize('OLEbxaLakkb6SVn5t7Qzbewdyy70LSwHp6PQYilb', '6DOD3bArSx2LgNCuE67GDVDPfi9HAKGmkrKLajL1', 'IVNd1TnoknddgQ2F2qCZf7FUPbBWLe21rz2rP1LN');
date_default_timezone_set('Asia/Taipei');
$guid = $_COOKIE['session_Mobile'];
$query = new ParseQuery("client");
$query->equalTo("mobile", $guid);
$results = $query->find();
$postname = $results[0]->get('name');
$postmobile = $results[0]->get('mobile');
$postmoney = $results[0]->get('money');
$postemail = $results[0]->get('email');
?>
<!DOCTYPE html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<title>PTFast</title>
<script>
function test()
{
document.getElementById("tel_input").value = "0912345678";
document.getElementById("name_input2").value = "王小明";
document.getElementById("pw").value = "12345678";
document.getElementById("pwConfirm").value = "12345678";
document.getElementById("email_input").value = "[email protected]";
}
</script>
</head>
<body background="body-bg.jpg" style="background-attachment: fixed; color:#7e7a75; font-family: Arial, sans-serif; font-size: 18px; line-height: 1.5;">
<div id="box" style="width:90%; margin-left:10px; margin:0 auto;">
<div id="top" style="float:left; width:85%; text-align:left; "><p style="color:#FFFFFF; font-size:30px;">PTFast</p></div>
<div id="registerbox" style="float:left; width:80%; height:450px; background-color:#fff; padding-left:5%; padding-right:5%; padding-top:5%; padding-bottom:5%;">
<p>
<input type="button" value="發新文章" onclick="window.location.assign('newpost.php');" />
<input type="button" value="文章列表" onclick="window.location.assign('main.php');" />
<input type="button" value="個人信箱" onclick="window.location.assign('mailbox.php');" />
<input type="button" value="個人資料" onclick="window.location.assign('profile.php');" />
<input type="button" value="登出帳號" onclick="window.location.assign('logout.php');" />
</p>
<p>會員資料:</p>
<table>
<tr>
<td>姓名:
<br>
</td>
<td> <?php echo $postname; ?>
<br>
</td>
</tr>
<tr><td><p></p></td></tr>
<tr>
<td> 手機號碼:
<br>
</td>
<td> <?php echo $postmobile; ?>
<br>
</td>
</tr>
<tr><td><p></p></td></tr>
<tr>
<td> E-mail:
<br>
</td>
<td> <?php echo $postemail; ?>
<br>
</td>
</tr>
<tr><td><p></p></td></tr>
<tr>
<td> P幣:
<br>
</td>
<td> <?php echo $postmoney; ?> 元 <input type="button" name="moreMoney" value="儲值更多" onclick="window.location.assign('deposit.php');">
<br>
</td>
</tr>
<tr><td><p></p></td></tr>
<br />
<tr>
<td>
<br>
</td>
<td>
</td>
</tr>
<tr><td><p></p></td></tr>
<tr><td><p></p></td></tr>
</table>
</div>
<div class="blank" style="float:left; width:80%; height:20px; padding-left:5%; padding-right:5%; padding-top:5%; padding-bottom:5%;"><p></p></div>
</body>
</html>