[[forum]]

Diferències

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

forum 23/02/2010 22:53 forum 15/06/2021 12:19 actual
Línia 21: Línia 21:
echo '<div align="center"><table width="90%" border="0" align="center">'; echo '<div align="center"><table width="90%" border="0" align="center">';
$not=get_num(); $not=get_num();
-$bool = array(); 
-for ($i=0; $i<$not; ++$i) { 
- $bool[$i]=true; 
-} 
$bg[0]="#FF0000"; $bg[0]="#FF0000";
$bg[1]="#000000"; $bg[1]="#000000";
Línia 36: Línia 32:
for ($i=0; $i<$not; ++$i) { for ($i=0; $i<$not; ++$i) {
        srand(get_seed());         srand(get_seed());
- $r = rand(0,$not-1); + $file = "forum/$i/not.txt";
- while (!$bool[$r]) $r = mt_rand(0,$not-1); +
- $bool[$r]=false; +
- $file = "forum/$r/not.txt";+
$text = file_get_contents($file); $text = file_get_contents($file);
$dades = explode("$",$text); $dades = explode("$",$text);
- echo '<tr><td bgcolor="'.$bg[$i%3].'"><a href="doku.php?id=post'.$r.'"><p style="color:'.$tit[$i%3].';margin-left:10px; margin-top:10px;font-size:14px">'.$dades[1].'</p><p align="right" style="color:'.$aut[$i%3].'; margin-right:10px;font-size:14px">'.$dades[0].'</p></a></td></tr>';+ echo '<tr><td bgcolor="'.$bg[$i%3].'"><a href="doku.php?id=post'.$i.'"><p style="color:'.$tit[$i%3].';margin-left:10px; margin-top:10px;font-size:14px">'.$dades[1].'</p><p align="right" style="color:'.$aut[$i%3].'; margin-right:10px;font-size:14px">'.$dades[0].'</p></a></td></tr>';
} }
echo '<tr><td bgcolor="#FFFFFF" style="font-size:16px"><br><a href="doku.php?id=nou_genere">Envia el teu post</a></td></tr></table></div>'; echo '<tr><td bgcolor="#FFFFFF" style="font-size:16px"><br><a href="doku.php?id=nou_genere">Envia el teu post</a></td></tr></table></div>';
</php> </php>
forum.1266961998.txt.gz · Darrera modificació: 15/06/2021 12:18 (external edit)
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0