home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / server_export.php < prev    next >
Encoding:
PHP Script  |  2003-11-26  |  1.8 KB  |  73 lines

  1. <?php
  2. /* $Id: server_export.php,v 2.2 2003/11/26 22:52:24 rabus Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5.  
  6. /**
  7.  * Checks if the left frame has to be reloaded
  8.  */
  9. require_once('./libraries/grab_globals.lib.php');
  10.  
  11.  
  12. /**
  13.  * Does the common work
  14.  */
  15. $js_to_run = 'functions.js';
  16. require('./server_common.inc.php');
  17.  
  18.  
  19. /**
  20.  * Displays the links
  21.  */
  22. require('./server_links.inc.php');
  23.  
  24. /**
  25.  * Gets the databases list - if it has not been built yet
  26.  */
  27. if ($server > 0 && empty($dblist)) {
  28.     PMA_availableDatabases();
  29. }
  30. ?>
  31.  
  32.  
  33. <!-- Dump of a server -->
  34. <h2>
  35.     <?php echo $strViewDumpDatabases . "\n"; ?>
  36. </h2>
  37.  
  38. <?php
  39. $multi_values = '<div align="center"><select name="db_select[]" size="6" multiple="multiple">';
  40. $multi_values .= "\n";
  41.  
  42. foreach($dblist AS $current_db) {
  43.     if (!empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))) {
  44.         $is_selected = ' selected="selected"';
  45.     } else {
  46.         $is_selected = '';
  47.     }
  48.     $current_db   = htmlspecialchars($current_db);
  49.     $multi_values .= '                <option value="' . $current_db . '"' . $is_selected . '>' . $current_db . '</option>' . "\n";
  50. } // end while
  51. $multi_values .= "\n";
  52. $multi_values .= '</select></div>';
  53.  
  54. $checkall_url = 'server_export.php?'
  55.               . PMA_generate_common_url()
  56.               . '&goto=db_details_export.php';
  57.  
  58. $multi_values .= '<br />
  59.         <a href="' . $checkall_url . '&selectall=1" onclick="setSelectOptions(\'dump\', \'db_select[]\', true); return false;">' . $strSelectAll . '</a>
  60.          / 
  61.         <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;">' . $strUnselectAll . '</a>
  62.         <br /><br />';
  63.  
  64. $export_type = 'server';
  65. require_once('./libraries/display_export.lib.php');
  66.  
  67.  
  68. /**
  69.  * Displays the footer
  70.  */
  71. require_once('./footer.inc.php');
  72. ?>
  73.