Commit 16cd098a authored by Seblu's avatar Seblu
Browse files

disable logging in http

disable loggin in http on connection page
enforce https on connexion button on index page
disconnect user if it's not in https (dropping if loosing ssl)
delete photo directory and admin page and links in admin page
delete admin page of forum
fix redirect on blacklist site
fix indentation and trailing whitespace in some files
add a sexy redirection function found on http://php.net/manual/fr/function.header.php
add link to munin and phpmyadmin in admin link
fix fucking bad color #d3d3df by #303030 in all admin pages !
svn ignore include/db_connect.php
parent 326b5826
Loading
Loading
Loading
Loading
+5 −5
Changes for admin/admin_blacklist.php: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ $str = '
			</tr>
						
			<tr>
			<td bgcolor="#d3d3df">
			<td bgcolor="#303030">
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
				<td>
@@ -146,7 +146,7 @@ $str = '
 			</FORM>
		
			<tr>
			<td bgcolor="#d3d3df">
			<td bgcolor="#303030">
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
				<td>
@@ -226,7 +226,7 @@ function dispAdminAddBlacklist() {
		</td>
		</tr>					
	<tr>
	<td bgcolor="#d3d3df">
	<td bgcolor="#303030">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>	
		    <form name="saisie" method="post" action="index.php?section=AdminHome&section_admin=AddBlacklist">
@@ -297,7 +297,7 @@ $str = '
		</td>
		</tr>					
	<tr>
	<td bgcolor="#d3d3df">
	<td bgcolor="#303030">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>	
	';
@@ -394,7 +394,7 @@ $str = '
		</td>
		</tr>					
	<tr>
	<td bgcolor="#d3d3df">
	<td bgcolor="#303030">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>	
	';
+4 −4
Changes for admin/admin_edito.php: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ $str = '
		</tr>
						
		<tr>
		<td bgcolor="#d3d3df">
		<td bgcolor="#303030">
		<table cellpadding="2" cellspacing="2" width="100%">
			<tr>
			<td>
@@ -132,7 +132,7 @@ function dispAdminAddEdito () {
		</td>
		</tr>					
	<tr>
	<td bgcolor="#d3d3df">
	<td bgcolor="#303030">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>	
		    <form name="saisie" method="post" action="index.php?section=AdminHome&section_admin=AddEdito&edito_id='.$edito_id.'">
@@ -196,7 +196,7 @@ $str = '
		</td>
		</tr>					
	<tr>
	<td bgcolor="#d3d3df">
	<td bgcolor="#303030">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>	
	';
@@ -283,7 +283,7 @@ $str = '
		</td>
		</tr>					
	<tr>
	<td bgcolor="#d3d3df">
	<td bgcolor="#303030">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>	
	';
−14

File deleted.

+2 −113
Changes for admin/admin_home.php: 2 added lines, 113 removed lines.
Original line number Diff line number Diff line
@@ -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";
@@ -44,7 +42,7 @@ $str = '
							</td>
							</tr>
							<tr>
							<td bgcolor="#d3d3df">
							<td bgcolor="#303030">
							<table width="100%" cellpadding="2" cellspacing="2" align="center">';

$str .= dispAdminMenu();
@@ -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++) {
				;}
@@ -185,7 +153,7 @@ $str .= '
			</tr>

			<tr>
			<td bgcolor="#d3d3df">
			<td bgcolor="#303030">
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
				<td>
@@ -267,85 +235,6 @@ $str .= '
				<TR><TD></TD></TR>




				<TR>
					<TD><b>
					Nombre total d\'Albums Photos:
					</b></TD>
					<TD><b>'	
					.$nb_photos.
					'</b></TD>
				</TR>


				<TR>
					<TD><small>
					&nbsp &nbsp Nombre total de Photos:
					</small></TD>
					<TD align=left><small>'
					.$total_size_photos.
					' Img</small></TD>
				</TR>

				<TR>
					<TD><small>
					&nbsp &nbsp Nombre d\'Albums Photos Publics:
					</small></TD>
					<TD align=left><small>'
					.$nb_photos_publics.
					'</small></TD>
				</TR>
				<TR>
					<TD><small>
					&nbsp &nbsp Nombre d\'Albums Photos Tendus:
					</small></TD>
					<TD align=left><small>'
					.$nb_photos_tendus.
					'</small></TD>
				</TR>
				<TR>
					<TD><small>
					&nbsp &nbsp Nombre d\'Albums Photos Priv&eacute;es:
					</small></TD>
					<TD align=left><small>'
					.$nb_photos_privates.
					'</small></TD>
				</TR>

				<TR><TD></TD></TR>

				<TR>
					<TD><small>
					&nbsp &nbsp Nombre d\'Albums Photos Eptv:
					</small></TD>
					<TD align=left><small>'
					.$nb_photos_eptv.
					'</small></TD>
				</TR>
				<TR>
					<TD><small>
					&nbsp &nbsp Nombre d\'Albums Photos Bonus:
					</small></TD>
					<TD align=left><small>'
					.$nb_photos_bonus.
					'</small></TD>
				</TR>
				<TR>
					<TD><small>
					&nbsp &nbsp Nombre d\'Albums Photos .Adm:
					</small></TD>
					<TD align=left><small>'
					.$nb_photos_adm.
					'</small></TD>
				</TR>

				<TR><TD></TD></TR>





				<TR>
					<TD><b>
					Nombre total de News:
+4 −4
Changes for admin/admin_links.php: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ $str = '
 			</FORM>
		
			<tr>
			<td bgcolor="#d3d3df">
			<td bgcolor="#303030">
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
				<td>
@@ -128,7 +128,7 @@ function dispAdminAddLink() {
		</td>
		</tr>					
	<tr>
	<td bgcolor="#d3d3df">
	<td bgcolor="#303030">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>	
		    <form name="saisie" method="post" action="index.php?section=AdminHome&section_admin=AddLink&element_id='.$element_id.'">
@@ -187,7 +187,7 @@ $str = '
		</td>
		</tr>					
	<tr>
	<td bgcolor="#d3d3df">
	<td bgcolor="#303030">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>	
	';
@@ -258,7 +258,7 @@ $str = '
		</td>
		</tr>					
	<tr>
	<td bgcolor="#d3d3df">
	<td bgcolor="#303030">
	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>	
	';
Loading