"; 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 "