|
|
// $what=$HTTP_GET_VARS["what"];
// $base="nul";
$n=$HTTP_GET_VARS["n"];
$base="sch.dat";
// if($what=="hf") $base="hf.dat";
// if($what=="kitch") $base="kitch.dat";
if($base=="nul")
echo "wrong base";
else
{
$fd=fopen($base,"r");
fseek($fd,$n*32);
fscanf($fd,"%d %d %d",$cookie,$start,$len);
if($cookie!="73425") echo "wrong n";
else
{
fseek($fd,$start);
$content=fread($fd,$len);
echo $content;
}
}
?>
| |
| |