Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Couc committed Nov 29, 2012
1 parent bb7b869 commit d1e6642
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions index.php
@@ -1,7 +1,9 @@
<?php
session_start();
include ('php/_A8s2f9g714ef.php');
include ('php/script.php');
mysql_query("SET NAMES UTF8");
session_start();

?>
<!DOCTYPE html>
<html lang="fr">
Expand Down Expand Up @@ -122,7 +124,7 @@
<div class="slider_content" style="width:100%;">
<ul class="rslides" id="slider2" style="width:100%;">
<?php
$sql_article = "SELECT * FROM ARTICLE a, SOURCE s WHERE a.id_source = s.id_source ORDER BY a.id_art DESC LIMIT 5;";
$sql_article = "SELECT * FROM ARTICLE a, SOURCE s WHERE a.id_source= s.id_source AND s.id_source IN (".getSources().") ORDER BY nb_like DESC LIMIT 5";
$query_article = mysql_query($sql_article) or die("ERREUR MYSQL numéro: " . mysql_errno() . "<br>Type de cette erreur: " . mysql_error() . "<br>\n");

while ($result_article = mysql_fetch_assoc($query_article)) {
Expand Down Expand Up @@ -214,7 +216,7 @@
<h3 class="drapeau"><span>A la une</span></h3>
</div>
<?php
$sql_article = "SELECT * FROM ARTICLE a, SOURCE s WHERE a.id_source = s.id_source ORDER BY a.id_art DESC LIMIT 30;";
$sql_article = "SELECT * FROM ARTICLE a, SOURCE s WHERE a.id_source= s.id_source AND s.id_source IN (".getSources().") ORDER BY DATE DESC LIMIT 20;";
$query_article = mysql_query($sql_article) or die("ERREUR MYSQL numéro: " . mysql_errno() . "<br>Type de cette erreur: " . mysql_error() . "<br>\n");

while ($result_article = mysql_fetch_assoc($query_article)) {
Expand Down
2 changes: 1 addition & 1 deletion php/profil_ajax.php
@@ -1,5 +1,5 @@
<?php
include ('./_A8s2f9g714ef.php');
include ('_A8s2f9g714ef.php');
mysql_query("SET NAMES UTF8");
session_start();
?>
Expand Down
2 changes: 1 addition & 1 deletion php/sources_ajax.php
@@ -1,5 +1,5 @@
<?php
include ('./_A8s2f9g714ef.php');
include ('_A8s2f9g714ef.php');
mysql_query("SET NAMES UTF8");
session_start();
if ($_GET['action'] == 1) {
Expand Down

0 comments on commit d1e6642

Please sign in to comment.