50 lines
No EOL
1.3 KiB
PHP
50 lines
No EOL
1.3 KiB
PHP
<?
|
|
#############################################
|
|
# phpDirectory v1.0 #
|
|
# #
|
|
# Jean-Yves Fort - 21 avril 2001 #
|
|
# jean-yves@lozere-online.com #
|
|
# #
|
|
# Consulter les documents du repertoire #
|
|
# /doc pour plus d'informations sur #
|
|
# l'installation, l'auteur, les conditions #
|
|
# d'utilisation. #
|
|
#############################################
|
|
?>
|
|
<? require("conf/db.php");
|
|
|
|
function lire( $variable )
|
|
{
|
|
//supression des antislashes selon config
|
|
if (!get_cfg_var(magic_quotes_gpc))
|
|
{
|
|
$variable = stripslashes($variable);
|
|
}
|
|
return $variable;
|
|
}
|
|
|
|
function enregistre( $variable )
|
|
{
|
|
//ajout des antislashes selon config
|
|
if (!get_cfg_var(magic_quotes_gpc))
|
|
{
|
|
$variable = addslashes($variable);
|
|
}
|
|
return $variable;
|
|
}
|
|
|
|
|
|
?>
|
|
<html>
|
|
<body bgcolor="white" link="blue" vlink="black">
|
|
<center>
|
|
<? include("html/top.php");
|
|
if (!isset($m)) { include("html/main.php"); }
|
|
elseif ($m=="c") { include("html/search.php"); }
|
|
elseif ($m=="l") { include("html/look4word.php"); }
|
|
elseif ($m=="a") { include("html/add.php"); }
|
|
else { include("html/error.php"); }
|
|
include("html/bottom.php"); ?>
|
|
</center>
|
|
</body>
|
|
</html>
|