This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
display.php
142 lines (135 loc) · 3.2 KB
/
display.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
141
142
<?php
$title = "Sign Up"; //name page
session_start();
$priv=3;
if( !isset($_SESSION['email']) ){
header("Location: index.php");
}
require_once ("php pages/connect.php");
require_once ("php pages/session.php");
$stmt = $conn->prepare($sqlDisplay);
//
$stmt->bindValue(":no", $_SESSION['no'], PDO::PARAM_INT);
$stmt->bindValue(":password", $_SESSION['password'], PDO::PARAM_STR);
$stmt->execute();
$row = $stmt->fetch(PDO::FETCH_ASSOC);
$conn = null;
include ("php pages/header.php");
_header();
?>
<section class="section display_data" dir="rtl">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="row">
<div class="col-sm-12">
<p class="bg-p lead text-right">البيانات غير مشفرة</p>
</div>
</div>
<table class="table table-bordered" dir="rtl">
<thead class="table-info">
<tr>
<th scope="col" class="w-25">#</th>
<th scope="col">البيانات</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">رقم القيد</th>
<td><?= $row['_id'] ?></td>
</tr>
<tr>
<th scope="row">الاسم</th>
<td><?= $row['_first_name'] ?></td>
</tr>
<tr>
<th scope="row">الاب</th>
<td><?= $row['_parent_name'] ?></td>
</tr>
<tr>
<th scope="row">اسم العائلة</th>
<td><?= $row['_last_name'] ?></td>
</tr>
<tr>
<th scope="row">تاريخ الميلاد</th>
<td><?= $row['_birthday'] ?></td>
</tr>
<tr>
<th scope="row">البريد الاكتروني</th>
<td><?= $row['_email'] ?></td>
</tr>
<tr>
<th scope="row">الرقم الوطني</th>
<td><?= $row['_SSN'] ?></td>
</tr>
<tr>
<th scope="row">Salt</th>
<td><?= $row['_salt'] ?></td>
</tr>
<tr>
<th scope="row">كلمة المرور</th>
<td class="_invalid" ><?= "غير قابلة لفك التشفير" ?></td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6">
<div class="row">
<div class="col-sm-12">
<p class="bg-p lead text-right">البيانات مشفرة</p>
</div>
</div>
<table class="table table-bordered" dir="rtl">
<thead class="table-info">
<tr>
<th scope="col" class="w-25">#</th>
<th scope="col">البيانات</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">رقم القيد</th>
<td><?= bin2hex($row['id']) ?></td>
</tr>
<tr>
<th scope="row">الاسم</th>
<td><?= bin2hex($row['first_name']) ?></td>
</tr>
<tr>
<th scope="row">الاب</th>
<td><?= bin2hex($row['parent_name']) ?></td>
</tr>
<tr>
<th scope="row">اسم العائلة</th>
<td><?= bin2hex($row['last_name']) ?></td>
</tr>
<tr>
<th scope="row">تاريخ الميلاد</th>
<td><?= bin2hex($row['birthday']) ?></td>
</tr>
<tr>
<th scope="row">البريد الاكتروني</th>
<td><?= bin2hex($row['email']) ?></td>
</tr>
<tr>
<th scope="row">الرقم الوطني</th>
<td><?= bin2hex($row['SSN']) ?></td>
</tr>
<tr>
<th scope="row">Salt</th>
<td><?= bin2hex($row['salt']) ?></td>
</tr>
<tr>
<th scope="row">كلمة المرور</th>
<td><?= $row['pass'] ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
<?php
include ("php pages/footer.php");
_footer();
?>