AuthShield = $AuthShield; $this->container=(null!==$container) ? $container : $AuthShield->getAppShield()->getContainer(); } /** public function auth(\UMA\JsonRpc\Request $request){ return 'admin' === $this->container->get('webfan.app.fsm.user')->getCurrentState()->getName(); } * {@inheritdoc} */ public function __invoke(\UMA\JsonRpc\Request $request): \UMA\JsonRpc\Response { $params = $request->params(); $AppShield = $this->AuthShield->getAppShield(); $config = $AppShield->config->export(); $configFile = rtrim($AppShield->config->wsdir, \DIRECTORY_SEPARATOR.' ').\DIRECTORY_SEPARATOR.$AppShield::CONFIG_FILENAME; $versionFile = rtrim($AppShield->config->wsdir, \DIRECTORY_SEPARATOR.' ').\DIRECTORY_SEPARATOR.$AppShield::VERSION_FILENAME; //$workspacesFile = \webfan\hps\patch\Fs::getRootDir($_SERVER['DOCUMENT_ROOT']).\DIRECTORY_SEPARATOR.$AppShield::WORKSPACES_FILENAME; $workspacesFile =rtrim($AppShield->config->wsdir, \DIRECTORY_SEPARATOR.' ').\DIRECTORY_SEPARATOR.$AppShield::WORKSPACES_FILENAME; $t = time(); /* if(!file_exists( \webfan\hps\patch\Fs::getRootDir($_SERVER['DOCUMENT_ROOT']).\DIRECTORY_SEPARATOR.self::WORKSPACES_FILENAME) )return false; if(!file_exists( rtrim($this->config->wsdir, \DIRECTORY_SEPARATOR.' ').\DIRECTORY_SEPARATOR.self::CONFIG_FILENAME) )return false; if(!file_exists( rtrim($this->config->wsdir, \DIRECTORY_SEPARATOR.' ').\DIRECTORY_SEPARATOR.self::VERSION_FILENAME) )return false; */ if( 'prepared' !== $this->container->get('webfan.app.fsm')->getCurrentState()->getName() ){ return new \UMA\JsonRpc\Error($request->id(), 'Webfan Php-Installer is installed allready or not prepared (check `system` settings)!'); } if(!file_exists( $workspacesFile) ){ $e = var_export([ ucfirst(basename($AppShield->config->wsdir)) => [ 'DIR'=>$AppShield->config->wsdir, ], ], true); $banner = <<getStub()->_run_php_1($AppShield->getStub()->get_file($AppShield->getStub()->document, '$HOME/version_config.php', 'stub version_config.php')), true); $banner = <<id(), true); } public function getSpec(): ?\stdClass { return \json_decode(<<<'JSON' { "$schema": "https://json-schema.org/draft-07/schema#", "type": ["object"], "properties": { }, "required" : [], "additionalProperties": true } JSON ); } } __halt_compiler();----SIGNATURE:----RowhSOouwmed+daIoIR9pvHbEPin/mF00hc3vzsWvwnfjkNWyLpt/rwmqskYFhO3OCkeU0+/+MDzaISC2bz3iBZHf9PyeI+X77bMS6m60Ghv2b/X1REwcMr/LErBx/XAnMyGVU3kR2951ciGuaIOSDhpl8mdyozbDNTe74v9/v06NQgVxvcFDSOgs2E6qvkf3eDsHdE/XsxApE+7rMMZnnG7g6lr4XSjqfk5Pb6kBvuC+LXPmN5pbDf7hKVSN/meK7qbCooOAOmF975B4MtgKhtP7AL4IiD6r2IWhwTrfIL81tlXF1wpxQTxvpabzbGiCtjPoM0lsbDu0OXW2OG0IQPQv2aSnNLiYvF/k2iB4Of6xoK2FcOh/S5tkE3TOYzDeVn0bnApcNSdpB2YEsppOGuWasabiM3vYTKQZRaU/IZB0Ec6b30gvz5xVhoE8n7G76b6l+MbMRBAaikPDMYCT20WCfZtgKTPAHWBtV6ebHvSRPDcPLr4yPnOM7vOrApqXyiQhKxc5sayatE6tWvU9+TreSV7hLklB99+N5dnCvHEcy8Pz01hyMyoIZkss+wteDhI8XnLD7M/9bf4U5o11cWpVpUp1TULrJYTLQMV/ECMppz9yobJDUo5aeDGCk6r9WIYKHHeFdkmBUtGoGYNSWibMeOoJ+coIZ7zr7YGHTc=----ATTACHMENT:----ODY3MzU1MDIxNjAxMTUxNiA5MjMxNzMwMTYwNDYzNjY2IDkyNjQ2MjgxODUwNjc0MjU=