$PHP_SELF = $_SERVER["PHP_SELF"];
//-------------------------------------------------------------------------
// Individua nome e directory del modulo in esecuzione
$pathgenerator = $PHP_SELF . "//////////";
$arrey_path = explode("/", $pathgenerator);
$ChiSono = "";
$key = 10;
while ($ChiSono == "")
{
$key = $key -1;
$keyprev = $key -1;
$ChiSono = $arrey_path[$key];
$DoveSono = $arrey_path[$keyprev];
};
//-------------------------------------------------------------------------
$app = "";
$mc = "";
$pg = "";
$dt = "";
$rubr = "";
$aut = "";
$ric = "";
$app = "";
$appMC = "";
$appPG = "";
$appDT = "";
$appRUBR = "";
$appAUT = "";
$appRIC = "";
$link = "MC_microcomputer-";
$fix = "";
$all = "";
$limit = "";
$part = 0;
$npag = "0";
$pagelen = 500;
if (isset($_GET['part']))
{
$part = $_GET['part'];
$limit = "limit $part,$pagelen";
}
if (isset($_GET['npag']))
{
$npag = $_GET['npag']-1;
}
if (isset($_GET['mc']))
{
$mc = $_GET['mc'];
if ($mc<>"")
{
$app = "where ";
$appMC = "(MC_Numero = '$mc')";
}
if (($mc=="mc109") or ($mc=="mc110") or ($mc=="mc112") or ($mc=="mc118"))
{
$link = "mc-microcomputer-";
$fix = "-fix";
}
}
if (isset($_GET['pg']))
{
$pg = $_GET['pg'];
$app = "where ";
$appPG = "(MC_Da_Pag = '$pg')";
}
if (isset($_GET['dt']))
{
$dt = $_GET['dt'];
$app = "where ";
$appDT = "(MC_Data = '$dt')";
}
if (isset($_GET['rubr']))
{
$rubr = $_GET['rubr'];
$app = "where ";
$appRUBR = "(MC_Rubrica = '$rubr')";
}
if (isset($_GET['aut']))
{
$aut = $_GET['aut'];
$app = "where ";
$appAUT = "(MC_Autore1 like '%$aut%'
or MC_Autore2 like '%$aut%'
or MC_Autore3 like '%$aut%'
)";
}
if (isset($_GET['ric']))
{
$ric = $_GET['ric'];
$app = "where ";
$appRIC = "(MC_Autore1 like '%$ric%'
or MC_Autore2 like '%$ric%'
or MC_Autore3 like '%$ric%'
or MC_Rubrica like '%$ric%'
or MC_Titolo like '%$ric%')";
if ($ric == "")
{
$app = "";
$appRIC = "";
}
if ($ric == "§")
{
$app = "";
$appRIC = "";
$all = "ALL";
}
}
?>
Progetto "MC-online" - a cura di Andrea de Prisco - Giornalista IT - www.digiTANTO.it
|

|
DAL 1981 (AL 2001) LA PIU' AUTOREVOLE RIVISTA DI
INFORMATICA PERSONALE |
|
|
