include ("include.html"); //if (!isset($PHP_AUTH_USER) || $PHP_AUTH_USER!="asterix" || $PHP_AUTH_PW!="42") { // header('Location: http://www.bbackzone.com'); // header('WWW-Authenticate: Basic realm="Gallois"'); // header('HTTP/1.0 401 Unauthorized'); //} else { include ('./db.php'); session_register("name"); if (isset($B1) && $B1=="Envoyez") { if ($texte!="" && $nom!="") { dbreq("insert into gallois(name,content,date) values('$nom','$texte',now())"); $name=$nom; unset($pos); } } list($nbr)=mysql_fetch_array(dbreq("select count(*) from gallois")); if (!isset($pos)) $pos=$nbr-20; if (isset($B1) && $B1=="next") { $pos+=20; if ($pos+20>=$nbr) $pos=$nbr-20; } if (isset($B1) && $B1=="Refresh") { $pos=$nbr-20; } if (isset($B1) && $B1=="prev") { $pos-=20; if ($pos<0) $pos=0; } echo "
".$row["date"]." | "; echo "".$row["name"]." > | "; echo "".$todisp." |