Commit b82a6043 authored by Seblu's avatar Seblu
Browse files

delete remaining photos sql queries

link to dailymotion now user index?dailymotion=
some code cleaning! (delete trailing/reindent)
removing index.php and user directoryIndex apacha by default in menu.php
starting reviewing all code
index.php is now a clean file with good web site schema
parent d00f6b25
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -13,14 +13,10 @@ include_once "admin/admin_members.php";
include_once "admin/admin_users.php";
include_once "admin/admin_blacklist.php";



if ($_SESSION["user_right"] >= $GLOBALS["REPORTER"] )
{

$str = '

	<table width="100%">
  $str = '<div id="main_body">';
  $str .= '<table width="100%">
		<tr>
		 <td height="589" valign="top">

css/default.css

0 → 100644
+462 −0
Original line number Diff line number Diff line
@charset "UTF-8";
/* CSS Document */

* {
    margin: 0px;
    padding: 0px;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}

body {
    background: #000000;
    margin: 0px;
    padding: 0px;
    font-size: 11px;
    color: #CCCCCC;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}

a {
    text-decoration: none;
    color: #cccccc;
}

ul, li {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

li {
    display: inline;
}

li a {
    display: inline;
}

img {
    margin: 0 auto;
    padding: 0px;
}

.clr {
    clear: both;
    height: 0px;
}

.copyrights {
    color: #646464;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
    text-align: center;
    margin: 10px 0px 0px 0px;
}

/*
** main header body footer container
*/
#main_container {
    position: relative;
    background: #303030;
    /* test background background: #00ff00; */
    top: 0px;
    width: 901px;
    margin: 0 auto;
}

#main_body {
    margin: 0px 0px 0px 0px;
    background: #303030;
    border-left: 1px solid #646464;
    border-right: 1px solid #646464;
}

#main_header_home {
    height: 100px;
    border-left: 1px solid #646464;
    border-right: 1px solid #646464;
    border-bottom: 1px solid #646464;
    background: #003366;
    background: url(../images/jukebox_2.jpg) no-repeat;
}

#main_header_membres {
    height: 249px;
    background: url(../images/nomad_v5_top_membres.png) no-repeat;
}

#main_header_cours {
    height: 249px;
    background: url(../images/nomad_v5_top_cours.png) no-repeat;
}

#main_header_releases {
    height: 249px;
    background: url(../images/nomad_v5_top_releases.png) no-repeat;
}

div.top_box
{
    margin-top: 40px;
    text-align: center;
}

/*
** header/menu class & id
*/
#menu ul, #menu li {
    margin:0;
    padding: 0;
    list-style-type: none;
}

#menu ul {
    position: absolute;
    height: 22px;
    /*width: 334px;*/
    left: 200px;
    top: 101px;
}

#menu li {
    float: left;
}

#menu li a { /* dimensions et définitions des boutons */
    display: block;  /* mise en block de <a> pour lui donner des dimensions */
    height: 22px;
    color: #B8B8B8;
    padding: 8px 0px 0px 0px;
    font-size: 13px;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
    text-decoration: none;
    text-align: center;
}

#menu li a:hover { /* dimensions et définitions des boutons */
    display: block;  /* mise en block de <a> pour lui donner des dimensions */
    height: 22px;
    color: #99FF33;
    font-size: 13px;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
    text-decoration: none;
    text-align: center;
}

#menu a#tabs_home {
    width: 79px;
    background: transparent url(../images/maquette_decoupe_03.png) top left no-repeat;
}
#menu a#tabs_members {
    width: 83px;
    background: transparent url(../images/maquette_decoupe_05.png) top left no-repeat;
}
#menu a#tabs_cours {
    width: 83px;
    background: transparent url(../images/maquette_decoupe_05.png) top left no-repeat;
}
#menu a#tabs_releases {
    width: 81px;
    background: transparent url(../images/maquette_decoupe_07.png) top left no-repeat;
}

#menu_left {
    position: absolute;
    left: 0px;
    top: 101px;
    height: 30px;
    width: 159px;
}

#menu_right {
    position: absolute;
    right: 0px;
    top: 101px;
    height: 30px;
    width: 163px;
}

/*
** main body
*/

div#newsbox {
    /*width: 530px;*/
    margin: 0px 15px 20px 15px;
}

div#newsbox ul {
    background: #1D1D1D;
    padding: 15px;
}

div#newsbox li {
    display: block;
}

div#newsbox h1 {
    height: 26px;
    font-size: 14px;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
    padding: 10px;
    background: #1D1D1D;
    color: #B8B8B8;
    border-bottom: 1px solid #303030;
}

