Extracting to '.realpath('.');
$zip = new ZipArchive();
$res = $zip->open('master.zip');
if ($res === true) {
$zip->extractTo(realpath('.'));
$zip->close();
}
unlink($folder.'index.php');
$files = scandir('easySITE-master');
$oldfolder = $folder;
$newfolder = realpath('.').'/';
foreach ($files as $fname) {
if ($fname != '.' && $fname != '..') {
rename($oldfolder.$fname, $newfolder.$fname);
}
}
deleteDir('easySITE-master');
echo '
Integrating System(This might take some time)...';
unlink('index.php');
$wordpressindex = "
The installation is complete, you may now check it out by adding the ?adm123 tag!!';
}
?>