= 7.4 if (version_compare(phpversion(), '7.4', '<')) { die('The Nameless Installer requires PHP version 7.4 or better. Install normally from https://namelessmc.com/downloads if you do not have PHP 7.4 yet.'); } $version = $_GET['ver'] ?? 'null'; $step = $_GET['step'] ?? 'welcome'; $zip_url = ''; $zip_file = 'namelessmc-' . $version . '.zip'; // These will need to be updated with each NMC release $zip_subdir = $version == 'v1' ? 'Nameless-1.0.21' : 'Nameless-2.0.0-pr13'; // Recursively copy a directory to another location. Used after extraction of the zip file function moveDirectory($source, $dest) { $result = false; if (is_file($source)) { if ($dest[strlen($dest) - 1] == '/') { if (!file_exists($dest)) cmfcDirectory::makeAll($dest, 0755, true); $__dest = $dest . "/" . basename($source); } else $__dest = $dest; $result = copy($source, $__dest); chmod($__dest, 0755); } elseif (is_dir($source)) { if ($dest[strlen($dest) - 1] == '/' && $source[strlen($source) - 1] != '/') { $dest = $dest . basename($source); mkdir($dest); } else mkdir($dest, 0755); $dirHandle = opendir($source); while ($file = readdir($dirHandle)) { if ($file != "." && $file != "..") { $__dest = $dest . "/" . $file; $result = moveDirectory($source . "/" . $file, $__dest); } } closedir($dirHandle); } else $result = false; return $result; } // Used to delete the original extracted zip dir function deleteDirectory($dir) { if (!file_exists($dir)) return true; if (!is_dir($dir)) return unlink($dir); foreach (scandir($dir) as $item) { if ($item == '.' || $item == '..') continue; if (!deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) return false; } return rmdir($dir); } // Used to display errors function showError($message) { ?>

[ERROR]:

If this continues to happen, contact support in our Discord.

Click here to try again.

[WARNING]:

[DEBUG]:

Something minor went wrong, but you can continue. Click here.


Easy Install • NamelessMC


Easy Install • NamelessMC

Step:

Version:


[ERROR]: allow_url_fopen is blocked in your php.ini file. Please set this to 1 to continue with the Easy Installer.

If you cannot change this value, you can use an alternative download from here.

[ERROR]: The ZipArchive class does not exist. Please ensure you have the zip extension enabled to continue with the Easy Installer.

If you cannot install this extension, you can use an alternative download from here.

Welcome to NamelessMC!

This script will download and extract NamelessMC for you.

In the next step we will choose which version of NamelessMC to install.

Continue »

Now you must choose which version of NamelessMC you want to install.

NamelessMC has two versions: v1 (1.0.21) and v2 (pr13).

v2 is recommended by NamelessMC developers as it is a complete rewrite and provides many more functionalities - such as modules, widgets and beautiful templates.


Legacy
NamelessMC v1.0.21
v1.0.21
Recommended
NamelessMC v2.0.0-pr13
v2.0.0-pr13

NamelessMC will now download and extract itself.

It will automatically refresh, so please do not reload the page.

Click here to proceed.

STANDBY
open($zip_file)) { $zip->extractTo('./'); $zip->close(); $redirect = true; showDebugging("Success extracting zip file..."); // If moving the directory failed, there may have been a corrupt file within it (uncommon) if (moveDirectory($zip_subdir, '.')) { showDebugging("Success copying files from zip to root directory..."); // If deleting the unzipped directory fails, it might have already been deleted..? if (deleteDirectory($zip_subdir)) showDebugging("Success deleting extracted zip..."); else { showWarning("NamelessMC extracted folder could not be deleted, but it safe to continue."); $redirect = false; } // If deleting the zip fails, it is probably a weird permission issue if (unlink($zip_file)) showDebugging("Success deleting zip file..."); else { showWarning("NamelessMC zip file could not be deleted, but it is safe to continue."); $redirect = false; } // If a warning happened, they can continue, but we let them know. If not, we just redirect them if (!$redirect) minorWarning(); else header('Location: ./'); } else showError("NamelessMC could not be moved from the extracted folder."); } else showError("NamelessMC archive could not be extracted/opened."); break; } default: // Invalid path: Direct to main screen header('Location: ./easy-install.php'); } // Back button only on certain pages if ($step != 'welcome' && $step != 'download') { ?>

Nameless-Installer | Version: 1.0.4