source: bureau/admin/sql_restore.php @ 104

Revision 104, 2.2 KB checked in by anarcat, 7 years ago (diff)

[project @ alternc: changeset 2003-06-10 07:20:29 by root]
suite de la mise en conformité xhtml 1.0

Original author: root
Date: 2003-06-10 07:20:31

Line 
1<?php
2/*
3 $Id: sql_restore.php,v 1.3 2003/06/10 07:20:29 root Exp $
4 ----------------------------------------------------------------------
5 AlternC - Web Hosting System
6 Copyright (C) 2002 by the AlternC Development Team.
7 http://alternc.org/
8 ----------------------------------------------------------------------
9 Based on:
10 Valentin Lacambre's web hosting softwares: http://altern.org/
11 ----------------------------------------------------------------------
12 LICENSE
13
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License (GPL)
16 as published by the Free Software Foundation; either version 2
17 of the License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 GNU General Public License for more details.
23
24 To read the license please visit http://www.gnu.org/copyleft/gpl.html
25 ----------------------------------------------------------------------
26 Original Author of file: Benjamin Sonntag
27 Purpose of file: Manage the MySQL Restore
28 ----------------------------------------------------------------------
29*/
30require_once("../class/config.php");
31
32include("head.php");
33if (!$r=$mysql->get_mysql_details($id)) {
34        $error=$err->errstr();
35}
36
37?>
38</head>
39<body>
40<h3><?php __("MySQL Databases"); ?></h3>
41<?php
42        if ($error) {
43                echo "<p class=\"error\">$error</p><p>&nbsp;</p>";
44        }
45
46if (is_array($r)) {
47?>
48</p>
49<h3><?php printf(_("Restore a SQL backup for database %s"),$r["db"]); ?></h3>
50
51<form action="sql_dorestore.php" method="post">
52<table cellspacing="0" cellpadding="4">
53<tr class="lst2">
54        <th><?php __("Please enter the filename containing SQL data to be restored."); ?></th>
55        <td><input type="text" class="int" name="restfile" size="30" maxlength="255" value="" /></td>
56</tr>
57<tr>
58<td colspan="2"><input class="inb" type="submit" name="submit" value="<?php __("Restore my database"); ?>" /></td>
59</tr>
60</table>
61</form>
62<?php
63echo "<p>";
64__("Note: If the filename ends with .gz, it will be uncompressed before.");
65echo "</p>";
66        } else {
67
68echo "<p>";
69__("You currently have no database defined");
70 echo "</p>";
71
72        }
73?>
74</body>
75</html>
Note: See TracBrowser for help on using the repository browser.