File manager - Edit - /home/jardides/www/Jardi-design/old/administrator/components/com_pagebuilderck/controllers/library.php
Back
<?php /** * @name Template Creator CK * @copyright Copyright (C) since 2011. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr */ // No direct access defined('_JEXEC') or die; use Pagebuilderck\CKController; use Pagebuilderck\CKFof; class PagebuilderckControllerLibrary extends CKController { function __construct() { parent::__construct(); } /** * Load the needed interface * * @return void */ public function load() { // security check CKFof::checkAjaxToken(); $page = $this->input->get('path', '', 'string'); if (! $page) return; $section = explode('/', $page); $section = $section[0]; // $this->interface = new CKInterface(); $file = PAGEBUILDERCK_PATH . '/libraries/' . $page; $content = file_get_contents($file); $json = json_decode($content); if (! isset($json->htmlcode)) echo 'error'; // replace vars to allow data to be moved from another server $htmlcode = $json->htmlcode; $htmlcode = str_replace("|URIROOT|", JUri::root(true), $htmlcode); $htmlcode = str_replace("|URIBASE|", PAGEBUILDERCK_URI_ROOT, $htmlcode); $htmlcode = str_replace("|PBCK_COMPONENT|", "components/com_pagebuilderck", $htmlcode); $htmlcode = str_replace("|PBCK_ADMIN_COMPONENT|", "administrator/components/com_pagebuilderck", $htmlcode); $htmlcode = str_replace("|IMPORTFOLDER|", 'administrator/components/com_pagebuilderck/libraries/' . $section, $htmlcode); echo $htmlcode; exit; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings