return; } $sql = "INSERT INTO crackme6 (id, note, texte) "; $sql .= "SELECT MAX(id)+1, {$note}, "; $sql .= "'" . mysql_real_escape_string($texte) . "' FROM crackme6"; $r = crackme_sql_query($sql); if (!$r) { crackme_error("<p>Erreur à l'ajout du commentaire :-(</p>"); } else { echo '<div class="article"><p>Commentaire ajouté.</p></div>'; } } $note = crackme_html_request('note'); $texte = trim(crackme_html_request('texte')); if ($note !== false && $texte) { if (crackme_get_magic_quotes()) { $texte = stripslashes($texte); } ajout($note, $texte); } ?> <h2>Débat :</h2> <p>Linux c'est de la merde</p> <h2>Commentaires :</h2> <?php function lit() {
if (($err & $flag) == $flag) { if ($str != '') { $str .= ' | '; } $str .= $text; } } function crackme_error_reporting_str() { $err = ini_get('error_reporting'); if ($err == E_ALL) { return 'E_ALL'; } $txt = ''; crackme_error_reporting_item($txt, $err, E_ERROR, 'E_ERROR'); crackme_error_reporting_item($txt, $err, E_WARNING, 'E_WARNING'); crackme_error_reporting_item($txt, $err, E_PARSE, 'E_PARSE'); crackme_error_reporting_item($txt, $err, E_NOTICE, 'E_NOTICE'); /* case E_CORE_ERROR case E_CORE_WARNING case E_COMPILE_ERROR 128 E_COMPILE_WARNING 256 E_USER_ERROR 512 E_USER_WARNING 1024 E_USER_NOTICE */ return $txt; } echo '<p style="text-align: center;">PHP : '; echo 'magic_quotes=<em>' . (crackme_get_magic_quotes() ? 'on' : 'off') . '</em>'; echo ', error_reporting=<em>' . crackme_error_reporting_str() . '</em>'; echo '</p>' . "\n";