-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
executable file
·91 lines (76 loc) · 2.26 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<!-- Page dependent settings such as settitle -->
<?php
require_once("deps/session.inc");
require_once("deps/presentation.inc");
require_once("deps/database.inc");
$title = settitle(__PROFILE);
$thisPage = __PROFILE;
?>
<head>
<?php require_once('templates/head.inc') ?>
<!-- JQuery code for tabs -->
<script type="text/javascript">
$(document).ready(function() {
$("#tabs").tabs({
show: function(event, ui) {
var lastOpenedPanel = $(this).data("lastOpenedPanel");
if (!$(this).data("topPositionTab")) {
$(this).data("topPositionTab", $(ui.panel).position().top)
}
// do crossfade of tabs
$(ui.panel).hide().css('z-index', 2).fadeIn(1000, function() {
$(this).css('z-index', '');
if (lastOpenedPanel)
{
lastOpenedPanel
.toggleClass("ui-tabs-hide")
.hide();
}
});
$(this).data("lastOpenedPanel", $(ui.panel));
}
});
});
</script>
<!-- JQuery code for tabs ends here -->
</head>
<body>
<!-- Below should remain as is on every page -->
<div id="title">
<?php require_once('templates/layout/title.php'); ?>
</div>
<div id="language">
<?php require_once('templates/layout/language.php'); ?>
</div>
<!-- Above should remain as is on every page -->
<div id="wrap">
<div id="contentwrap">
<div id="content">
<div id="tabs">
<ul>
<?php if (isset($_GET['start'])) $_start=$_GET['start']; else $_start=0; ?>
<?php if( $_SESSION['CLASS'] == 'admin' ) { ?>
<li><a href="tabs/profile/reported.php?start=<?=$_start?>"><?php echo (__REPORTED); ?></a></li>
<?php } ?>
<li><a href="tabs/profile/bookmarks.php"><?php echo (__MYBOOKMARKS); ?></a></li>
<li><a href="tabs/profile/personalinfo-form.php"><?php echo (__PERSONALINFO); ?></a></li>
</ul>
</div>
</div>
</div>
<div id="navigation">
<?php require_once('templates/layout/navigation.php'); ?>
<?php require_once('templates/tagcloud.php'); ?>
</div>
</div>
<!--
<div class="tab_container">
</div>
-->
<div id="footer">
<?php require_once('templates/layout/footer.php'); ?>
</div>
</body>
</html>