MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.218.38.67
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /var/softaculous/lss/../phpnuke/../spip/../gpeasy/../phpdevshell/../webmail/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //var/softaculous/lss/../phpnuke/../spip/../gpeasy/../phpdevshell/../webmail/migrate.php
<?php
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\BufferedOutput;

require_once "../system/autoload.php";
\Aurora\System\Api::Init(true);

$sPassword = "pass";

set_time_limit(0);

if (!(isset($_GET['pass']) && $sPassword !== '' && $sPassword === $_GET['pass'])) {
    exit("Migration script password is incorrect or not set.");
}

class P8ToP9Migration
{
    
    public function Init()
    {
    }
    
    public function Start()
    {
        try {
            $container = \Aurora\Api::GetContainer();
            $container['console']->setAutoExit(false);

            $output = new BufferedOutput();

            $container['console']->find('migrate:eav-to-sql')
                ->run(new ArrayInput([
                    '--no-interaction'=>true,
                    '--wipe'=>!!$_GET['wipe'],
                    '--quiet'=>!!$_GET['quiet'],
                    '--migrate-file'=>!!$_GET['migrate-file'],
                ]), $output);

            $content = array_filter(explode(PHP_EOL, $output->fetch()));
            dd($content);
        } catch (\Exception $oEx) {
            dd($oEx);
            \Aurora\System\Api::LogException($oEx);
        }
    }

}
ob_start();
$oMigration = new P8ToP9Migration();
$oMigration->Start();
ob_end_flush();
exit("Done");

MMCT - 2023