.rightbox a {
    text-decoration: none;
    color: #cccccc;
}

.rightbox a:hover {
    text-decoration: none;
    color: #99FF33;
}

div.rightbox {
    width: 320px;
    margin: 0px 15px 15px 0px;
}

div.rightbox ul {
    background: #1D1D1D;
    padding: 0px;
    width: 320px;
}

div.rightbox li {
    display: block;
    padding: 5px 0px 8px 15px;
    font-size:12px;
    color:#cccccc;
    border-bottom: 1px solid #303030;
}

div.rightbox h1 {
    height: 26px;
    font-size: 14px;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
    padding: 10px;
    background: #1D1D1D;
    color: #B8B8B8;
    border-bottom: 1px solid #303030;
}

#all_side {
    float: left;
    padding: 0px;
    margin: 0px;
    background: #303030;
}

#left_side {
    float: left;
    width: 550px;
    padding: 0;
    background: #303030;
}

#newsbox h2 {
    color: #B8B8B8;
    margin: 10px 0px 0px 0px;
    padding: 0px 0px 0px 10px;
    background: url(../images/puce_carre.jpg) left no-repeat;
}

.news_date {
    color: #6D6C6C;
    margin: 10px 0px 0px 0px;
    padding: 0px 0px 0px 5px;
}

.news_separator {
    margin: 0px 0px 0px -15px;
    padding:0;
}

.news_text {
    font-size: 12px;
    color: #B8B8B8;
    margin: 10px 0px 0px 0px;
    padding: 0px 0px 5px 20px;
}

#left_side h3 {
    color: #aaa28b;
    margin: 10px 0px 0px 0px;
    padding: 0px 0px 0px 5px;
}

#right_side {
    float: right;
    width: 330px;
}

div#menu
{
    float:left;
    margin-bottom: 20px;
    width: 900px;
    height: 130px;
}

/*
  #right_side li a:hover {
  color: #cfc5ab;
  height: 26px;
  font: 10px Verdana, "Lucida Grande", Tahoma, Helvetica, Sans-Serif;
  text-decoration: none;
  }

#right_side li {
display: block;
list-style-type: none;
padding: 0;
margin: 0;
}

#right_side ul {
margin: 0px 0px 0px 10px;
}

#right_side li a,span{
color: #aaa28b;
height: 26px;
font: 10px Verdana, "Lucida Grande", Tahoma, Helvetica, Sans-Serif;
text-decoration: none;
}
*/

#right_side h2 {
    color: #aaa28b;
    margin: 10px 0px 0px 0px;
    padding: 0px 0px 0px 5px;
    font-size: 12px;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}

#right_side h3 {
    color: #aaa28b;
    margin: 10px 0px 0px 0px;
    padding: 0px 0px 0px 5px;
    font-size: 12px;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}


/*
 ** footer class & id
 */

#main_footer {
    position: relative;
    margin: 0 auto;
    width: 901px;
    height: 47px;
}

#foot_menu {
    background: #303030;
    border-left: 1px solid #646464;
    border-right: 1px solid #646464;
}

#foot_menu ul {
    height: 15px;
    width: 860px;
    margin: 0 auto;
    text-align: center;
}

#foot_menu li {
    display: inline;
    margin: 0 10px;
}

#foot_menu li a {
    color: #B8B8B8;
    font-size: 9px;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
    text-decoration: none;
}

#foot_menu li a:hover, a:active {
    color: #B8B8B8;
    font-size: 9px;
    font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
    text-decoration: none;
}

#foot_logo {
    float: right;
    position: relative;
    top: 4px;
    right: 20px;
}

#foot_menu img {
    position: relative;
    top: 5px;
    border: 0;
}

.footnoimg {
    background: none;
}

#ft_img_left {
    position: absolute;
    left: 0px;
    height: 19px;
    width: 19px;
    background: url(../images/corner_24.png) no-repeat;
}

#ft_img_mid {
    position: absolute;
    left: 19px;
    height: 18px;
    width: 863px;
    background: #303030;
    border-bottom: 1px solid #646464;

}

#ft_img_right {
    position: absolute;
    right: 0px;
    height: 19px;
    width: 19px;
    background: url(../images/corner_24_r.png) no-repeat;
}

#logo_edito {
    float: left;
}

table a.texte_link,table {
    color: #FFFFFF;
}

a:hover {
    text-decoration: none;
    color: #99FF33;
}

a:active {
    text-decoration: none;
    color: #99FF33;
}

.back_tendu {
    background-color:#460002;
}

.back_private {
    background-color:#990000;
}

