bzr branch
http://gegoxaren.bato24.eu/bzr/extremedating/trunk
2.1.6
by Daniel Johansson
Splitted out profile, started firstpage for flow |
1 |
<!DOCTYPE html>
|
30
by Daniel Johansson
Derping around |
2 |
<html> |
26
by Daniel Johansson
Fixed sessions for logins |
3 |
<?PHP
|
4 |
session_start(); |
|
5 |
?>
|
|
2.1.6
by Daniel Johansson
Splitted out profile, started firstpage for flow |
6 |
<!--
|
7 |
ExtremeDating - a Hackathon 2013 project.
|
|
8 |
Copyright (C) 2013 Gustav Hartvigsson <gustav.hartvigsson@gmail.com>
|
|
9 |
Copyright (C) 2013 Daniel Johansson <maila@danieljohansson.nu>
|
|
10 |
||
11 |
||
12 |
This program is free software: you can redistribute it and/or modify
|
|
13 |
it under the terms of the GNU Affero General Public License as
|
|
14 |
published by the Free Software Foundation, either version 3 of the
|
|
15 |
License, or (at your option) any later version.
|
|
16 |
||
17 |
This program is distributed in the hope that it will be useful,
|
|
18 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20 |
GNU Affero General Public License for more details.
|
|
21 |
||
22 |
You should have received a copy of the GNU Affero General Public License
|
|
23 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
24 |
-->
|
|
30
by Daniel Johansson
Derping around |
25 |
<head> |
2.1.6
by Daniel Johansson
Splitted out profile, started firstpage for flow |
26 |
<title>Lunchdating</title> |
30
by Daniel Johansson
Derping around |
27 |
<link rel="stylesheet" type="text/css" href="css/main.css"/> |
2.1.6
by Daniel Johansson
Splitted out profile, started firstpage for flow |
28 |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> |
57
by Gustav Hatvigsson
added a date-picker that workes with 'all' browsers |
29 |
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet"> |
30 |
<link rel="stylesheet" type="text/css" media="screen" |
|
31 |
href="http://tarruda.github.com/bootstrap-datetimepicker/assets/css/bootstrap-datetimepicker.min.css"> |
|
32 |
<script type="text/javascript" |
|
33 |
src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js"> |
|
34 |
</script> |
|
35 |
<script type="text/javascript" |
|
36 |
src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"> |
|
37 |
</script> |
|
38 |
<script type="text/javascript" |
|
39 |
src="http://tarruda.github.com/bootstrap-datetimepicker/assets/js/bootstrap-datetimepicker.min.js"> |
|
40 |
</script> |
|
30
by Daniel Johansson
Derping around |
41 |
</head> |
42 |
<?PHP
|
|
42
by Daniel Johansson
Fixed list of people in index.php |
43 |
if(isset($_SESSION ['userName'])){ |
44 |
$username = $_SESSION ['userName']; |
|
45 |
include 'php/db.php'; |
|
46 |
$userinfo = $db->query("SELECT firstName from Users WHERE loginName='$username'"); |
|
47 |
$self = $userinfo->fetchAll(); |
|
48 |
$firstName = $self [0]['firstName']; |
|
49 |
$userinfo = $db->query("SELECT surName from Users WHERE loginName='$username'"); |
|
50 |
$self = $userinfo->fetchAll(); |
|
51 |
$surName = $self [0]['surName']; |
|
52 |
?>
|
|
53 |
<body id="wrapper"> |
|
54 |
<div id="profile"> |
|
55 |
<div id="profileheader"> |
|
56 |
<div class="logo"> |
|
57 |
<a href="index.php"> |
|
58 |
<img src="img/logo.png"/> |
|
59 |
</a> |
|
60 |
</div> |
|
30
by Daniel Johansson
Derping around |
61 |
<form action="./logout.php" method="POST"> |
62 |
<table id="logout"> |
|
63 |
<tr> |
|
64 |
<td><input id="inputbutton1" type="Submit" value="Logga ut"/></td> |
|
65 |
</tr> |
|
66 |
</table> |
|
67 |
</form> |
|
2.1.6
by Daniel Johansson
Splitted out profile, started firstpage for flow |
68 |
</div> |
49
by Daniel Johansson
Separated out files |
69 |
<div id="profileimg"> |
51
by Daniel Johansson
Continued to reorganize |
70 |
<?PHP include './php/sidepanel.php'; ?> |
2.1.6
by Daniel Johansson
Splitted out profile, started firstpage for flow |
71 |
</div> |
30
by Daniel Johansson
Derping around |
72 |
<div id="wallflow"> |
38
by Daniel Johansson
Work with profile.php |
73 |
<?PHP
|
40
by Daniel Johansson
Made it possible to show interest for lunch with people. Kinda broken still thought. |
74 |
$profilename = htmlspecialchars($_GET['uid']); |
38
by Daniel Johansson
Work with profile.php |
75 |
$userinfo = $db->query("SELECT firstName from Users WHERE loginName='$profilename'"); |
76 |
$self = $userinfo->fetchAll(); |
|
77 |
$firstName = $self [0]['firstName']; |
|
78 |
$userinfo = $db->query("SELECT surName from Users WHERE loginName='$profilename'"); |
|
79 |
$self = $userinfo->fetchAll(); |
|
40
by Daniel Johansson
Made it possible to show interest for lunch with people. Kinda broken still thought. |
80 |
$surName = $self [0]['surName']; |
81 |
$userinfo = $db->query("SELECT city from Users WHERE loginName='$profilename'"); |
|
82 |
$self = $userinfo->fetchAll(); |
|
83 |
$city = $self [0]['city']; |
|
84 |
$userinfo = $db->query("SELECT eMail from Users WHERE loginName='$profilename'"); |
|
85 |
$self = $userinfo->fetchAll(); |
|
86 |
$eMail = $self [0]['eMail']; |
|
38
by Daniel Johansson
Work with profile.php |
87 |
?>
|
88 |
<p class="profilename"><?php echo $firstName . " " . $surName;?></p> |
|
40
by Daniel Johansson
Made it possible to show interest for lunch with people. Kinda broken still thought. |
89 |
<p> Ort: <?PHP echo $city; ?></p> |
90 |
<p> Epost: <?PHP echo $eMail; ?></p> |
|
49
by Daniel Johansson
Separated out files |
91 |
<img class="profilepic" src="./get_image.php?userName=<?PHP echo $profilename;?>"/> |
92 |
</p> |
|
51
by Daniel Johansson
Continued to reorganize |
93 |
<?PHP include './php/showinterest.php'; ?> |
2.1.6
by Daniel Johansson
Splitted out profile, started firstpage for flow |
94 |
</div> |
95 |
</div> |
|
96 |
</body> |
|
30
by Daniel Johansson
Derping around |
97 |
<?PHP
|
98 |
} else { |
|
99 |
sleep(.5); |
|
31.1.2
by Daniel Johansson
Messed around |
100 |
header("Location:index.php"); |
30
by Daniel Johansson
Derping around |
101 |
} ?> |
2.1.6
by Daniel Johansson
Splitted out profile, started firstpage for flow |
102 |
</html> |