\n"; if (!$start) $start = 0; $quotefile = "../pet/.quoteme#$chan"; $quotelist = array(); $quotelist = file($quotefile); if(!$quotelist) { echo "File error on opening $quotefile"; } else { $i = 0; $numquotes = count($quotelist); if(!$limit) $limit = $numquotes; else { echo "
\n"; while($i < $numquotes) { printf("[%s] ",$bg,$text,$chan,$i,$limit,($i + 1)); $i = $i + $limit; } echo "\n
"; echo "
\n"; } $stop = $start + $limit; for ($i = $start ; $i < $stop ; $i++) { if (!$quotelist[$i]) break; $tmp = $quotelist[$i]; if($tmp) { $tmp = htmlspecialchars($tmp); $tmp = str_replace("\003","",$tmp); printf("Quote %s: %s
\n",($i + 1),$tmp); } } $i = 0; if ($limit != $numquotes) { echo "
\n"; while($i < $numquotes) { printf("[%s] ",$bg,$text,$chan,$i,$limit,($i + 1)); $i = $i + $limit; } echo "
\n"; } } } ?>