'; for ($riga=0;$riga<200;$riga++) { $ciclo++; //debug //echo "Ciclo n. ".$ciclo."

"; //debug //for ($deb=0;$deb<40;$deb++) echo "indicey[".$deb."] ".$indicey[$deb]."
"; //debug //echo "posizionearrayx: ".$posizionearrayx." - posizionearrayy: ".$posizionearrayy."
";//debug echo ""; for ($geppo=0;$geppo<$posizionearrayx;$geppo++) echo " "; if ($stampata[$posizionearrayx][$posizionearrayy]==="N") { $fd=fopen($schema[$posizionearrayx][$posizionearrayy]."-desc.txt","r"); $lun=0; $lun=fread($fd,4); $desc=fread($fd,$lun); fclose($fd); echo ''.$prefisso[$geppo].$mossa[$posizionearrayx][$posizionearrayy]."
".$desc.""; $stampata[$posizionearrayx][$posizionearrayy]="S"; } else { echo " "; } for ($geppo=$posizionearrayx+1;$geppo<40;$geppo++) { if (isset($padre[$geppo][$indicey[$geppo]])) { if ($padre[$geppo][$indicey[$geppo]]==$schema[$geppo-1][$indicey[$geppo-1]]) { $posizionearrayx=$geppo; $posizionearrayy=$indicey[$geppo]; if ($stampata[$geppo][$indicey[$geppo]]==="N") { $fd=fopen($schema[$posizionearrayx][$posizionearrayy]."-desc.txt","r"); $lun=0; $lun=fread($fd,4); $desc=fread($fd,$lun); fclose($fd); echo ''.$prefisso[$geppo].$mossa[$geppo][$indicey[$geppo]]."
".$desc.""; $stampata[$geppo][$indicey[$geppo]]="S"; } else { echo " "; } } else { for($jeep=$geppo;$jeep<40;$jeep++) echo " "; $indicey[$geppo-1]++; $posizionearrayy++; for ($jeep=$geppo-1;$jeep>0;$jeep--) { if (isset($padre[$jeep][$indicey[$jeep]])) { if ($padre[$jeep][$indicey[$jeep]]!=$schema[$jeep-1][$indicey[$jeep-1]]) { $indicey[$jeep-1]++; $posizionearrayy=$indicey[$jeep-1]; $posizionearrayx=$jeep-1; } else { $jeep=-1; } } else { $indicey[$jeep-1]++; $posizionearrayy=$indicey[$jeep-1]; $posizionearrayx=$jeep-1; } } $geppo=40; } } else { for($jeep=$geppo;$jeep<40;$jeep++) echo " "; $geppo=40; } } echo ""; if (!(isset($mossa[$posizionearrayx][$posizionearrayy]))) $riga=10000; //echo "




";//debug } echO ""; ?>