Linux host2.homegym.sg 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
Apache
Server IP : 159.223.38.192 & Your IP : 159.223.38.192
Domains : 20 Domain
User : eachadea
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
home /
eachadea /
public_html /
m2 /
update /
Delete
Unzip
Name
Size
Permission
Date
Action
app
[ DIR ]
drwxr-xr-x
2020-05-15 13:43
dev
[ DIR ]
drwxr-xr-x
2020-05-15 13:43
pub
[ DIR ]
drwxr-xr-x
2020-05-15 13:43
var
[ DIR ]
drwxr-xr-x
2020-05-15 13:43
vendor
[ DIR ]
drwxr-xr-x
2020-05-15 13:43
.gitignore
116
B
-rw-r--r--
2020-04-22 16:47
.htaccess
78
B
-rw-r--r--
2020-04-22 16:47
CODE_OF_CONDUCT.md
3.14
KB
-rw-r--r--
2020-04-22 16:47
CONTRIBUTING.md
4.33
KB
-rw-r--r--
2020-04-22 16:47
LICENSE.md
10.12
KB
-rw-r--r--
2020-04-22 16:47
README.md
2.5
KB
-rw-r--r--
2020-04-22 16:47
composer.json
727
B
-rw-r--r--
2020-04-22 16:47
composer.lock
84.18
KB
-rw-r--r--
2020-04-22 16:47
cron.php
2.65
KB
-rw-r--r--
2020-04-22 16:47
error_log
93
B
-rw-r--r--
2025-10-31 09:52
index.php
3.41
KB
-rw-r--r--
2020-04-22 16:47
Save
Rename
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ require_once __DIR__ . '/app/bootstrap.php'; if (PHP_SAPI != 'cli') { header('X-Frame-Options: SAMEORIGIN'); header('X-Content-Type-Options: nosniff'); if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8') === false) { $xssHeaderValue = '1; mode=block'; } else { $xssHeaderValue = '0'; } header('X-XSS-Protection: ' . $xssHeaderValue); } $status = new \Magento\Update\Status(); $isUpdateInProgress = $status->isUpdateInProgress(); $statusMessage = ''; $statusMessage .= $status->get(); $statusMessage = str_replace("\n", "<br />", $statusMessage); $queue = new \Magento\Update\Queue(); $pending = !$status->isUpdateInProgress() && !$queue->isEmpty() && !$status->isUpdateError(); if (isset($_SERVER['PATH_INFO']) && !empty($_SERVER['PATH_INFO'])) { if($_SERVER['PATH_INFO'] === '/rollback' && file_exists(MAGENTO_BP . '/var/.update_error.flag')) { try { $queue->clear(); $backupInfo = new \Magento\Update\Backup\BackupInfo(); $backupPaths = $backupInfo->getBackupFilePaths(); if (isset($backupPaths['error'])) { $status->add('WARNING: There is a problem with backup files! Performing rollback from these' . ' files may cause the Magento application to be unstable', \Psr\Log\LogLevel::WARNING); foreach ($backupPaths['error'] as $error) { $status->add($error, \Psr\Log\LogLevel::WARNING); } unset($backupPaths['error']); } foreach (array_values($backupPaths) as $backupPath) { $queue->addJobs( ['jobs' => [ 'name' => $backupPath['type'], 'params'=> ['backup_file_name' => $backupPath['filename']] ] ] ); } $status->setUpdateError(false); } catch (\Exception $e) { $status->setUpdateError(true); $status->add('Error in Rollback:' . $e->getMessage(), \Psr\Log\LogLevel::ERROR); } } elseif ($_SERVER['PATH_INFO'] === '/status') { $complete = !$status->isUpdateInProgress() && $queue->isEmpty() && !$status->isUpdateError(); if ($complete) { $status->clear(); } echo json_encode( [ 'statusMessage' => $statusMessage, 'isUpdateInProgress' => $isUpdateInProgress, 'complete' => $complete, 'error' => $status->isUpdateError(), 'pending' => $pending, ] ); } } else { if (!file_exists(MAGENTO_BP . '/app/etc/config.php') || !file_exists(MAGENTO_BP . '/app/etc/env.php')) { header('Location: ../setup'); die(); } $type = 'default'; $titles = []; $defaultHeaderTitle = 'Magento Updater'; if (file_exists(MAGENTO_BP . '/var/.type.json')) { $typeFlag = json_decode(file_get_contents(MAGENTO_BP . '/var/.type.json'), true); $headerTitle = isset($typeFlag['headerTitle']) ? $typeFlag['headerTitle'] : $defaultHeaderTitle; $titles = $typeFlag['titles']; } else { $headerTitle = $defaultHeaderTitle; } include __DIR__ . '/app/code/Magento/Update/view/templates/status.phtml'; }