-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
39 lines (38 loc) · 1.21 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
<?php
session_start();
ob_start();
require_once("class/system.class.php");
require_once("class/profile.class.php");
$profile = new lsProfile();
//$profile->start();
$profile->whereuFrom();
$profile->showProfile();
if (!empty($_SESSION['errorlogin'])) {
unset($_SESSION['errorlogin']);
}
if(isset($_POST)){
if(isset($_POST['signature']) and $_POST['signature'] == 1){
$profile->updateSignature($_POST['firma'],$_SESSION['usuario']);
exit();
}
if(isset($_POST['contact']) and $_POST['contact'] == 1) {
$values = array(
'gametag' => $_POST['gametag'],
'skype' => $_POST['skype'],
'facebook' => $_POST['facebook'],
'twitter' => $_POST['twitter'],
'web' => $_POST['web'],
'opciones' => array(
'chkgametag' => $_POST['chkgametag'].';',
'chkskype' => $_POST['chkskype'].';',
'chkfacebook' => $_POST['chkfacebook'].';',
'chktwitter' => $_POST['chktwitter'].';',
'chkweb' => $_POST['chkweb']
)
);
$profile->updateContact($values,$_SESSION['usuario']);
exit();
}
}
//echo "La consulta demoró ".$profile->end()." seg.";
ob_end_flush();