%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 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 : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/modules/mod_news_pro_gk5/admin/elements/ |
Upload File : |
<?php /** * Checkout field * @package News Show Pro GK5 * @Copyright (C) 2009-2013 Gavick.com * @ All rights reserved * @ Joomla! is Free Software * @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL * @version $Revision: GK5 1.3.3 $ **/ // access restriction defined('_JEXEC') or die('Restricted access'); jimport('joomla.form.formfield'); class JFormFieldCheckout extends JFormField { protected $type = 'Checkout'; protected function getInput() { // get the other fields params $params = new GK_Params($this->form->getFieldset()); // start the output $output = '<ul id="nsp-gk5-checkout">'; // GD library if (!(extension_loaded('gd') && function_exists('gd_info'))) { $output .= '<li>'.MOD_NEWS_PRO_GK5_PROBLEM_GD_LIB.'</li>'; } // cURL library if(!function_exists('curl_init')) { $output .= '<li>'.JText::_('MOD_NEWS_PRO_GK5_PROBLEM_CURL').'</li>'; } // cache directory permissions if(!is_writable(JPATH_ROOT . DS . 'modules' . DS . 'mod_news_pro_gk5' . DS . 'cache')) { $output .= '<li>'.JText::_('MOD_NEWS_PRO_GK5_PROBLEM_CACHE_DIR').'</li>'; } // cache time if($params->get('thumbs_cache_time') < 5) { $output .= '<li>'.JText::_('MOD_NEWS_PRO_GK5_PROBLEM_CACHE_TIME').'</li>'; } // if all is OK if($output == '<ul id="nsp-gk5-checkout">') { $output .= '<li>'.JText::_('MOD_NEWS_PRO_GK5_NO_PROBLEMS_DETECTED').'</li>'; } // close the output tags $output .= '</ul>'; return $output; } } /* Class used to get the other form fields values */ class GK_Params { private $fields; public function __construct($fields) { // initialize the fields $this->fields = $fields; } // getter public function get($param) { // iterate through all fields foreach($this->fields as $field) { // if the value is the same as the searched field ... if ( $field->name == 'jform[params]['.$param.']' || $field->name == 'jform[params]['.$param.'][]' ) { // ... return its value return $field->value; } } } } // EOF