diff --git a/admin/admin_blacklist.php b/admin/admin_blacklist.php
index aa550f2e493402db52d9770852585e4115d7795b..667f3b2b4880001a114db41688406bac80d8485a 100644
--- a/admin/admin_blacklist.php
+++ b/admin/admin_blacklist.php
@@ -40,7 +40,7 @@ $str = '
-
+
@@ -146,7 +146,7 @@ $str = '
-
+
@@ -226,7 +226,7 @@ function dispAdminAddBlacklist() {
-
+
-
+
';
@@ -394,7 +394,7 @@ $str = '
-
+
';
diff --git a/admin/admin_edito.php b/admin/admin_edito.php
index 7f08fda81be29987df40b7ada4649a54f72656b6..6ed8c23e70385304ed9b751347a086a34d373f63 100644
--- a/admin/admin_edito.php
+++ b/admin/admin_edito.php
@@ -36,7 +36,7 @@ $str = '
-
+
@@ -132,7 +132,7 @@ function dispAdminAddEdito () {
-
+
-
+
';
@@ -283,7 +283,7 @@ $str = '
-
+
';
diff --git a/admin/admin_forum.php b/admin/admin_forum.php
deleted file mode 100644
index 89c2d637c75bcef9a8f4247f1fd60a6958f6d4f9..0000000000000000000000000000000000000000
--- a/admin/admin_forum.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
-function dispAdminForum () {
-
-if ($_SESSION["user_right"] < $GLOBALS["EPTV"] )
-{
- return("t'es ouf");
-}
-
-$str = 'Bon voici le forum pour pas y passer des annees entier a le faire marcher en interne OKAY? ';
-
-return $str;
-}
-
-?>
\ No newline at end of file
diff --git a/admin/admin_home.php b/admin/admin_home.php
index 928dd4e85a81935c209b120f4db018b1ef2f6894..73bcc07b0fbbee3aa9ed3ca1eeff5460306d7ce4 100644
--- a/admin/admin_home.php
+++ b/admin/admin_home.php
@@ -6,10 +6,8 @@ include_once "admin/admin_tables.php";
include_once "admin/functions_sql_admin.php";
include_once "admin/admin_menu.php";
include_once "admin/admin_videos.php";
-include_once "admin/admin_photos.php";
include_once "admin/admin_news.php";
include_once "admin/admin_edito.php";
-include_once "admin/admin_forum.php";
include_once "admin/admin_links.php";
include_once "admin/admin_members.php";
include_once "admin/admin_users.php";
@@ -25,7 +23,7 @@ $str = '
-
+
@@ -39,16 +37,16 @@ $str = '
a d m i n
-
-
+
+
-
+
';
-
+
$str .= dispAdminMenu();
-
+
$str .= '
@@ -58,7 +56,7 @@ $str .= '
-
+
';
@@ -70,7 +68,7 @@ $str .= '
else
{
-
+
$total_size_videos = 0;
$nb_videos_publics = 0;
$nb_videos_tendus = 0;
@@ -100,36 +98,6 @@ $str .= '
;}
- $total_size_photos = 0;
- $nb_photos_publics = 0;
- $nb_photos_tendus = 0;
- $nb_photos_privates = 0;
- $nb_photos_eptv = 0;
- $nb_photos_bonus = 0;
- $nb_photos_adm = 0;
-
- $result = getAllPhotos();
- for ($nb_photos = 0; $photo = mysql_fetch_array($result); $nb_photos++) {
-
- $total_size_photos += $photo["photo_size"];
-
- if ($photo["photo_tendu"] == '0')
- $nb_photos_publics++;
- else if ($photo["photo_tendu"] == '1')
- $nb_photos_tendus++;
- else if ($photo["photo_tendu"] == '2')
- $nb_photos_privates++;
-
- if ($photo["photo_type"] == 'eptvprod')
- $nb_photos_eptv++;
- else if ($photo["photo_type"] == 'eptvbonus')
- $nb_photos_bonus++;
- else if ($photo["photo_type"] == 'eptv.adm')
- $nb_photos_adm++;
- ;}
-
-
-
$result = getLastNews(2);
for ($nb_news = 0; $news = mysql_fetch_array($result); $nb_news++) {
;}
@@ -148,7 +116,7 @@ $str .= '
$result = getAllUsers();
for ($nb_users = 0; $user = mysql_fetch_array($result); $nb_users++) {
-
+
if ($user["user_right"] == 1)
$nb_users_basics++;
else if ($user["user_right"] == 2)
@@ -169,7 +137,7 @@ $str .= '
$str .= '
-
+
@@ -180,12 +148,12 @@ $str .= '
  w e l c o m e   t o   a d m i n i s t r a c h e u n
-
+
-
+
-
+
@@ -197,7 +165,7 @@ $str .= '
Nombre total de Vidéos:
- '
+ '
.$nb_videos.
'
@@ -267,90 +235,11 @@ $str .= '
-
-
-
-
- Nombre total d\'Albums Photos:
-
- '
- .$nb_photos.
- '
-
-
-
-
-
-     Nombre total de Photos:
-
- '
- .$total_size_photos.
- ' Img
-
-
-
-
-     Nombre d\'Albums Photos Publics:
-
- '
- .$nb_photos_publics.
- '
-
-
-
-     Nombre d\'Albums Photos Tendus:
-
- '
- .$nb_photos_tendus.
- '
-
-
-
-     Nombre d\'Albums Photos Privées:
-
- '
- .$nb_photos_privates.
- '
-
-
-
-
-
-
-     Nombre d\'Albums Photos Eptv:
-
- '
- .$nb_photos_eptv.
- '
-
-
-
-     Nombre d\'Albums Photos Bonus:
-
- '
- .$nb_photos_bonus.
- '
-
-
-
-     Nombre d\'Albums Photos .Adm:
-
- '
- .$nb_photos_adm.
- '
-
-
-
-
-
-
-
-
Nombre total de News:
- '
+ '
.$nb_news.
'
@@ -445,7 +334,7 @@ $str .= '
-
+
';
@@ -459,9 +348,9 @@ $str .= '
-
-
-
+
+
+
';
@@ -473,18 +362,18 @@ $str = '
-
+
-
+
- Arf, pas tout de suite...
+ Arf, pas tout de suite...
-
+
-
-
+
+
';
}
diff --git a/admin/admin_links.php b/admin/admin_links.php
index 9e18d0d1e7042cb742fc6fb604384eb599b70c68..86a45800785b67fbb213b81bf9bcf54f307f4516 100644
--- a/admin/admin_links.php
+++ b/admin/admin_links.php
@@ -32,7 +32,7 @@ $str = '
-
+
@@ -128,7 +128,7 @@ function dispAdminAddLink() {
-
+
-
+
';
@@ -258,7 +258,7 @@ $str = '
-
+
';
diff --git a/admin/admin_members.php b/admin/admin_members.php
index 65567f95ff865f5e11f10be4d82a9532f076ca75..c95a7f0ffb4e2cd5c884490a2215934970161ff5 100644
--- a/admin/admin_members.php
+++ b/admin/admin_members.php
@@ -46,7 +46,7 @@ function dispAdminMembers () {
$str .= '
-
+
@@ -202,7 +202,7 @@ function dispAdminAddMember() {
-
+
-
+
';
@@ -537,7 +537,7 @@ $str = '
-
+
';
diff --git a/admin/admin_menu.php b/admin/admin_menu.php
index 6e79cbc71a481d9a272d839c9e9049e19090644d..5adff334475118199bc8ee4b4411fbce014b6703 100644
--- a/admin/admin_menu.php
+++ b/admin/admin_menu.php
@@ -2,8 +2,6 @@
function dispAdminMenu() {
-
-
$str = '
@@ -18,9 +16,6 @@ $str = '
}
$str .= '
-
@@ -28,7 +23,7 @@ $str = '
if ($_SESSION["user_right"] >= $GLOBALS["EPTV"]) {
$str .= '
-
+
+
';
diff --git a/admin/admin_news.php b/admin/admin_news.php
index ddd39bb6e294b7ea22d4b6fcdcb6b36cb8abe503..759f4d79d9e712de76ef1800506060661c7b6c9b 100644
--- a/admin/admin_news.php
+++ b/admin/admin_news.php
@@ -33,7 +33,7 @@ $str = '
-
+
@@ -176,7 +176,7 @@ function dispAdminAddNews() {
-
+
-
+
';
@@ -348,7 +348,7 @@ $str = '
-
+
';
diff --git a/admin/admin_photos.php b/admin/admin_photos.php
deleted file mode 100644
index 6cff58dbccedf2dc8e297fcfb83b7b3c1463993f..0000000000000000000000000000000000000000
--- a/admin/admin_photos.php
+++ /dev/null
@@ -1,671 +0,0 @@
-
-// include_once "admin/file_browser.php";
-
-
-function dispAdminPhotos () {
-
-if ($_SESSION["user_right"] < $GLOBALS["EPTV"] )
-{
- return("T'es ouf");
-}
-
- get_time();
-
-
-$result_prod = getPhotosByType("eptvprod");
-$result_bonus = getPhotosByType("eptvbonus");
-$result_adm = getPhotosByType("eptv.adm");
-
-
-
-$str = '
-
-
-
-
-
-
-
-
-
-   a l l   p h o t o s
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ';
-
-
-
-
-
-
-
- if (mysql_num_rows($result_prod)) {
- $str .= dispAdminPhotosByType($result_prod, " e p t v p r o d u c t i o n");
- }
-
- if (mysql_num_rows($result_bonus)) {
- $str .= dispAdminPhotosByType($result_bonus, " e p t v   b o n u s");
- }
-
- if (mysql_num_rows($result_adm)) {
- $str .= dispAdminPhotosByType($result_adm, " e p t v . a d m");
- }
-
-return $str;
-
-}
-
-
-
-
-function dispAdminPhotosByType($result, $photo_type) {
-
- $str = '
-
-
-
-
-
-
-
-
- '.$photo_type.'
-
-
-
-
-
-
-
-
-
-
-
-
- ';
-
- while ($photo = mysql_fetch_array($result)) {
-
- $vid_id = $photo["photo_id"];
-
- $str .= dispWhenTendu($photo["photo_tendu"]);
-
- $str .= '
-
-
- '.$photo["photo_name"].'
-
-
- '.$photo["photo_date"].'
-
-
- '.$photo["photo_size"].' Img
-
- ';
-
- if ($photo["photo_user_id"] == $_SESSION["user_id"] || $_SESSION["user_right"] == $GLOBALS["ROOT"]){
- $str .= '
-
-
-
-
-
-
- ';
- }
-
-
- $str .= '';
- }
-
-$str .= '
-
-
-
-
-
-
-
-
-
-
-
- ';
-
- return ($str);
-
-}
-
-
-
-
-
-
-
-function dispAdminPhotosSolos () {
-
- $rep_def = "photos/";
-
- if ($_SESSION["user_right"] < $GLOBALS["REPORTER"] )
- {
- return("T'es ouf");
- }
-
-
- // Files on BDD
-
- $result = getAllphotos();
-
- while ($photo = mysql_fetch_array($result)) {
- $tab_path_bdd[] = $photo["photo_path"];
- }
-
-
- // Files on Serveur
-
- $tab_path_local = find_reccur_file($rep_def);
-
-
-
- for ($cpt_local = 0; $tab_path_local[$cpt_local]; $cpt_local++)
- {
- for ($cpt_bdd = 0; $tab_path_bdd[$cpt_bdd] && $tab_path_bdd[$cpt_bdd] != $tab_path_local[$cpt_local]; $cpt_bdd++)
- {
- ;
- }
- if (!$tab_path_bdd[$cpt_bdd])
- {
- $tab_solo[] = $tab_path_local[$cpt_local];
- }
-
- }
-
-
-
-
- $str = '
-
-
-
-
-
-
-
-
-
-   p h o t o s s o l o s
-
-
-
-
-
-
-
-
-
-
-
- ';
-
-
- for ($i = 0; $tab_solo[$i]; $i++)
- {
-
- $str .= '
-
-
-
-
- '.$tab_solo[$i].'
-
-
-
-
-
-
-
- ';
-
- }
-
- $str .= '
-
-
-
-
-
-
-
-
-
-
-
-
- ';
-
-
-
-
- return $str;
-
-}
-
-
-
-
-function dispAdminAddPhotos () {
-
- $date = get_date();
- $vid_path = "";
-
- if (isset($_GET['vid_path']))
- {
- $vid_path = $_GET['vid_path'];
- }
-
-
- $str = '
-
-
-
-
-
-
-
-
-   a d d   p h o t o   a l b u m   t o   d a t a b a s e
-
-
-
-
-
-
-
-
-
-
-';
-
-
-return $str;
-}
-
-
-function dispAdminModifPhotos () {
-
-$vid_id =$_GET['vid_id'];
-
-$result = getOnePhoto($vid_id);
-
-$str = '
-
-
-
-
-
-
-
-
-   m o d i f y   a l b u m   p h o t o
-
-
-
-
-
-
-
-
- ';
-
- if (mysql_num_rows($result)){
- $photo = mysql_fetch_array($result);
- }
-
- $str .= '
-
-
-
-
-
-
-
-
-
-';
-
-return $str;
-}
-
-
-function dispAdminDelPhotos () {
-
- $vid_id =$_GET['vid_id'];
-
- $result = getOnePhoto($vid_id);
-
-
-$str = '
-
-
-
-
-
-
-
-
-   d e l e t e   a l b u m   p h o t o
-
-
-
-
-
-
-
-
- ';
-
- if (mysql_num_rows($result)){
- $photo = mysql_fetch_array($result);
- }
-
- $str .= '
-
-
-
-
-
-
-
-
-
-';
-
-return $str;
-}
-
-
-?>
\ No newline at end of file
diff --git a/admin/admin_tables.php b/admin/admin_tables.php
index 62247dd50a8329b1db919bfa8bdcdbd358327d2e..56a244fe5fc70912e8b60da7ea4462cc64d914c2 100644
--- a/admin/admin_tables.php
+++ b/admin/admin_tables.php
@@ -12,15 +12,6 @@ $tab_section_admin[ModifVideo] = adminModifVideo; // sql modif a video
$tab_section_admin[AdminDelVideos] = dispAdminDelVideos; // disp admin delete a video
$tab_section_admin[DelVideo] = adminDeleteVideo; // sql delete a video
-$tab_section_admin[AdminPhotos] = dispAdminPhotos;
-$tab_section_admin[AdminPhotosSolos] = dispAdminPhotosSolos; // disp admin Photos solos
-$tab_section_admin[AdminAddPhotos] = dispAdminAddPhotos; // disp admin add a Photo
-$tab_section_admin[AddPhoto] = adminAddPhoto; // sql add a Photo
-$tab_section_admin[AdminModifPhotos] = dispAdminModifPhotos; // disp admin modif a Photo
-$tab_section_admin[ModifPhoto] = adminModifPhoto; // sql modif a Photo
-$tab_section_admin[AdminDelPhotos] = dispAdminDelPhotos; // disp admin delete a Photo
-$tab_section_admin[DelPhoto] = adminDeletePhoto; // sql delete a Photo
-
$tab_section_admin[AdminNews] = dispAdminNews;
$tab_section_admin[AdminAddNews] = dispAdminAddNews; // disp admin add a news
$tab_section_admin[AddNews] = adminAddNews; // sql add a news
@@ -29,8 +20,6 @@ $tab_section_admin[ModifNews] = adminModifNews; // sql modif a news
$tab_section_admin[AdminDelNews] = dispAdminDelNews; // disp admin delete a news
$tab_section_admin[DelNews] = adminDeleteNews; // sql delete a news
-
-
$tab_section_admin[AdminEdito] = dispAdminEdito;
$tab_section_admin[AdminAddEdito] = dispAdminAddEdito; // disp admin add an edito
$tab_section_admin[AddEdito] = adminAddEdito; // sql add an edito
diff --git a/admin/admin_users.php b/admin/admin_users.php
index d8074fb29dd7e48ccd6322148e5ce1e20afdae1e..e06ab29c32a3a54d6bf2d4a20e84b179e2cbb4bb 100644
--- a/admin/admin_users.php
+++ b/admin/admin_users.php
@@ -47,7 +47,7 @@ $str = '
$str .= '
-
+
@@ -146,7 +146,7 @@ function dispAdminAddUser() {
-
+
@@ -254,7 +254,7 @@ $str = '
-
+
';
@@ -371,7 +371,7 @@ $str = '
-
+
';
diff --git a/admin/admin_videos.php b/admin/admin_videos.php
index f3a3d1e92368dcb9d9d6b26fa4185265b624822c..38b5764401fb53be915f6692f1a8056e424a01b6 100644
--- a/admin/admin_videos.php
+++ b/admin/admin_videos.php
@@ -16,10 +16,8 @@ $result_prod = getVideosByType("eptvprod");
$result_bonus = getVideosByType("eptvbonus");
$result_adm = getVideosByType("eptv.adm");
-
-
$str = '
-
+
@@ -30,7 +28,7 @@ $str = '
  a l l   v i d e o s
-
+
@@ -53,15 +51,10 @@ $str = '
';
-
-
-
-
-
if (mysql_num_rows($result_prod)) {
- $str .= dispAdminVideosByType($result_prod, " e p t v p r o d u c t i o n");
+ $str .= dispAdminVideosByType($result_prod, " e p t v p r o d u c t i o n");
}
-
+
if (mysql_num_rows($result_bonus)) {
$str .= dispAdminVideosByType($result_bonus, " e p t v   b o n u s");
}
@@ -78,8 +71,8 @@ return $str;
function dispAdminVideosByType($result, $video_type) {
-
- $str = '
+
+ $str = '
@@ -90,12 +83,12 @@ function dispAdminVideosByType($result, $video_type) {
'.$video_type.'
-
+
-
+
-
+
@@ -104,13 +97,13 @@ function dispAdminVideosByType($result, $video_type) {
';
while ($video = mysql_fetch_array($result)) {
-
+
$vid_id = $video["video_id"];
$str .= dispWhenTendu($video["video_tendu"]);
$str .= '
-
+
@@ -118,7 +111,7 @@ function dispAdminVideosByType($result, $video_type) {
';
if ($video["video_path_daily"]) {
$str .= ' ';
- }
+ }
$str .= '
'.$video["video_date"].'
@@ -132,13 +125,13 @@ function dispAdminVideosByType($result, $video_type) {
$str .= '
-
+
-
+
';
}
@@ -240,7 +233,7 @@ function dispAdminVideosSolos () {
$str = '
-
+
@@ -251,12 +244,12 @@ function dispAdminVideosSolos () {
  v i d e o s s o l o s
-
+
-
+
-
+
-
+
';
@@ -322,7 +315,7 @@ function dispAdminAddVideos () {
}
- $str = '
+ $str = '
@@ -333,13 +326,13 @@ function dispAdminAddVideos () {
  a d d   v i d e o   t o   d a t a b a s e
-
+
-
+
-
+
-
+
@@ -366,24 +359,24 @@ function dispAdminAddVideos () {
Path Dailymotion:
-
+
Nom de la Vidéo:
-
+
';
-
-
+
+
$str .='
-
+
Date de dépot:
-
+
Catégorie
@@ -402,7 +395,7 @@ $str .='
-
+
Groupe Vidéo
@@ -446,12 +439,12 @@ return $str;
function dispAdminModifVideos () {
-
+
$vid_id =$_GET['vid_id'];
$result = getOneVideo($vid_id);
-$str = '
+$str = '
@@ -462,23 +455,23 @@ $str = '
  m o d i f y   v i d e o
-
+
-
+
-
+
-
+
';
if (mysql_num_rows($result)){
- $video = mysql_fetch_array($result);
+ $video = mysql_fetch_array($result);
}
$str .= '
-
+
Path de la Vidéo:
@@ -497,7 +490,7 @@ $str = '
$str .= "
Browser... ";
-
+
$str .= '
Path Dailymotion:
@@ -506,11 +499,11 @@ $str .= '
Nom de la Vidéo:
-
+
Date de dépot:
-
+
Catégorie
@@ -529,7 +522,7 @@ $str .= '
'.$video["video_comment"].'
-
+
Groupe Vidéo
@@ -575,7 +568,7 @@ $str .= '
-
+
';
return $str;
@@ -589,7 +582,7 @@ function dispAdminDelVideos () {
$result = getOneVideo($vid_id);
-$str = '
+$str = '
@@ -600,43 +593,43 @@ $str = '
  d e l e t e   v i d e o
-
+
-
+
-
+
-
+
';
if (mysql_num_rows($result)){
- $video = mysql_fetch_array($result);
+ $video = mysql_fetch_array($result);
}
$str .= '
diff --git a/css/main.css b/css/main.css
index bda13f605075d97a01c96959fcdf243761fcb44e..94084f33c831ef9d5d5ea2c8d8008dcb082af8ec 100644
--- a/css/main.css
+++ b/css/main.css
@@ -7,13 +7,13 @@ body
margin: 0px;
padding: 0px;
font-size: 11px;
- color: #CCCCCC;
- font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
+ color: #CCCCCC;
+ font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}
-* {
+* {
margin: 0;
padding: 0;
- font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
+ font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}
ul, li {
list-style-type: none;
@@ -37,7 +37,7 @@ img {
.copyrights {
color: #646464;
- font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
+ font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
text-align: center;
margin: 10px 0px 0px 0px;
}
@@ -51,7 +51,7 @@ img {
background: #303030;
top: 0px;
width: 901px;
- margin: 0 auto;
+ margin: 0 auto;
}
#main_body {
@@ -116,7 +116,7 @@ div.top_box
color: #B8B8B8;
padding: 8px 0px 0px 0px;
font-size: 13px;
- font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
+ font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
text-decoration: none;
text-align: center;
}
@@ -126,7 +126,7 @@ div.top_box
height: 22px;
color: #99FF33;
font-size: 13px;
- font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
+ font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
text-decoration: none;
text-align: center;
}
@@ -185,7 +185,7 @@ div#newsbox li {
div#newsbox h1 {
height: 26px;
font-size: 14px;
- font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
+ font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
padding: 10px;
background: #1D1D1D;
color: #B8B8B8;
@@ -224,7 +224,7 @@ div.rightbox li {
div.rightbox h1 {
height: 26px;
font-size: 14px;
- font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
+ font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
padding: 10px;
background: #1D1D1D;
color: #B8B8B8;
@@ -263,7 +263,7 @@ div.rightbox h1 {
padding: 0px 0px 5px 20px;
}
-#left_side h3 {
+#left_side h3 {
color: #aaa28b;
margin: 10px 0px 0px 0px;
padding: 0px 0px 0px 5px;
@@ -313,15 +313,15 @@ div#menu
margin: 10px 0px 0px 0px;
padding: 0px 0px 0px 5px;
font-size: 12px;
- font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
+ font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}
-#right_side h3 {
+#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;
+ font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
}
@@ -420,8 +420,7 @@ a {
color: #cccccc;
}
-table a.texte_link,
-table
+table a.texte_link,table
{
color: #FFFFFF;
}
diff --git a/include/functions_www.php b/include/functions_www.php
index 3f393ea5af2b80a3f7d26863e9f1a8d83adb2ee2..a5e009861d2010d1bc31767603e45a1ca4a421e1 100644
--- a/include/functions_www.php
+++ b/include/functions_www.php
@@ -70,5 +70,23 @@ function get_time(){ // r
return($time);
}
+//Try PHP header redirect, then Java redirect, then try http redirect.:
+function redirect($url) {
+ if (!headers_sent()) {
+ //If headers not sent yet... then do php redirect
+ header('Location: '.$url);
+ exit;
+ }
+ else {
+ //If headers are sent... do java redirect... if java disabled, do html redirect.
+ echo '';
+ echo '';
+ echo ' ';
+ echo ' ';
+ exit;
+ }
+}
?>
\ No newline at end of file
diff --git a/include/menu.php b/include/menu.php
index 8f20e843bf0011ea017400f3039a65dfadcee18a..dacd7ccac0edce5eeaeebda20ddf9eb2edcb9b0f 100644
--- a/include/menu.php
+++ b/include/menu.php
@@ -1,38 +1,23 @@
function dispMenu() {
-
-$str = '';
-
-
-echo $str;
-}
-
-
-
?>
diff --git a/index.php b/index.php
index 5609deb936aa3abc124c65e307f069f7fa5c6e01..90b355c622b384ef574794fc054d5c4736329b51 100644
--- a/index.php
+++ b/index.php
@@ -1,7 +1,6 @@
session_start();
-
include "include/db_connect.php";
include "include/functions_sql.php";
include "include/tables.php";
@@ -9,35 +8,31 @@ include "include/menu.php";
include "include/functions_www.php";
include "include/functions_display.php";
+include "public/connection.php";
include "public/home.php";
-include "public/forum.php";
-include "public/jukebox.php";
-include "public/photos.php";
-include "public/photos_show.php";
include "public/videos.php";
include "public/members.php";
-include "public/contacts.php";
-include "public/connection.php";
-
include "admin/admin_home.php";
+include "public/contacts.php";
-if (!$_SESSION["user_right"]) {
- $_SESSION["user_right"] = 0;
- ;
-}
+// define user right and id if new session
+if (!$_SESSION["user_right"])
+ $_SESSION["user_right"] = 0;
-if (!$_SESSION["user_id"]) {
- $_SESSION["user_id"] = 0;
- ;
-}
+if (!$_SESSION["user_id"])
+ $_SESSION["user_id"] = 0;
+// if user is blacklisted redirect it
if ($_SESSION["user_right"] == -1) {
- go_random_blacksite();
- return;
-}
-
+ go_random_blacksite();
+ return;
+ }
+// if user is logged and not use https, disconnect it!
+if ($_SERVER['HTTPS'] != "on" && $user_id > 0)
+ userDisconnect();
?>
+
@@ -102,7 +97,7 @@ function initThis()
/*
function popup(_m,_b)
{
-
+
var content="";
if(old)
{
@@ -168,73 +163,62 @@ if(isNS4||isIE)
- if ($_GET['connect']) {
- $connect_tv = $_GET['connect'];
- if ($connect_tv == 1)
- {
- checkUser($_POST['user_login'], $_POST['user_pass']);
- }
- else if ($connect_tv == -1)
- {
- userDisconnect();
- }
- }
-
+if ($_GET['connect']) {
+ $connect_tv = $_GET['connect'];
+ if ($connect_tv == 1)
+ checkUser($_POST['user_login'], $_POST['user_pass']);
+ else if ($connect_tv == -1)
+ userDisconnect();
+ }
?>
-
-
- dispMenu();
- ?>
-
+ dispMenu(); ?>
+
-
-
-
- /*if ($_SESSION["user_right"] > 0) {
- echo '
';
- }
- else {
- echo '
';
- }*/
- ?>
-
+
- if ($_GET['section']) {
+ /*if ($_SESSION["user_right"] > 0)
+ echo '
';
+ else
+ echo '
';
+ */
+ ?>
+
+
+
+ if ($_GET['section'])
$section_www = $_GET['section'];
- }
else
- {
$section_www = "Home";
- }
$tab_section[$section_www]($_GET['action']);
?>
-
+
-
-
-
-
-
-
-
© 2010 EPTV
+
+
+
diff --git a/public/connection.php b/public/connection.php
index 8c3b1c9c2d1d79889c8295942025c925a30df85c..26d2b6ea9eadbd2e654873f90654726a1d6cbd31 100644
--- a/public/connection.php
+++ b/public/connection.php
@@ -5,7 +5,7 @@ function dispConnection(){
/////// BEGIN TABLE UP ///////
if ($_SESSION["user_right"] == 0) {
- $str .= dispConnectionLogin();
+ $str .= dispConnectionLogin();
}
else {
$str .= dispConnectionDisconnect();
@@ -38,16 +38,19 @@ function dispConnectionLogin() { /////// CONNECTION LOGIN ///////
$str = dispTableBegin("c o n n e x i o n", "30", 1);
- $str .= '
+ if ($_SERVER['HTTPS'] == "on")
+ $str .= '
-
- Login
-
- Pass
-
-
-
- ';
+
+ Login
+
+ Pass
+
+
+
+ ';
+ else
+ $str .= "Pour vous connecter au site, vous devez utiliser une connexion SSL !";
$str .= dispTableEnd();
@@ -73,7 +76,7 @@ function dispConnectionRegister() { /////// CONNECTION REGISTER ///////
-
+
@@ -104,7 +107,7 @@ function dispConnectionEpiRegister() { /////// CONNECTION EPI REGISTER ///////
-
+
@@ -133,7 +136,7 @@ function dispConnectionProfile() { /////// CONNECTION PROFIL ///////
-
+
@@ -166,7 +169,7 @@ function dispConnectionDisconnect() { /////// CONNECTION PROFIL ///////
Salut à toi
'.$user["user_pseudo"].'
-
+