diff options
author | Michal Čihař <mcihar@suse.cz> | 2011-07-22 11:53:41 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2011-07-22 11:53:41 +0400 |
commit | 3f8badd37f3e7ea78a718660e615ecf1c856e2f0 (patch) | |
tree | 7ef1314e3bc8b5308657ade9dae80f7b5738b751 /setup | |
parent | b8d5cee5d7dd90aecdd109da06b3f7e4cbf8ea08 (diff) |
Replace tabs with spaces, cleanup identation
Diffstat (limited to 'setup')
-rw-r--r-- | setup/config.php | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/setup/config.php b/setup/config.php index 193b57fd2d..5333cb0f83 100644 --- a/setup/config.php +++ b/setup/config.php @@ -26,34 +26,34 @@ if (isset($_POST['eol'])) { } if (PMA_ifSetOr($_POST['submit_clear'], '')) { - // - // Clear current config and return to main page - // - ConfigFile::getInstance()->resetConfigData(); + // + // Clear current config and return to main page + // + ConfigFile::getInstance()->resetConfigData(); // drop post data header('HTTP/1.1 303 See Other'); header('Location: index.php'); exit; } elseif (PMA_ifSetOr($_POST['submit_download'], '')) { - // - // Output generated config file - // + // + // Output generated config file + // header('Content-Type: text/plain'); header('Content-Disposition: attachment; filename="config.inc.php"'); echo ConfigGenerator::getConfigFile(); exit; } elseif (PMA_ifSetOr($_POST['submit_save'], '')) { - // - // Save generated config file on the server - // + // + // Save generated config file on the server + // file_put_contents($config_file_path, ConfigGenerator::getConfigFile()); header('HTTP/1.1 303 See Other'); header('Location: index.php?action_done=config_saved'); exit; } elseif (PMA_ifSetOr($_POST['submit_load'], '')) { - // - // Load config file from the server - // + // + // Load config file from the server + // $cfg = array(); require_once $config_file_path; ConfigFile::getInstance()->setConfigData($cfg); @@ -61,17 +61,17 @@ if (PMA_ifSetOr($_POST['submit_clear'], '')) { header('Location: index.php'); exit; } elseif (PMA_ifSetOr($_POST['submit_delete'], '')) { - // - // Delete config file on the server - // + // + // Delete config file on the server + // @unlink($config_file_path); header('HTTP/1.1 303 See Other'); header('Location: index.php'); exit; } else { - // - // Show generated config file in a <textarea> - // + // + // Show generated config file in a <textarea> + // header('HTTP/1.1 303 See Other'); header('Location: index.php?page=config'); exit; |