<?php
global $app, $settings, $config;
if (!$config) {exit();}

$vars = [
	'path' => $this->data['relativePath'],
	'filename' => $this->data['fileName'],
	'windowId' => $_REQUEST['_popup_id'],
	'csrf' => self::getCSRFToken()
];
$page = [
	'styles' => ['basic', 'ext'],
	'scripts' => [
		'ext',
		$this->url.'/app.js?v='.$settings->currentVersion,
	],
	'jsGlobals' => [
		'FR.vars' => $vars
	]
];

require $config['path']['includes'].'/ui/page/plugin.php';