<?php
#=
/****************************************************************************
Copyright 2002, Daniel Deycard, Jacques Messines, Alain Pomirol
(CATICE Académie de Bordeaux)

This file is part of GiBii/Melia.

GiBii/Melia is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

GiBii/Melia is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GiBii/Melia; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

****************************************************************************/
include("../include/vars_adm.php");
include("../sadmin/backup.inc.php");
include("../include/util.inc.php");
opensession("Sadmin");
if ($sess_login=='admstats') {
	aneantir_session();
	goto("./index.php");
	}
print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
print "<html><head>\n";
print "<meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859-1\">\n";
print "<title>Backup complet de la base $db</title>\n";
print "<base target=_self>\n";
?>
<link rel="stylesheet" href="../include/general.css">
</head>



<BODY class='arial_sadmin'>
<p class='sous_titre'>Sauvegarde de la base <?php print $db; ?> au format SQL</p>

<form method="post" action="sback_traiter.php" name="db_dump" >
   <table border=1 width="70%" align='center'>
    <tr class='rubrique'>
        <td width="70%">
            <p align="center">
            <b>Quelle compression utiliser ?</b>
            </p>
        </td>
        <td>&nbsp;
        </td>
    </tr>
    <tr>
        <td width="50%">
                <ul>
              <input type="radio" name="zip" value="non" checked>&nbsp;aucune<br />
              <?php if (@function_exists('bzcompress')) {
                        $fontdeb="";
                        $fontfin="";
                        $onclick="";
                        $voirnote="";
                    }
                    else {
                        $fontdeb="<font color=\"#999999\">";
                        $fontfin="</font>";
                        $onclick="onclick=\"document.db_dump.zip[0].click();\"";
                        $voirnote=" (voir note)";
                    }
                    print $fontdeb."<input type=\"radio\" name=\"zip\" value=\"bz2\"
                                    $onclick>&nbsp;format bz2&nbsp;".$voirnote.$fontfin."<br />";
                    if (@function_exists('gzencode')) {
                        $fontdeb="";
                        $fontfin="";
                        $onclick="";
                        $voirnote="";
                    }
                    else {
                        $fontdeb="<font color=\"#999999\">";
                        $fontfin="</font>";
                        $onclick="onclick=\"document.db_dump.zip[0].click();\"";
                        $voirnote=" (voir note)";
                    }
                    print $fontdeb."<input type=\"radio\" name=\"zip\" value=\"gz\"
                                    $onclick>&nbsp;format gzip<br />".$voirnote.$fontfin;
                    ?>
                </ul>
         </td>
        <td> <p align="center">
             <input type="submit" class="coul" value="Exécuter" />
             </p>
        </td>
    </tr>
   </table>
   </form>
<?php
   retour("sadmin_bas2.php");
?>

</html>
