Deutschland United States United Kingdom
ContentLion - Open Source CMS

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2 Rev 3
Line 14... Line 14...
14
        return "";
14
        return "";
15
    }
15
    }
16
   
16
   
17
    public function display () {
17
    public function display () {
18
        $content = $this->page->getEditorContent($this);
18
        $content = $this->page->getEditorContent($this);
-
 
19
       
-
 
20
        require(dirname(__FILE__) . "/../config.php");
-
 
21
       
-
 
22
        if (isset($config['executeOnlyFromScriptsPath']) && $config['executeOnlyFromScriptsPath']) {
-
 
23
            $content = "content/scripts/" . trim(str_replace("/", "", str_replace("content/scripts/", "", $content)));
-
 
24
        }
19
       
25
       
20
        if ($content == "" || $content == null || !file_exists(trim(Settings::getInstance()->get("root") . $content))) {
26
        if ($content == "" || $content == null || !file_exists(trim(Settings::getInstance()->get("root") . $content))) {
21
            echo Language::DirectTranslate("plugin_phppage_not-found");
27
            echo Language::DirectTranslate("plugin_phppage_not-found");
22
        } else {
28
        } else {
23
            $args = array('is_included' => true);
29
            $args = array('is_included' => true);