dalla 16 alla 38
<?php
// links display
@$gal = $_GET["gal"];
@$pic = $_GET["pic"];
$n = 1;
$links = array();
$fp = fopen("links.txt", "r");
while (!feof($fp)) {
$link = fgets($fp, 500);
if($link) {
$links[$n] = rtrim($link);
$n++; } }
fclose($fp);
for ($i=1; $i<=sizeof($links); $i++) {
echo "<a href=?gal=".$i.">".$links[$i]."</a>";
if ( $i<=(sizeof($links)-1)) { echo " | "; } }
?>
cmq io sono sicuro che ho sbagliato qualcosa quì
if (! isset($pag) && ! isset($gallery)) { include("gallery/index.php"); }
e quì
$gallery=$_GET['gallery'];
if (isset($gallery)) { include("gallery/$gallery"); }
/*
$pag =$_GET['pag'];
if (! isset($pag) && ! isset($gallery))
{
include("gallery/index.php");
}
if ( isset($pag))
{
$pag = $_GET['pag'];
include("$pag.php");
}
ma non sò spiegarmi cosa help me