Commit 24481841 authored by Seblu's avatar Seblu

general cleanup

parent ce7b3c31
<?
?>
\ No newline at end of file
<?
$tab_section = array();
$tab_section["Home"] = dispHome;
$tab_section["Forum"] = dispForum;
$tab_section["Jukebox"] = dispJukebox;
$tab_section["Photos"] = dispPhotos;
$tab_section["PhotosShow"] = dispPhotosShow;
$tab_section["Webcam"] = dispWebcam;
$tab_section["Player"] = dispPlayer;
//$tab_section["Webcam"] = dispWebcam;
//$tab_section["Player"] = dispPlayer;
$tab_section["Videos"] = dispVideos;
$tab_section["Members"] = dispMembers;
$tab_section["Contacts"] = dispContacts;
$tab_section["AdminHome"] = dispAdminHome;
$tab_section["Connection"] = dispConnection;
$GLOBALS["ANONYM"] = 0;
$GLOBALS["BASIC"] = 1;
$GLOBALS["GUEST"] = 2;
......@@ -25,6 +19,4 @@ $GLOBALS["REPORTER"] = 5;
$GLOBALS["PRIV_GUEST"] = 6;
$GLOBALS["EPTV"] = 7;
$GLOBALS["ROOT"] = 8;
?>
\ No newline at end of file
?>
......@@ -40,126 +40,8 @@ if ($_SERVER['HTTPS'] != "on" && $_SESSION["user_id"] > 0)
<title>EPTV</title>
<link rel="icon" type="image/vnd.microsoft.icon" href="images/eptv.ico" />
<style type="text/css" media="screen" title="Style par defaut">
@import url(css/main.css) ;
@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)
{
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>
<?
......@@ -180,7 +62,6 @@ if ($_GET['connect']) {
<div id="menu_left"></div>
<div id="menu_right"></div>
<? dispMenu(); ?>
</div>
......@@ -202,23 +83,18 @@ if ($_GET['connect']) {
$tab_section[$section_www]($_GET['action']);
?>
<script>
initThis();
</script>
</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>&copy; 2010 EPTV<br /><br /><br /></p>
<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_mid"></div>
<div id="ft_img_right"></div>
<p class="copyrights"><br>&copy; 2010 EPTV<br /><br /><br /></p>
</div>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment