\n"; echo "

".$msg["sauv_misc_export_running"]."

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

"; echo "
\n"; //Jeux à suivre for ($i=0; $i\n"; } //Sauvegarde courante echo "\n"; //Fusion des deux fichiers en un seul //print "

FILENAME=$filename TEMP_FILE=$temp_file

"; $fe=@fopen($filename,"a"); $fsql=@fopen($temp_file,"rb"); if ((!$fe)||(!$fsql)) abort("Could not create final file",$logid); //$to_happend=fread($fsql,filesize($temp_file)); //fwrite($fe,"#data-section\r\n".$to_happend); // MaxMan: modified because this error: //Fatal error: Allowed memory size of 8388608 bytes exhausted //(tried to allocate 6495315 bytes) in ///var/www/pmb/admin/sauvegarde/end_save.php on line 52 fwrite($fe,"#data-section\r\n"); do { $to_append = fread($fsql, 8192); if (strlen($to_append) == 0) { break; } fwrite($fe,$to_append); } while (true); fclose($fsql); fclose($fe); unlink($temp_file); //Log : Backup complet write_log("Backup complete",$logid); //Succeed $requete="update sauv_log set sauv_log_succeed=1 where sauv_log_id=".$logid; @mysql_query($requete); //Paramètres echo "\n"; echo "

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

"; echo ""; //Récupération des lieux $requete="select sauv_sauvegarde_lieux from sauv_sauvegardes where sauv_sauvegarde_id=".$currentSauv; $resultat=@mysql_query($requete); $lieux=mysql_result($resultat,0,0); $tLieux=explode(",",$lieux); echo ""; echo ""; //Passer au jeu suivant echo ""; print ""; ?>