Version '.MSD_VERSION.' '.MSD_VERSION_ADD.'
'.$lang['install_forcescript'].'
'.$lang['dbparameter'].'
'; if(!is_writable("config.php")) { echo ''.$lang['confignotwritable'].'
'; echo ''.$lang['tryagain'].''; echo ' '.$lang['install_tomenu'].''; } else { $tmp=file("config.php"); $stored=0; if (!isset($_POST['dbconnect'])) { // Erstaufruf - Daten aus config.php auslesen for($i=0;$i'.$lang['db_host'].': | |
'.$lang['db_user'].': | |
'.$lang['db_pass'].': | |
'; echo $lang['port'].': | '.$lang['install_help_port'].' |
'.$lang['socket'].': | '.$lang['install_help_socket'].' |
'.$lang['testconnection'].': | |
'.$lang['dbconnection'].' | |
---|---|
';
MSD_mysql_connect();
if(!$config['dbconnection']) {
echo ' '.$lang['connectionerror'].' '; } else { echo ''.$lang['connection_ok'].' '; $connection="ok"; $connstr="$dbhost|$dbuser|$dbpass|$dbport|$dbsocket"; echo ''; SearchDatabases(1); } echo ' |
'; if(isset($connection) && $connection=="ok" && !empty($databases['Name'])) { echo ''; } } break; case 2: // echo '
MySQLDumper - '.$lang['confbasic'].'
'; $tmp=@file("config.php"); $stored=0; for($i=0;$i'; echo ''; echo '
'; echo ''; } break; case 3: // if(ini_get('safe_mode')==1) $nextphase=10; else $nextphase=$phase+1; echo '
'.$lang['editconf'].'
'; echo ''; break; case 4: //Verzeichnisse if(isset($_POST['submit'])) { $ret=true; if ($fp=fopen("config.php", "wb")) { if (!fwrite($fp,stripslashes(stripslashes($_POST['configfile'])))) $ret=false; if (!fclose($fp)) $ret=false; } else $ret=false; if($ret==false) { echo ''.$lang['errorman'].' config.php '.$lang['manuell'].'.'; die; } } echo '
'.$lang['createdirs'].'
'; SetFileRechte("work/");@chmod("work",0777); SetFileRechte("work/config/");@chmod("work/config",0777); SetFileRechte("work/log/");@chmod("work/log",0777); SetFileRechte("work/backup/");@chmod("work/backup",0777); SetFileRechte("work/structure/");@chmod("work/structure",0777); $iw[0]=IsWritable("work"); $iw[1]=IsWritable("work/config"); $iw[2]=IsWritable("work/log"); $iw[3]=IsWritable("work/backup"); $iw[4]=IsWritable("work/structure"); echo ''; break; case 5: echo ''.$lang['laststep'].'
'; echo ''.$lang['installfinished'].'
'; SetDefault(true); include("language/".$language."/lang_install.php"); if(file_exists($config['paths']['config']."config.gz")) { echo ''.$lang['import1'].''; } echo '
'.$lang['import2'].''; break; case 9: clearstatcache(); $iw[0]=IsWritable("work"); $iw[1]=IsWritable("work/config"); $iw[2]=IsWritable("work/log"); $iw[3]=IsWritable("work/backup"); $iw[4]=IsWritable("work/structure"); echo '
'.$lang['ftpmode'].'
'; echo ''.$lang['safemodedesc'].'
'; echo ''; if(isset($ftp_connect)) { echo ''; $tftp=TesteFTP($install_ftp_server,$install_ftp_port,$install_ftp_user_name,$install_ftp_user_pass,$install_ftp_path); echo $tftp; echo ' | '; if(substr($tftp,-9)=="") { echo ''; } echo ' |
'.$lang['ftpmode'].'
'; if(CreateDirsFTP()==1) { SetDefault(true); echo DirectoryWarnings(); echo ''.$lang['installfinished']; if(is_writable($config['paths']['config'])) { if(file_exists($config['paths']['config']."config.gz")) { echo '
'.$lang['import1'].''; } echo '
'.$lang['import2'].''; } } break; case 20: //import echo '
'.$lang['import'].'
'; $import=importConfig($config['paths']['config']."config.gz"); if($import==0) { echo ''.$lang['import3'].'
'; SetDefault(true); echo ''.$lang['import4'].'
'; echo ''.$lang['import5'].' '.$lang['import6'].''; } elseif($import==1) { echo ''.$lang['import11'].'
'; } elseif($import==2) { echo ''.$lang['import12'].'
'; } break; break; case 21: //upload + import echo ''.$lang['import2'].'
'; echo ''; break; case 22: //posting from upload echo ''.$lang['import7'].'
'; $backlink=''.$lang['import8'].''; if (isset($_POST['upload'])) { $error=false; if (!($_FILES['upfile']['name'])) { echo "".$lang['fm_uploadfilerequest'].''.$backlink; exit; } if (file_exists($config['paths']['config'].$_FILES['upfile']['name'])) unlink($config['paths']['config'].$_FILES['upfile']['name']); if ($_FILES['upfile']['name']!='config.gz') { echo "".$lang['import9']."
".$backlink; exit; } if (move_uploaded_file($_FILES['upfile']['tmp_name'],$config['paths']['config'].$_FILES['upfile']['name'])) { chmod($config['paths']['config'].$upfile_name,0755); } else { echo "".$lang['fm_uploadmoveerror']."
".$backlink; exit; } } echo '
'.$lang['import10'].'
'; $import=importConfig($config['paths']['config']."config.gz"); if($import==0) { echo ''.$lang['import3'].'
'; SetDefault(true); echo ''.$lang['import4'].'
'; echo ''.$lang['import5'].' '.$lang['import6'].''; } elseif($import==1) { echo ''.$lang['import11'].'
'; } elseif($import==2) { echo ''.$lang['import12'].'
'; } break; case 100: //uninstall echo ''.$lang['ui1'].'
'; echo zipConfig().''; echo '
'.$lang['ui2'].'
'; echo ''.$lang['ui3'].' '; echo ''.$lang['ui4'].''; break; case 101: echo ''.$lang['ui5'].'
'; $paths=Array(); $w=substr($config['paths']['work'],0,strlen($config['paths']['work'])-1); if(is_dir($w)) $res = rec_rmdir ($w); else $res=0; // wurde das Verzeichnis korrekt gelöscht if($res==0) { // das Verzeichnis wurde korrekt gelöscht echo ''.$lang['ui6'].'
'; echo $lang['ui7']."\"".Realpfad("./")."\"
".$lang['manuell'].".
"; echo ''.$lang['ui8'].''; }else { echo '
'.$lang['ui9'].'"'.$paths[count($paths)-1].'"'; } break; } ?>