"; exit; } if (($HostServer == "") or ($TypeServer == "") or ($XferMethod == "") or ($dhcp == "") or (($Share == "") and ($ShareName1 =="") and ($ShareName2 == "")) or ($defo == "")) { echo ""; exit; } // On teste si le compte et mot de passe sont remplis if (($XferMethod == "smb") or ($XferMethod == "rsyncd")) { if (($Compte == "") or ($PassWord == "")) { $err = "2"; echo ""; exit; } } if ($XferMethod == "rsync") { if ($Compte == "") { $err = "3"; echo ""; exit; } } /********************* Tout est Ok Suite de la conf ******************************************************/ if ($defo=="N") { // Dans le cas ou on veut faire une conf particuliére include "entete.inc.php"; require ("config.inc.php"); require ("ldap.inc.php"); require ("ihm.inc.php"); require_once("lang.inc.php"); bindtextdomain('sauvegarde',"/var/www/se3/locale"); textdomain ('sauvegarde'); // Verifie les droits if ((is_admin("computers_is_admin",$login)=="Y") or (is_admin("inventaire_can_read",$login)=="Y")) { // relecture des variables $FullPeriod = variables(FullPeriod,$HostServer); if ($FullPeriod == "") { $FullPeriod = variables(FullPeriod,config); } $IncrPeriod = variables(IncrPeriod,$HostServer); if ($IncrPeriod == "") {$IncrPeriod = variables(IncrPeriod,config); } $FullKeepCnt = variables(FullKeepCnt,$HostServer); if ($FullKeepCnt == "") { $FullKeepCnt = variables(FullKeepCnt,config);} $FullKeepCntMin = variables(FullKeepCntMin,$HostServer); if ($FullKeepCntMin == "") {$FullKeepCntMin = variables(FullKeepCntMin,config);} $IncrKeepCnt = variables(IncrKeepCnt,$HostServer); if ($IncrKeepCnt == "") {$IncrKeepCnt = variables(IncrKeepCnt,config); } $IncrKeepCntMin = variables(IncrKeepCntMin,$HostServer); if ($IncrKeepCntMin == "") {$IncrKeepCntMin = variables(IncrKeepCntMin,config); } $FullAgeMax = variables(FullAgeMax,$HostServer); if ($FullAgeMax == "") { $FullAgeMax = variables(FullAgeMax,config);} $IncrAgeMax = variables(IncrAgeMax,$HostServer); if ($IncrAgeMax == "") {$IncrAgeMax = variables(IncrAgeMax,config);} $EMailAdminUserName = variables(EMailAdminUserName,$HostServer); if ($EMailAdminUserName == "") {$EMailAdminUserName = variables(EMailAdminUserName,config);} $hourBegin = variables(hourBegin,$HostServer); if ($hourBegin == "") { $hourBegin = variables(hourBegin,config);} $hourEnd = variables(hourEnd,$HostServer); if ($hourEnd == "") {$hourEnd = variables(hourEnd,config);} $weekDays = variables(weekDays,$HostServer); if ($weekDays == "") {$weekDays = variables(weekDays,config);} echo "

".gettext("Configuration spécifique à la machine")." $HostServer

"; echo "
"; echo "

"; echo ""; echo "\n"; echo ""; echo "\n"; echo ""; echo ""; echo "
".gettext("Entre deux sauvegardes complètes :")." 
Défaut 6.97 (Soit 7 jours).')")."\">
 
".gettext("Entre deux sauvegardes incrémentales :")." 
Défaut 0,97 (Soit 1 jour).')")."\">
 
\n"; echo "

"; echo ""; echo "\n"; echo "
"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "
".gettext("En temps normal")."".gettext("Au minimum")."
".gettext("Complete :")."".gettext("Complete :")."
".gettext("Incrémentale :")."".gettext("Incrémentale :")."
\n"; echo "
\n"; echo "

"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo " \n"; echo "\n"; echo "
".gettext("Nb de jours apres lesquels les sauvegardes complètes seront supprimées")."
".gettext("Nb de jours apres lesquel les sauvegardes incrémentielles seront supprimées")."
\n"; echo "

"; echo ""; echo "\n"; echo ""; echo "
"; echo gettext("Mail envoyé à :")."
\n"; echo "

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Les champs vides, seront automatiquement complétés, avec les valeurs par défaut.

Si celui-ci ne se relance pas, cela implique très probablement une erreur dans le fichier.

Si vous savez pas comment remplir les champs, vous pouvez les laisser libre et simplement valider')")."\">
"; echo "
\n"; require ("pdp.inc.php"); } } elseif ($defo == "Y") { echo ""; exit; } ?>