Charger | Nouveau
source non définie
";
else if ($fgrep == "")
echo "grep non défini
";
else if ($f == "")
echo "filename non défini
";
else
{
if (!file_exists("$confdir/$f"))
createfile("$confdir/$f");
$fp = fopen("$confdir/$f","w");
fwrite($fp,"source\t\t= \"$fsource\"\n");
fwrite($fp,"titlesite\t= \"$fsource\"\n");
fwrite($fp,"linksite\t= \"$flinksite\"\n");
fwrite($fp,"descriptionsite\t= \"$fdescriptionsite\"\n");
fwrite($fp,"languagesite\t= \"$flanguagesite\"\n");
fwrite($fp,"baseurl\t\t= \"$fbaseurl\"\n");
fwrite($fp,"grep\t\t= \"$fgrep\"");
fclose($fp);
}
}
// télécharge le fichier source
$data = implode("",file($source));
// le nettoie
$data = strtr($data,"\n\t\0\r"," ");
$data = trim($data);
echo "les champs marqués d'un * sont obligatoires.";
echo "