17,6 → 17,12 |
public function display () { |
$content = $this->page->getEditorContent($this); |
|
require(dirname(__FILE__) . "/../config.php"); |
|
if (isset($config['executeOnlyFromScriptsPath']) && $config['executeOnlyFromScriptsPath']) { |
$content = "content/scripts/" . trim(str_replace("/", "", str_replace("content/scripts/", "", $content))); |
} |
|
if ($content == "" || $content == null || !file_exists(trim(Settings::getInstance()->get("root") . $content))) { |
echo Language::DirectTranslate("plugin_phppage_not-found"); |
} else { |