Newer
Older
<?
session_start();
include "include/db_connect.php";
include "include/functions_sql.php";
include "include/tables.php";
include "include/menu.php";
include "include/functions_www.php";
include "include/functions_display.php";
include "public/home.php";
include "public/videos.php";
include "public/members.php";
include "admin/admin_home.php";
// define user right and id if new session
if (!$_SESSION["user_right"])
$_SESSION["user_right"] = 0;
Seblu
committed
if ($_SERVER['HTTPS'] != "on" && $_SESSION["user_id"] > 0)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>EPTV</title>
<link rel="icon" type="image/vnd.microsoft.icon" href="images/eptv.ico" />
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
<style type="text/css" media="screen" title="Style par defaut">
@import url(css/main.css) ;
</style>
<script type="text/javascript" src="css/niftycube.js"></script>
<script type="text/javascript">
window.onload=function()
{
Nifty("div#newsbox h1","top big");
Nifty("div#newsbox ul","bottom big");
Nifty("div.rightbox h1","top big");
Nifty("div.rightbox ul","bottom big");
}
</script>
<SCRIPT TYPE="text/javascript">
<!--
function popitup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, 'EPTV - By Dailymotion', 'width=510,height=418,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
return false;
}
//-->
</SCRIPT>
<STYLE TYPE="text/css">
.D11
{
POSITION:absolute;
VISIBILITY:hidden;
Z-INDEX:200;
}
</STYLE>
<SCRIPT TYPE="text/javascript">
Xoffset=-60;
Yoffset= 20;
var isNS4=document.layers?true:false;
var isIE=document.all?true:false;
var isNS6=!isIE&&document.getElementById?true:false;
var old=!isNS4&&!isNS6&&!isIE;
var skn;
function initThis()
{
if(isNS4)skn=document.d11;
if(isIE)skn=document.all.d11.style;
if(isNS6)skn=document.getElementById("d11").style;
}
/*
function popup(_m,_b)
{
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
var content="<TABLE WIDTH=130 BORDER=1 BORDERCOLOR=black CELLPADDING=2 CELLSPACING=0 "+"BGCOLOR="+_b+"><TD ALIGN=center><FONT COLOR=black SIZE=2>"+_m+"</FONT></TD></TABLE>";
if(old)
{
alert("You have an old web browser:\n"+_m);
return;
}
else
{
if(isNS4)
{
skn.document.open();
skn.document.write(content);
skn.document.close();
skn.visibility="visible";
}
if(isNS6)
{
document.getElementById("d11").style.position="absolute";
document.getElementById("d11").style.left=x;
document.getElementById("d11").style.top=y;
document.getElementById("d11").innerHTML=content;
skn.visibility="visible";
}
if(isIE)
{
document.all("d11").innerHTML=content;
skn.visibility="visible";
}
}
}
*/
var x;
var y;
function get_mouse(e)
{
x=(isNS4||isNS6)?e.pageX:event.clientX+document.body.scrollLeft;
y=(isNS4||isNS6)?e.pageY:event.clientY+document.body.scrollLeft;
if(isIE&&navigator.appVersion.indexOf("MSIE 4")==-1)
y+=document.body.scrollTop;
skn.left=x+Xoffset;
skn.top=y+Yoffset;
}
function removeBox()
{
if(!old)
{
skn.visibility="hidden";
}
}
if(isNS4)
document.captureEvents(Event.MOUSEMOVE);
if(isNS6)
document.addEventListener("mousemove", get_mouse, true);
if(isNS4||isIE)
document.onmousemove=get_mouse;
// -->
</SCRIPT>
</head>
<?
if ($_GET['connect']) {
$connect_tv = $_GET['connect'];
if ($connect_tv == 1)
checkUser($_POST['user_login'], $_POST['user_pass']);
else if ($connect_tv == -1)
userDisconnect();
}
?>
<body>
<basefont face="lucida">
<div id="main_container">
<!-- header and top menu -->
<div id="main_header_home">
<div id="menu_left"></div>
<div id="menu_right"></div>
/*if ($_SESSION["user_right"] > 0)
echo '<img src="images/logo_up_green_xmas.jpg" width="100%" height="105">';
else
echo '<img src="images/logo_up_red_xmas.jpg" width="100%" height="105">';
*/
?>
<?
if ($_GET['section'])
$section_www = $_GET['section'];
else
$section_www = "Home";
$tab_section[$section_www]($_GET['action']);
?>
</div>
<div id="main_footer">
<div id="foot_menu">
<ul>
<li><a href="http://www.epita.fr" title="Site Epita">EPITA</a></li>
<li><a href="http://www.epitech.net" title="Site Epitech">EPITECH</a></li>
</ul>
</div>
<div id="ft_img_left"></div>
<div id="ft_img_right"></div>
<div id="ft_img_mid"></div>
<p class="copyrights"><br>© 2010 EPTV<br /><br /><br /></p>