' . $lang['L_FM_UPLOADFAILED'] ); } else { if (!file_exists($config['paths']['backup'] . $_FILES['upfile']['name'])) { $extension = strrchr($_FILES['upfile']['name'], '.'); $allowedExtensions = array('.gz', '.sql', 'txt'); if (!in_array($extension, $allowedExtensions)) { $msg .= Html::getErrorMsg( $lang['L_FM_UPLOADNOTALLOWED1'] . '
' . $lang['L_FM_UPLOADNOTALLOWED2'] ); $msg .= Html::getErrorMsg($lang['L_FM_UPLOADFAILED']); } else { $upfile = $config['paths']['backup'] . $_FILES['upfile']['name']; if (@move_uploaded_file($_FILES['upfile']['tmp_name'], $upfile)) { @chmod($upfile, 0777); $msg = Html::getOkMsg( sprintf( $lang['L_FILE_UPLOAD_SUCCESSFULL'], $_FILES['upfile']['name'] ) ); } else { $msg .= Html::getErrorMsg($lang['L_FM_UPLOADMOVEERROR']); $msg .= Html::getErrorMsg($lang['L_FM_UPLOADFAILED']); } } } else { $msg .= Html::getErrorMsg($lang['L_FM_UPLOADFILEEXISTS']); $msg .= Html::getErrorMsg($lang['L_FM_UPLOADFAILED']); } }