$report_validator = InputValidator::createEmailValidator(true);
    $fail_action = "For assistance, please contact us at https://github.com/Akvelon2014/Media-Management-based-on-Kaltura/issues";
} else {
    $hello_message = "Thank you for installing Media Management based on Kaltura";
    $report_message = "Please provide the name of your company or organization";
    $report_error_message = "Name cannot be empty";
    $report_validator = InputValidator::createNonEmptyValidator();
    $fail_action = "For assistance, please contact us at https://github.com/Akvelon2014/Media-Management-based-on-Kaltura/issues";
}
// start user interaction
@system('clear');
logMessage(L_USER, $hello_message);
echo PHP_EOL;
// If previous installation found and the user wants to use it
if ($user->hasInput()) {
    if ($silentRun || $user->getTrueFalse(null, "A previous installation attempt has been detected, do you want to use the input you provided during you last installation?", 'y')) {
        $user->loadInput();
    }
}
$app->set('REPORT_ADMIN_EMAIL', "");
$app->set('TRACK_KDPWRAPPER', 'false');
$app->set('USAGE_TRACKING_OPTIN', 'false');
// set to replace passwords on first activiation if this installation is preinstalled
$app->set('REPLACE_PASSWORDS', $app->get('KALTURA_PREINSTALLED'));
// allow ui conf tab only for CE installation
if (strcasecmp($app->get('KALTURA_VERSION_TYPE'), K_TM_TYPE) !== 0) {
    $app->set('UICONF_TAB_ACCESS', 'SYSTEM_ADMIN_BATCH_CONTROL');
}
// verify that the installation can continue
//if (!OsUtils::verifyRootUser()) {
//	installationFailed("Installation cannot continue, you must have root privileges to continue with the installation process.",
    $report_validator = InputValidator::createEmailValidator(true);
    $fail_action = "For assistance, please contact us at https://github.com/Akvelon2014/Media-Management-based-on-Kaltura/issues";
} else {
    $hello_message = "Thank you for installing Media Management based on Kaltura";
    $report_message = "Please provide the name of your company or organization";
    $report_error_message = "Name cannot be empty";
    $report_validator = InputValidator::createNonEmptyValidator();
    $fail_action = "For assistance, please contact us at https://github.com/Akvelon2014/Media-Management-based-on-Kaltura/issues";
}
// start user interaction
@system('clear');
logMessage(L_USER, $hello_message);
echo PHP_EOL;
// If previous installation found and the user wants to use it
if ($user->hasInput()) {
    if ($silentRun || $user->getTrueFalse(null, "do you want to use the input you provided during you last update?", 'y')) {
        $user->loadInput();
    }
}
// if user wants or have to report
if ($result = strcasecmp($app->get('KALTURA_VERSION_TYPE'), K_TM_TYPE) == 0 || $user->getTrueFalse('ASK_TO_REPORT', "In order to improve Kaltura Community Edition, we would like your permission to send system data to Kaltura.\nThis information will be used exclusively for improving our software and our service quality. I agree", 'y')) {
    $email = $user->getInput('REPORT_MAIL', $report_message, $report_error_message, $report_validator, null);
    $app->set('REPORT_ADMIN_EMAIL', $email);
    $app->set('TRACK_KDPWRAPPER', 'true');
    $app->set('USAGE_TRACKING_OPTIN', 'true');
    $report = new InstallReport($email, $app->get('KALTURA_VERSION'), $app->get('INSTALLATION_SEQUENCE_UID'), $app->get('INSTALLATION_UID'));
    $report->reportInstallationStart();
} else {
    $app->set('REPORT_ADMIN_EMAIL', "");
    $app->set('TRACK_KDPWRAPPER', 'false');
    $app->set('USAGE_TRACKING_OPTIN', 'false');