Aquesta és una revisió antiga del document


<php> function get_num() { $num = file_get_contents('forum/not.txt'); return $num; } echo '<table width=«500» border=«0» align=«center»>'; $not=get_num(); $bool; for ($i=1; $i⇐$not; ++$i) {

$bool[$i]=false;

} $bg[0]=«#FF0000»; $bg[1]=«#000000»; $bg[2]=«#FFFFFF»; $tit[0]=«#000000»; $tit[1]=«#FFFFFF»; $tit[2]=«#FF0000»; $aut[0]=«#FFFFFF»; $aut[1]=«#FF0000»; $aut[2]=«#000000»; for ($i=1; $i⇐$not; ++$i) {

$r = rand(1,$not);
while ($bool[$r]) $r = rand(1,$not);
$bool[$r]=true;
$file = "forum/$r/not.txt";
$text = file_get_contents($file);
$dades = explode(",",$text);
echo '<tr><td bgcolor="'.$bg[$r%3].'"><a href="doku.php?id=post'.$r.'"><p style="color:'.$tit[$r%3].'">'.$dades[0].'</p><p align="right" style="color:'.$aut[$r%3].'>'.$dades[1].'</p></a></td></tr>';

} echo '<tr><td><a href=«doku.php?id=nou_genere»>Envia el teu post</a></td></tr></table>'; </php>

forum_genere.1265791512.txt.gz · Darrera modificació: d/m/Y H:i (edició externa)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0