do_config_export($_POST['db_type'], $_POST['db_server'], $_POST['db_user'], $_POST['db_pass'], $_POST['db_name'], $_POST['db_prefix']);
     }
     $no_config = !file_exists($_path . 'config.php') ? false : true;
     $writeable_path = is_writable($_path) ? true : false;
     echo gettpl('configs.html');
     break;
 case 'check':
     $submit_disabled = $no_connection = $mysql_ver = false;
     //config,php
     if (isset($dbname) && isset($dbuser)) {
         //connect .. for check
         $SQL = new SSQL($dbserver, $dbuser, $dbpass, $dbname);
         if (!$SQL->connect_id) {
             $no_connection = true;
         } else {
             if (version_compare($SQL->mysql_version(), MIN_MYSQL_VERSION, '<')) {
                 $mysql_ver = $SQL->mysql_version();
             }
         }
     }
     //try to chmod them
     if (function_exists('chmod')) {
         @chmod($_path . 'cache', 0777);
         @chmod($_path . 'uploads', 0777);
         @chmod($_path . 'uploads/thumbs', 0777);
     }
     echo gettpl('check_all.html');
     break;
 case 'data':
     if (isset($_POST['datasubmit'])) {
         //check data ...