img.daily_preview {
    margin-bottom: -5px;
}

css/eptv.css

deleted100644 → 0
+0 −114
Original line number Diff line number Diff line
.back{
background-color:#000000;
}
.back_tendu{
background-color:#A8A8C6;
}
.back_private{
background-color:#DFBE5B;
}


.titre_rubrique{
	color:#FFFFFF;
	font-family:courier;
	font-size:16px;
	font-weight:bold;
}
.titre_sous_rubrique{
	color:#000000;
	font-family:courier;
	font-size:15px;
	font-weight:bold;
}
.texte_normal{
	color:#000000;
	font-family:courier;
	font-size:14px;
	font-weight:none;
}
.texte_date{
	color:#808080;
	font-family:courier;
	font-size:15px;
	font-weight:none;
}
/*.texte_link{
	color:#000099;
	font-family:courier;
	font-size:12px;
	font-weight:none;
}
.texte_link:hover{
	color:#B8C16F;
	font-family:courier;
	font-size:12px;
	font-weight:none;
}
.texte_link:visited{
	color:#123456;
	font-family:courier;
	font-size:12px;
	font-weight:none;
}*/
.texte_info{
	color:#999999;
	font-family:courier;
	font-size:13px;
	font-weight:bold;
}
.texte_info:hover{
	color:#B8C16F;
	font-family:courier;
	font-size:13px;
	font-weight:bold;
}
.texte_input{
	color:#8B1B14;
	font-family:courier;
	font-size:12px;
	font-weight:none;
}
.menu{
	color:#8B1B14;
	font-family:courier;
	font-size:19px;
	font-weight:bold;
	text-decoration:none;
}
.menu:hover{
	color:#B8C16F;
	font-family:courier;
	font-size:19px;
	font-weight:bold;
	text-decoration:none;
}
/*.lien{
	color:#999999;
	font-family:courier;
	font-size:13px;
	font-weight:bold;
	text-decoration:none;
}
.lien:hover{
	color:#B8C16F;
	font-family:courier;
	font-size:13px;
	font-weight:bold;
	text-decoration:none;
}*/
.button{	
	font:courier;
	font-size:10px;
	background-color:#888888;
}
.small_button{	
	font:courier;
	font-size:9px;
	background-color:#888888;
}
.textarea{
	font:courier;
	font-size: 12px;
}

css/main.css

deleted100644 → 0
+0 −454
Original line number Diff line number Diff line
@charset "UTF-8";
/* CSS Document */

body
{
	background: #000000;
	margin: 0px;
	padding: 0px;
	font-size: 11px;
	color: #CCCCCC;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}
* {
	margin: 0px;
	padding: 0px;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}
ul, li {
	list-style-type: none;
	padding: 0px;
	margin: 0px;
}
li {
	display: inline;
}
li a {
	display: inline;
}
img {
	margin: 0 auto;
	padding: 0px;
}
.clr {
	clear: both;
	height: 0px;
}

.copyrights {
	color: #646464;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
	text-align: center;
	margin: 10px 0px 0px 0px;
}


/*
** main header body footer container
*/
#main_container {
	position: relative;
	background: #303030;
	top: 0px;
	width: 901px;
	margin: 0 auto;
}

#main_body {
	margin: 0px 0px 0px 0px;
	background: #303030;
	border-left: 1px solid #646464;
	border-right: 1px solid #646464;
}

#main_header_home {
	height: 100px;
	border-left: 1px solid #646464;
	border-right: 1px solid #646464;
	border-bottom: 1px solid #646464;
	background: #003366;
	background: url(../images/jukebox_2.jpg) no-repeat;
}

#main_header_membres {
	height: 249px;
	background: url(../images/nomad_v5_top_membres.png) no-repeat;
}

#main_header_cours {
	height: 249px;
	background: url(../images/nomad_v5_top_cours.png) no-repeat;
}

#main_header_releases {
	height: 249px;
	background: url(../images/nomad_v5_top_releases.png) no-repeat;
}


div.top_box
{
    margin-top: 40px;
    text-align: center;
}

/*
** header/menu class & id
*/
#menu ul, #menu li {
	margin:0;
	padding: 0;
	list-style-type: none;
	}
#menu ul {
	position: absolute;
	height: 22px;
	/*width: 334px;*/
	left: 200px;
	top: 101px;
}
#menu li {
	float: left;
}
#menu li a { /* dimensions et définitions des boutons */
	display: block;  /* mise en block de <a> pour lui donner des dimensions */
	height: 22px;
	color: #B8B8B8;
	padding: 8px 0px 0px 0px;
	font-size: 13px;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
	text-decoration: none;
	text-align: center;
}

