include "_wiki.php";
include '_header.php';
include "_menu.php";
$s = $_GET["s"];
$sx = explode("/",$s);
$arts = glob("$sx[0]/*.txt");
if(count($arts)==0){$menu=("");}
else{
foreach($arts as $art){ // crea menu dx
$artx = explode("/",$art);
$linkpag = rawurlencode($artx[0])."/".substr($artx[1],0,2);
$nomepag = str_replace("_", " ", substr($artx[1],3,-4)); // nome articolo (toglie nn- in testa e .txt in coda)
$menu2.= "".wiki($nomepag,$s)."
";
if(strpos($art,"/$sx[1]")>0){$pag = $art;} // trova link pagina attuale
} }
?>
echo "$menu2"; //menu 2 in testa
?>
|
|
if(count($arts)==0){echo("Pagina temporaneamente non disponibile");}
else{ // testo articolo
if(strpos($s,"/")===FALSE){$pag=$arts[0];} // per defaultsi mette la prima pag
$file = trim(file_get_contents($pag))."
" ;
echo ''.wiki($file,$sx[0]).' ';
}
?>
|
echo $menu2; // menu a dx
?>
|
| |