\n"; echo "

".$msg["sauv_misc_export_running"]."

\n"; echo "
\n"; echo "

"; echo "\n"; //Jeux à venir for ($i=0; $i\n"; } //Jeu courant echo "\n"; //Recherche des paramètres de cryptage $requete="select sauv_sauvegarde_key1, sauv_sauvegarde_key2 from sauv_sauvegardes where sauv_sauvegarde_id=".$currentSauv; $resultat=pmb_mysql_query($requete); $res=pmb_mysql_fetch_object($resultat); //Création du log dans la base log echo "\n"; echo "\n"; echo "\n"; echo ""; echo "

".sprintf($msg["sauv_misc_crypting"],$sauv_sauvegarde_nom)."

"; //Ajout du cryptage $fe=@fopen($filename,"a"); if (!$fe) abort("The file $filename could not be opened",$logid); fwrite($fe,"#Crypt : 1\r\n"); $ftemp=@fopen($temp_file,"r"); if (!$ftemp) abort("Temporary file for SQL export could not be opened for crypting",$logid); if ($res->sauv_sauvegarde_key1=="") $cle1=$sauvegarde_cle_crypt1; else $cle1=$res->sauv_sauvegarde_key1; if ($res->sauv_sauvegarde_key2=="") $cle2=$sauvegarde_cle_crypt2; else $cle2=$res->sauv_sauvegarde_key2; $cr=new Crypt($cle1,$cle2); $to_crypt=fread($ftemp,filesize($temp_file)); fclose($ftemp); $ftemp=@fopen($temp_file,"w+"); if (!$ftemp) abort("Temporary file for SQL export could not be opened for crypting",$logid); fwrite($ftemp,$cr->getCrypt("PMBCrypt")); fwrite($ftemp,$cr->getCrypt($to_crypt)); write_log("Crypt OK : Crypting file is OK",$logid); fclose($ftemp); echo ""; //Suite de la sauvegarde echo ""; echo ""; ?>