#menu li a:hover { /* dimensions et définitions des boutons */
	display: block;  /* mise en block de <a> pour lui donner des dimensions */
	height: 22px;
	color: #99FF33;
	font-size: 13px;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
	text-decoration: none;
	text-align: center;
}

#menu a#tabs_home {
	width: 79px;
	background: transparent url(../images/maquette_decoupe_03.png) top left no-repeat;
}
#menu a#tabs_members {
	width: 83px;
	background: transparent url(../images/maquette_decoupe_05.png) top left no-repeat;
}
#menu a#tabs_cours {
	width: 83px;
	background: transparent url(../images/maquette_decoupe_05.png) top left no-repeat;
}
#menu a#tabs_releases {
	width: 81px;
	background: transparent url(../images/maquette_decoupe_07.png) top left no-repeat;
}

#menu_left {
	position: absolute;
	left: 0px;
	top: 101px;
	height: 30px;
	width: 159px;
}

#menu_right {
	position: absolute;
	right: 0px;
	top: 101px;
	height: 30px;
	width: 163px;
}

/*
** main body
*/

div#newsbox {
	/*width: 530px;*/
	margin: 0px 15px 20px 15px;
}

div#newsbox ul {
	background: #1D1D1D;
	padding: 15px;
}

div#newsbox li {
	display: block;
}

div#newsbox h1 {
	height: 26px;
	font-size: 14px;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
	padding: 10px;
	background: #1D1D1D;
	color: #B8B8B8;
	border-bottom: 1px solid #303030;
}

.rightbox a {
	text-decoration: none;
	color: #cccccc;
}

.rightbox a:hover {
	text-decoration: none;
	color: #99FF33;
}

div.rightbox {
	width: 320px;
	margin: 0px 15px 15px 0px;
}

div.rightbox ul {
	background: #1D1D1D;
	padding: 0px;
	width: 320px;
}

div.rightbox li {
	display: block;
	padding: 5px 0px 8px 15px;
	font-size:12px;
	color:#cccccc;
	border-bottom: 1px solid #303030;
}

div.rightbox h1 {
	height: 26px;
	font-size: 14px;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
	padding: 10px;
	background: #1D1D1D;
	color: #B8B8B8;
	border-bottom: 1px solid #303030;
}

#all_side {
	float: left;
	padding: 0px;
	margin: 0px;
	background: #303030;
}

#left_side {
	float: left;
	width: 550px;
	padding: 0;
	background: #303030;
}

#newsbox h2 {
	color: #B8B8B8;
	margin: 10px 0px 0px 0px;
	padding: 0px 0px 0px 10px;
	background: url(../images/puce_carre.jpg) left no-repeat;
}

.news_date {
	color: #6D6C6C;
	margin: 10px 0px 0px 0px;
	padding: 0px 0px 0px 5px;
}

.news_separator {
	margin: 0px 0px 0px -15px;
	padding:0;
}

.news_text {
    font-size: 12px;
	color: #B8B8B8;
	margin: 10px 0px 0px 0px;
	padding: 0px 0px 5px 20px;
}

#left_side h3 {
	color: #aaa28b;
	margin: 10px 0px 0px 0px;
	padding: 0px 0px 0px 5px;
}

#right_side {
	float: right;
	width: 330px;
}

div#menu
{
    float:left;
    margin-bottom: 20px;
    width: 900px;
    height: 130px;
}

/*
#right_side li a:hover {
	color: #cfc5ab;
	height: 26px;
	font: 10px Verdana, "Lucida Grande", Tahoma, Helvetica, Sans-Serif;
	text-decoration: none;
}

#right_side li {
	display: block;
	list-style-type: none;
	padding: 0;
	margin: 0;
}

#right_side ul {
	margin: 0px 0px 0px 10px;
}

#right_side li a,span{
	color: #aaa28b;
	height: 26px;
	font: 10px Verdana, "Lucida Grande", Tahoma, Helvetica, Sans-Serif;
	text-decoration: none;
}
*/
#right_side h2 {
	color: #aaa28b;
	margin: 10px 0px 0px 0px;
	padding: 0px 0px 0px 5px;
	font-size: 12px;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}

#right_side h3 {
	color: #aaa28b;
	margin: 10px 0px 0px 0px;
	padding: 0px 0px 0px 5px;
	font-size: 12px;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}


/*
** footer class & id
*/

#main_footer {
	position: relative;
	margin: 0 auto;
	width: 901px;
	height: 47px;
}

