update
[phpmyadmin/crack.git] / server_export.php3
blob5b30c3a771de829a1759770b86a7c3ea87a8320d
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('./libraries/grab_globals.lib.php3');
12 /**
13 * Does the common work
15 $js_to_run = 'functions.js';
16 require('./server_common.inc.php3');
19 /**
20 * Displays the links
22 require('./server_links.inc.php3');
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 <h2>
35 <?php echo $strViewDumpDatabases . "\n"; ?>
36 </h2>
38 <?php
39 $multi_values = '<div align="center"><select name="db_select[]" size="6" multiple="multiple">';
40 $multi_values .= "\n";
42 reset($dblist);
43 while (list(, $current_db) = each($dblist)) {
44 if (!empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))) {
45 $is_selected = ' selected="selected"';
46 } else {
47 $is_selected = '';
49 $current_db = htmlspecialchars($current_db);
50 $multi_values .= ' <option value="' . $current_db . '"' . $is_selected . '>' . $current_db . '</option>' . "\n";
51 } // end while
52 $multi_values .= "\n";
53 $multi_values .= '</select></div>';
55 $checkall_url = 'server_export.php3?'
56 . PMA_generate_common_url()
57 . '&amp;goto=db_details_export.php3';
59 $multi_values .= '<br />
60 <a href="' . $checkall_url . '&amp;selectall=1" onclick="setSelectOptions(\'dump\', \'db_select[]\', true); return false;">' . $strSelectAll . '</a>
61 &nbsp;/&nbsp;
62 <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;">' . $strUnselectAll . '</a>
63 <br /><br />';
65 $export_type = 'server';
66 require('./libraries/display_export.lib.php3');
69 /**
70 * Displays the footer
72 require('./footer.inc.php3');