Skip to content

Commit

Permalink
salope
Browse files Browse the repository at this point in the history
  • Loading branch information
Couc committed Dec 4, 2012
1 parent 23b4a9d commit 1d57ab2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions php/profil.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@
<?php
if (isset($_SESSION['user'])) {echo("
<div class=\"btn-group\">
<a class=\"btn btn-primary\" href=\"php/profil.php\" >" . $_SESSION['user'] . "</a>
<a class=\"btn btn-primary\" href=\"profil.php\" >" . $_SESSION['user'] . "</a>
<button class=\"btn btn-primary dropdown-toggle\" data-toggle=\"dropdown\">
<span class=\"caret\"></span>
</button>
<ul class=\"dropdown-menu\">
<li>
<a href=\"php/profil.php\">Profil</a>
<a href=\"profil.php\">Profil</a>
</li>
<li class=\"divider\"></li>
<li>
<a href=\"php/logout.php\">Logout</a>
<a href=\"logout.php\">Logout</a>
</li>
</ul>
</div>");
} else {
echo("<a href=\"php/login.php\" class=\"btn btn-primary\"><i class=\"icon-user icon-white\"></i>Se connecter</a>");
echo("<a href=\"login.php\" class=\"btn btn-primary\"><i class=\"icon-user icon-white\"></i>Se connecter</a>");
}
?>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion php/script_cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
echo ('je rentre là');
$sqlInsert = " INSERT INTO ARTICLE VALUES(null," . $idsrc . ",'" . addslashes($tab[0]) . "','" . mysql_real_escape_string(convert_chars_to_entities(strip_tags(strip_cdata(htmlspecialchars_decode($tab[2])),"<p><br><a><img>"))) . "','" . date("YmdHi", strtotime($tab[3])) . "',null,0,0,'".$tab[1]."')";
$queryInsert = mysql_query($sqlInsert) or die("ERREUR MYSQL numéro: " . mysql_errno() . "<br>Type de cette erreur: " . mysql_error() . "<br>\n");
$sqlInsert1 = " UPDATE ARTICLE set description = '". mysql_real_escape_string(convert_chars_to_entities(strip_tags(strip_cdata(htmlspecialchars_decode(${'desc'.$jj})),"<p><br><img><a>")))."' WHERE id_art = LAST_INSERT_ID();";
$sqlInsert1 = " UPDATE ARTICLE set description = '". mysql_real_escape_string(convert_chars_to_entities(strip_tags(strip_cdata(htmlspecialchars_decode(${'desc'.$jj})),"<p><br>")))."' WHERE id_art = LAST_INSERT_ID();";
$queryInsert1 = mysql_query($sqlInsert1) or die("ERREUR MYSQL numéro: " . mysql_errno() . "<br>Type de cette erreur: " . mysql_error() . "<br>\n");

}
Expand Down

0 comments on commit 1d57ab2

Please sign in to comment.