%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.248 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/modules/mod_image_show_gk4/ |
Upload File : |
<?php /** * Helper class for Image Show module * * GK Tab * @package Joomla! * @Copyright (C) 2009-2011 Gavick.com * @ All rights reserved * @ Joomla! is Free Software * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html * @ version $Revision: GK4 1.0 $ **/ // access restriction defined('_JEXEC') or die('Restricted access'); // Main GK Tab class class GK4ImageShowHelper { // configuration array private $config; // module info private $module; // constructor public function __construct($module, $params) { // initialize config array $this->config = array(); // init the module info $this->module = $module; // basic settings $this->config['automatic_module_id'] = $params->get('automatic_module_id', 1); // $this->config['module_id'] = ($this->config['automatic_module_id'] == 1) ? 'gk-is-' . $module->id : $params->get('module_id', 'gk-is-1'); // $this->config['styles'] = $params->get('module_style', 'gk_coffe'); // get the JSON slides and config data $this->config['image_show_data'] = $params->get('image_show_data', '[]'); $this->config['config'] = $params->get('config', '{}'); $this->config['last_modification'] = $params->get('last_modification', 0); // parse JSON data $this->config['image_show_data'] = json_decode($this->config['image_show_data']); $this->config['config'] = json_decode($this->config['config']); // advanced $this->config['memory_limit'] = $params->get('memory_limit', '128M'); $this->config['generate_thumbnails'] = $params->get('generate_thumbnails', 1); $this->config['random_slides'] = $params->get('random_slides', 0); $this->config['use_style_css'] = $params->get('use_style_css', 1); } // function to render module code public function render() { // include style Controller require_once('styles'.DS.$this->config['styles'].DS.'controller.php'); // initialize Controller $controller_class = 'GKIS_' . $this->config['styles'] . '_Controller'; $controller = new $controller_class($this->module, $this->config); } } /* eof */