//fclose($themetxt);
if (!($_POST["theme"] == "")) {
$larray = file('themes.txt'); //array
//echo 'SET: '.$_POST["theme"].'
';
//$larray[] = $_POST["theme"]."\n";
$position = 0;
array_splice($larray,$position,0,$_POST["theme"]."\n");
$themetxt = fopen('themes.txt', 'w') or die ("EEP!");
for ($d=0; $d <= 4; $d += 1) {
//if ($d <= 2) {
$line = str_replace(' ', '+', $larray[$d]);
fwrite($themetxt, $line);
//}
//fclose($themetxt);
}
}
?>
the scrap collector is currently collecting scraps related to:
$larray = file('themes.txt'); //array
for ($d=0; $d <= 4; $d += 1) {
$disp = str_replace('+', ' ', $larray[$d]);
echo '- '.$disp.'
';
}
?>
(the scrap collector is fairly slow, it updates itself two times per
hour)