wconfig.php 470 B

1234567891011121314151617181920
  1. <?php
  2. $config = include 'config.php';
  3. foreach($_POST as $key => $val){
  4. $config[$key] = $val;
  5. }
  6. file_put_contents('config.php', '<?php return ' . var_export($config, true) . ';');
  7. sleep(3);
  8. if(!isset($config["step"])){
  9. header('Location: info.php');
  10. }else if($config["step"] == 1){
  11. header('Location: ip.php');
  12. }else if($config["step"] == 2){
  13. header('Location: version.php');
  14. }else if($config["step"] == 3){
  15. header('Location: download.php');
  16. }
  17. ?>