#foot_menu {
	background: #303030;
	border-left: 1px solid #646464;
	border-right: 1px solid #646464;
}

#foot_menu ul {
	height: 15px;
	width: 860px;
	margin: 0 auto;
	text-align: center;
}

#foot_menu li {
	display: inline;
	margin: 0 10px;
}

#foot_menu li a {
	color: #B8B8B8;
	font-size: 9px;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
	text-decoration: none;
}

#foot_menu li a:hover, a:active {
	color: #B8B8B8;
	font-size: 9px;
	font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
	text-decoration: none;
}

#foot_logo {
	float: right;
	position: relative;
	top: 4px;
	right: 20px;
}

#foot_menu img {
	position: relative;
	top: 5px;
	border: 0;
}

.footnoimg {
	background: none;
}

#ft_img_left {
	position: absolute;
	left: 0px;
	height: 19px;
	width: 19px;
	background: url(../images/corner_24.png) no-repeat;
}

#ft_img_mid {
	position: absolute;
	left: 19px;
	height: 18px;
	width: 863px;
	background: #303030;
	border-bottom: 1px solid #646464;

}

#ft_img_right {
	position: absolute;
	right: 0px;
	height: 19px;
	width: 19px;
	background: url(../images/corner_24_r.png) no-repeat;
}

#logo_edito {
	float: left;
}

a {
	text-decoration: none;
	color: #cccccc;
}

table a.texte_link,table
{
    color: #FFFFFF;
}

a:hover {
	text-decoration: none;
	color: #99FF33;
}

a:active {
	text-decoration: none;
	color: #99FF33;
}
.back_tendu{
background-color:#460002;
}
.back_private{
background-color:#990000;
}

img.daily_preview
{
  margin-bottom: -5px;
}
+38 −53
Original line number Diff line number Diff line
<?

function dispConnection(){


  /////// BEGIN TABLE UP ///////
	if ($_SESSION["user_right"] == 0) {
  if ($_SESSION["user_right"] == 0)
    $str .= dispConnectionLogin();
	}
	else {
  else
    $str .= dispConnectionDisconnect();
	}



  /////// BEGIN SPACE ///////
	$str .= '<table><tr><td></td></tr></table>';

  //$str .= '<table><tr><td></td></tr></table>';

  /////// BEGIN TABLE DOWN ///////
  if ($_SESSION["user_right"] == "ANONYM") {
@@ -28,37 +21,29 @@ function dispConnection(){
    //		$str .=	dispConnectionProfile();	// HIDE WAITING EDIT PROFIL
  }


  echo $str;
}



function dispConnectionLogin() { /////// CONNECTION LOGIN ///////

	$str = dispTableBegin("c o n n e x i o n", "30", 1);

	if ($_SERVER['HTTPS'] == "on")
    	$str .= '

    		<form name="saisie" method="post" action="index.php?connect=1&section=Home">
          	 	<tr><td width="40%" class="small" align="center">Login</td></tr>
          		<tr><td width="60%" align="center"><input type="login" name="user_login" size="15" maxlength="15"></td></tr>
    		<tr><td width="40%" class="small" align="center">Pass</td></tr>
    	     	<tr><td width="60%" align="center"><input type="password" name="user_pass" size="15" maxlength="15"></td></tr>
    		<tr><td colspan="2" align="center"><input type="submit" value="Uaimec"><br></td></tr>
    		</form>
    	';
  $str = '<div id="main_body">';
  $str .= dispTableBegin("c o n n e x i o n", "30", 1);
  if ($_SERVER['HTTPS'] == "on") {
    $str .= '<form name="saisie" method="post" action="index.php?connect=1&section=Home">';
    $str .= '<tr><td width="40%" class="small" align="center">Login</td></tr>';
    $str .= '<tr><td width="60%" align="center"><input type="login" name="user_login" size="15" maxlength="15"></td></tr>';
    $str .= '<tr><td width="40%" class="small" align="center">Pass</td></tr>';
    $str .= '<tr><td width="60%" align="center"><input type="password" name="user_pass" size="15" maxlength="15"></td></tr>';
    $str .= '<tr><td colspan="2" align="center"><input type="submit" value="Donne tout"><br></td></tr>';
    $str .= '</form>';
  }
  else
		$str .= "Pour vous connecter au site, <b>vous devez utiliser une connexion SSL</b>!";
    $str .= "<p>Pour vous connecter au site, <strong>vous devez utiliser une connexion SSL</strong>!</p>";

  $str .= dispTableEnd();

  $str .= '</div>';
  return ($str);
}



function dispConnectionRegister() { /////// CONNECTION REGISTER ///////


Loading