bug #1258956, typo
[phpmyadmin/crack.git] / server_export.php
blob0a1582de6116a2818e409d01a23500ba6f5082f7
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
6 /**
7 * Checks if the left frame has to be reloaded
8 */
9 require_once('./libraries/grab_globals.lib.php');
12 /**
13 * Does the common work
15 $js_to_run = 'functions.js';
16 require('./server_common.inc.php');
19 /**
20 * Displays the links
22 require('./server_links.inc.php');
24 /**
25 * Gets the databases list - if it has not been built yet
27 if ($server > 0 && empty($dblist)) {
28 PMA_availableDatabases();
33 <!-- Dump of a server -->
34 <?php
35 $export_page_title = $strViewDumpDatabases . "\n";
36 $multi_values = '<div align="center"><select name="db_select[]" size="6" multiple="multiple">';
37 $multi_values .= "\n";
39 foreach ($dblist AS $current_db) {
40 if (!empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))) {
41 $is_selected = ' selected="selected"';
42 } else {
43 $is_selected = '';
45 $current_db = htmlspecialchars($current_db);
46 $multi_values .= ' <option value="' . $current_db . '"' . $is_selected . '>' . $current_db . '</option>' . "\n";
47 } // end while
48 $multi_values .= "\n";
49 $multi_values .= '</select></div>';
51 $checkall_url = 'server_export.php?'
52 . PMA_generate_common_url()
53 . '&amp;goto=db_details_export.php';
55 $multi_values .= '<br />
56 <a href="' . $checkall_url . '&amp;selectall=1" onclick="setSelectOptions(\'dump\', \'db_select[]\', true); return false;">' . $strSelectAll . '</a>
57 &nbsp;/&nbsp;
58 <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;">' . $strUnselectAll . '</a>
59 <br /><br />';
61 $export_type = 'server';
62 require_once('./libraries/display_export.lib.php');
65 /**
66 * Displays the footer
68 require_once('./footer.inc.php');