Menu

[r15]: / administration / phpmyadmin.php  Maximize  Restore  History

Download this file

156 lines (134 with data), 5.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
/*
** Application name: phpCollab
** Last Edit page: 06/09/2004
** Path by root: ../administration/phpmyadmin.php
** Authors: Ceam / Fullo
**
** =============================================================================
**
** phpCollab - Project Managment
**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: phpmyadmin.php
**
** DESC: Screen: dump restore main db page (for mysql)
**
** HISTORY:
** 2003-10-23 - added new document info
** 2004-09-06 - xhtml
** -----------------------------------------------------------------------------
** TO-DO:
** move to the render engine
**
** =============================================================================
*/
$checkSession = "true";
include_once('../includes/library.php');
if ($profilSession != "0") {
headerFunction('../general/permissiondenied.php?'.session_name().'='.session_id());
exit;
}
$setTitle .= " : DB Administration";
include('../themes/'.THEME.'/header.php');
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?",$strings["administration"],in));
$blockPage->itemBreadcrumbs($strings["database"]." ".MYDATABASE);
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->heading($strings["database"]." ".MYDATABASE);
$block1->openContent();
$block1->contentTitle("Backup database");
echo "<tr class='odd'><td valign='top' class='leftvalue'>&nbsp;</td><td>
<script src='../includes/phpmyadmin/functions.js' type='text/javascript' language='javascript'></script>
<form method='post' action='../includes/phpmyadmin/tbl_dump.php' name='db_dump'>
<table>
<tr>
<td>
<select name='table_select[]' size='5' multiple='multiple'>";
sort($tableCollab);
while(list ($key, $val) = each ($tableCollab)) {
echo "<option value='$val' selected>$val</option>";
}
echo "</select>
</td>
<td valign='middle'>
<input type='radio' name='what' value='structure' />
Structure only<br />
<input type='radio' name='what' value='data' checked='checked' />
Structure and data<br />
<input type='radio' name='what' value='dataonly' />
Data only
</td>
</tr>
<tr>
<td colspan='2'>
<input type='checkbox' name='drop' value='1' checked='checked' />
Add 'drop table'
</td>
</tr>
<tr>
<td colspan='2'>
<input type='checkbox' name='showcolumns' value='yes' />
Complete inserts
</td>
</tr>
<tr>
<td colspan='2'>
<input type='checkbox' name='extended_ins' value='yes' />
Extended inserts
</td>
</tr>
<tr>
<td colspan='2'>
<input type='checkbox' name='use_backquotes' value='1' />
Use backquotes with tables and fields' names
</td>
</tr>
<tr>
<td colspan='2'>
<input type='checkbox' name='asfile' value='sendit' onclick=\"return checkTransmitDump(this.form, 'transmit')\" checked='checked' />
Save as file
(
<input type='checkbox' name='zip' value='zip' onclick=\"return checkTransmitDump(this.form, 'zip')\" />'zipped'&nbsp;
<input type='checkbox' name='gzip' value='gzip' onclick=\"return checkTransmitDump(this.form, 'gzip')\" />'gzipped'
)
</td>
</tr>
<tr>
<td colspan='2'>
<input type='submit' value='Go' />
</td>
</tr>
</table>
<input type='hidden' name='server' value='1' />
<input type='hidden' name='lang' value='en' />
<input type='hidden' name='db' value='".MYDATABASE."' />
</form>
".$blockPage->buildLink("http://phpwizard.net/projects/phpMyAdmin","phpMyAdmin",powered)."</a></td></tr>";
$block1->contentTitle("Restore database from sql file");
echo "<tr class='odd'><td valign='top' class='leftvalue'>&nbsp;</td><td>
<form method='post' action='../includes/phpmyadmin/read_dump.php' enctype='multipart/form-data'>
<input type='hidden' name='is_js_confirmed' value='0' />
<input type='hidden' name='lang' value='en' />
<input type='hidden' name='server' value='1' />
<input type='hidden' name='db' value='".MYDATABASE."' />
<input type='hidden' name='pos' value='0' />
<input type='hidden' name='goto' value='db_details.php' />
<input type='hidden' name='zero_rows' value='Your SQL-query has been executed successfully' />
<input type='hidden' name='prev_sql_query' value='' /><br />
Location of sql file&nbsp;:<br />
<div style='margin-bottom: 5px'>
<input type='file' name='sql_file' /><br />
</div>
<input type='submit' name='SQL' value='Go' />
</form>
".$blockPage->buildLink("http://phpwizard.net/projects/phpMyAdmin","phpMyAdmin",powered)."</a>
</td></tr>";
$block1->closeContent();
include('../themes/'.THEME.'/footer.php');
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.