-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathprofil.php
More file actions
118 lines (103 loc) · 3.5 KB
/
profil.php
File metadata and controls
118 lines (103 loc) · 3.5 KB
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
<?php
require "verifSession.php";
require_once "config.php";
require_once "function.php";
require_once "PDOConnect.php";
if (isset($_POST['submit'])) {
updateUser($PDO,$_SESSION["thelogin"],$_POST["password"],$_POST["repassword"],$_POST["color"]);
}
$info = infoUser($PDO, $_SESSION["idutil"]);
?>
<!DOCTYPE html>
<html>
<head>
<title>Tchat: Profil</title>
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon.ico">
<script src="js/ajax.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<link rel="stylesheet" media="screen" href="css/style.css">
</head>
<body>
<!-- Background JS -->
<div id="particles-js"></div>
<script src="js/particles.min.js"></script>
<script src="js/app.min.js"></script>
<!-- /Background JS -->
<nav>
<div id="menu-mobile" onclick="menu()">☰</div>
<div id="menu-mobile2" class="display">
<a href="tchat.php">
<div class="user-tchat">
<img src="img/profil/thumbs/<?=$info["theimage"];?>">
<li>Return</b></li>
</div>
</a>
<a href="deco.php"><li><b>Sign out</b></li></a>
</div>
</nav>
<div class="profil display">
<h1>Profile Setting</h1>
<form enctype="multipart/form-data" method="post" action="" name="fff">
<div class="profil-form">
<label>
Username :
<input type="text" name="thename" value="<?=$info["thelogin"];?>" disabled>
</label>
<label>
e-Mail:
<input type="text" name="themail" value="<?=$info["themail"];?>" disabled>
</label>
<label>
New Password :
<input type="password" name="password">
</label>
<label>
Enter the password again :
<input type="password" name="repassword">
</label>
<label>
Chose the color :
<input type="color" name="color" value="<?=$info["thecolor"]; ?>"/>
</label>
</div>
<div class="profil-form pf-center">
<h2>
<?php
$nbMessage = counter($PDO,$_SESSION['idutil']);
echo ($nbMessage>1)?" $nbMessage messages":" $nbMessage message";
echo "<br>Status: ".yourStatus($nbMessage) ?></h2>
<img src="img/profil/large/<?=$info["theimage"];?>">
<input type="file" name="uploaded_file">
<input type="submit" name="submit">
</div>
</form>
</div>
<!-- Matomo -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//statistiques.cf2m.be/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
var c = false;
function menu(){
var a = document.getElementById("menu-mobile");
var b = document.getElementById("menu-mobile2");
if(c){
b.style.cssText = 'display:none !important';
c=false;
}else{
b.style.cssText = 'display:block !important';
c = true;
}
}
</script>
<!-- End Matomo Code -->
</body>
</html>