$dh = opendir($config['paths']['backup']); while (false !== ($filename = readdir($dh))) { if ($filename != "." && $filename != ".." && !is_dir($config['paths']['backup'] . $filename)) { $files[] = $filename; $Sum_Files++; $Sum_Size += filesize($config['paths']['backup'] . $filename); $ft = filectime($config['paths']['backup'] . $filename); if (!isset($Last_BU[2]) || isset($Last_BU[2]) && $ft > $Last_BU[2]) { $Last_BU[0] = $filename; $Last_BU[1] = date("d.m.Y H:i", $ft); $Last_BU[2] = $ft; } } } $status = '<h5>' . $lang['Statusinformationen'] . '</h5>'; $status .= DirectoryWarnings(); //Versionen $status .= '<h6>' . $lang['Versionsinformationen'] . '</h6>'; $status .= 'MySQLDumper-Version: <strong>' . MSD_VERSION . ' ' . MSD_VERSION_ADD . '</strong><br>'; $status .= 'OS: <strong>' . MSD_OS . '</strong> (' . MSD_OS_EXT . ')<br>'; $status .= 'Browser: <img src="images/' . $BrowserIcon . '" hspace="8" alt=""><strong>' . MSD_BROWSER_AGENT . ' Version ' . MSD_BROWSER_VERSION . '</strong><br>'; $status .= 'MySQL-Version: <strong>' . MSD_MYSQL_VERSION . '</strong><br>'; $status .= 'PHP-Version: <strong>' . PHP_VERSION . '</strong> Speicher: <strong>' . $config['ram'] . ' MB</strong> ' . ($config['zlib'] ? '' : '<span class="error"> ' . $lang['phpbug'] . '. </span>') . $sm . ' '; $status .= 'Max Execution Time: <strong>' . $config['max_execution_time'] . ' sec.</strong> <a style="text-decoration:underline;" href="main.php?action=phpinfo">[PHP-Info]</a> '; $status .= '<br>PHP-Extensions: <span class="small">' . $config['phpextensions'] . '</span>'; if ($config['disabled'] != "") { $status .= '<br>' . $lang['disabledfunctions'] . ': <span class="error">' . $config['disabled'] . '</span>'; } if (!extension_loaded("ftp")) { $status .= '<br><span class="error">' . $lang['noftppossible'] . '</span>'; }
<input type="hidden" name="install_ftp_user_name" value="' . $install_ftp_user_name . '"> <input type="hidden" name="install_ftp_user_pass" value="' . $install_ftp_user_pass . '"> <input type="hidden" name="install_ftp_path" value="' . $install_ftp_path . '">'; echo '<input type="submit" name="submit" value=" ' . $lang['L_CREATEDIRS2'] . ' " class="Formbutton"></form>'; } echo '</td></tr></table>'; } //echo '</td></tr>'; //echo '</table>'; break; case 11: //FTP-Create Dirs echo '<h6>' . $lang['L_FTPMODE'] . '</h6>'; if (CreateDirsFTP() == 1) { SetDefault(true); echo DirectoryWarnings(); echo '<br>' . $lang['L_INSTALLFINISHED']; } break; case 100: //uninstall echo '<h6>' . $lang['L_UI1'] . '</h6>'; echo '<h6>' . $lang['L_UI2'] . '</h6>'; echo '<a href="install.php">' . $lang['L_UI3'] . '</a> '; echo '<a href="install.php?language=' . $language . '&phase=101">' . $lang['L_UI4'] . '</a>'; break; case 101: echo '<h6>' . $lang['L_UI5'] . '</h6>'; $paths = array(); $w = substr($config['paths']['work'], 0, strlen($config['paths']['work']) - 1); if (is_dir($w)) {
// find latest backup file $dh = opendir($config['paths']['backup']); while (false !== ($filename = readdir($dh))) { if ($filename != '.' && $filename != '..' && !is_dir($config['paths']['backup'] . $filename)) { $files[] = $filename; $Sum_Files++; $Sum_Size += filesize($config['paths']['backup'] . $filename); $ft = filectime($config['paths']['backup'] . $filename); if (!isset($Last_BU[2]) || isset($Last_BU[2]) && $ft > $Last_BU[2]) { $Last_BU[0] = $filename; $Last_BU[1] = date("d.m.Y H:i", $ft); $Last_BU[2] = $ft; } } } $directory_warnings = DirectoryWarnings(); $tpl = new MSDTemplate(); $tpl->set_filenames(array('show' => 'tpl/home/home.tpl')); $tpl->assign_vars(array('THEME' => $config['theme'], 'MSD_VERSION' => MSD_VERSION, 'OS' => MSD_OS, 'OS_EXT' => MSD_OS_EXT, 'MYSQL_VERSION' => MSD_MYSQL_VERSION, 'PHP_VERSION' => PHP_VERSION, 'MEMORY' => byte_output($config['php_ram'] * 1024 * 1024), 'MAX_EXECUTION_TIME' => $config['max_execution_time'], 'PHP_EXTENSIONS' => $config['phpextensions'], 'SERVER_NAME' => $_SERVER['SERVER_NAME'], 'MSD_PATH' => $config['paths']['root'], 'DB' => $databases['db_actual'], 'NR_OF_BACKUP_FILES' => $Sum_Files, 'SIZE_BACKUPS' => byte_output($Sum_Size), 'FREE_DISKSPACE' => MD_FreeDiskSpace())); if ($directory_warnings > '') { $tpl->assign_block_vars('DIRECTORY_WARNINGS', array('MSG' => $directory_warnings)); } if ($config['disabled'] > '') { $tpl->assign_block_vars('DISABLED_FUNCTIONS', array('PHP_DISABLED_FUNCTIONS' => str_replace(',', ', ', $config['disabled']))); } // Zlib is buggy from version 4.3.0 upto 4.3.2, so lets check for these versions if (version_compare(PHP_VERSION, '4.3.0', '>=') && version_compare(PHP_VERSION, '4.3.2', '<=')) { $tpl->assign_block_vars('ZLIBBUG', array()); } if (!extension_loaded('ftp')) { $tpl->assign_block_vars('NO_FTP', array());