source: alternc/trunk/bureau/admin/sql_dorestore.php @ 2559

Revision 2559, 1.8 KB checked in by nahuel, 4 years ago (diff)

Merging blue desktop to trunk.

RevLine 
[1]1<?php
2/*
[394]3 $Id: sql_dorestore.php,v 1.4 2004/08/31 14:25:50 anonymous Exp $
[1]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
[2559]32include_once("head.php");
33
[394]34if (!$r=$mysql->get_mysql_details($id)) {
[1]35        $error=$err->errstr();
36}
37?>
[104]38<h3><?php __("MySQL Databases"); ?></h3>
[1]39<?php
40if ($r["enabled"]) {
41?>
42<h3><?php __("Restore a SQL backup"); ?></h3>
[104]43<p>
[1]44<?php
[1527]45if (!$mysql->restore($restfile,true,$id))  {
[1]46        $error=$err->errstr();
47} else {
48        $error=_("Your database has been restored, check out the previous text for error messages.");
49}
50
[158]51echo "<p class=\"error\">$error</p><p>&nbsp;</p>";
[1]52} else {
53
54__("You currently have no database defined");
55
[158]56}
[1]57?>
[104]58</p>
[2559]59<?php include_once("foot.php"); ?>
Note: See TracBrowser for help on using the repository browser.