Tfe

Ongi etorri tfe-ren webgunera...

Old stuff/old_sites/www/include/perso/accueil.php

(Deskargatu)
<?

    if (empty($_POST['contenu']))
    {
    aide();
    $query = "SELECT * FROM  mp_accueil WHERE pseudo='".$nick."'";
    $result = mysql_query($query) or die(mysql_error());
    
    $row = mysql_fetch_assoc($result);
    echo 
    "<form action=\"index.php?page=perso&amp;id=accueil\" method=\"post\">
    <p><textarea rows=\"10\" cols=\"80\" name=\"contenu\">".html2text($row{'contenu'})."</textarea></p>
    <p><input type=\"submit\" value=\"Valider\" /></p>
    ";

    
    }
    else {
	$query = "UPDATE mp_accueil set contenu='".text2html($_POST['contenu'])."' WHERE pseudo='".$nick."'";
	mysql_query($query) or die(mysql_error());
	echo "<p>Le changement effectu&eacute;e a &eacute;t&eacute; pris en compte.</p>
	<p><a href=\"index.php?page=perso\">Retour &agrave; la page perso</a></p>";
    }
    
    
    
?>