sidebar = Sidebar::render(); $this->t = PhocaGalleryUtils::setVars('in'); $this->r = new PhocaGalleryRenderAdminview(); $this->t['component_head'] = $this->t['l'].'_PHOCA_Gallery'; $this->t['component_links'] = PhocaGalleryRenderAdmin::getLinks(1); $this->t['version'] = PhocaGalleryRenderInfo::getPhocaVersion(); $this->t['enablethumbcreation'] = $params->get('enable_thumb_creation', 1 ); $this->t['paginationthumbnailcreation']= $params->get('pagination_thumbnail_creation', 0 ); $this->t['cleanthumbnails'] = $params->get('clean_thumbnails', 0 ); $this->t['enablethumbcreationstatus'] = PhocaGalleryRenderAdmin::renderThumbnailCreationStatus((int)$this->t['enablethumbcreation'], 1); //Main Function support // echo ''; $function = array('getImageSize','imageCreateFromJPEG', 'imageCreateFromPNG', 'imageCreateFromGIF', 'imageCreateFromWEBP', 'imageCreateFromAVIF', 'imageRotate', 'imageCreateTruecolor', 'imageCopyResampled', 'imageFill', 'imageColorTransparent', 'imageColorAllocate', 'exif_read_data'); $this->foutput = ''; foreach ($function as $key => $value) { if (function_exists($value)) { $bgStyle = 'class="alert alert-success"'; //$icon = 'true'; $icon = 'success'; $iconText = Text::_('COM_PHOCAGALLERY_ENABLED'); } else { $bgStyle = 'class="alert alert-error alert-danger"'; //$icon = 'false'; $icon = 'minus-circle'; $iconText = Text::_('COM_PHOCAGALLERY_DISABLED'); } $this->foutput .= ''; //$this->foutput .= ''; //$this->foutput .= ''; $this->foutput .= ''; $this->foutput .= ''; } // PICASA $this->foutput .= ''; if(!PhocaGalleryUtils::iniGetBool('allow_url_fopen')){ $bgStyle = 'class="alert alert-error alert-danger"'; $icon = 'minus-circle'; $iconText = Text::_('COM_PHOCAGALLERY_DISABLED'); } else { $bgStyle = 'class="alert alert-success"'; $icon = 'success'; $iconText = Text::_('COM_PHOCAGALLERY_ENABLED'); } $this->foutput .= ''; //$this->foutput .= ''; //$this->foutput .= ''; $this->foutput .= ''; $this->foutput .= ''; if(function_exists("curl_init")){ $bgStyle = 'class="alert alert-success"'; $icon = 'success'; $iconText = Text::_('COM_PHOCAGALLERY_ENABLED'); } else { $bgStyle = 'class="alert alert-error alert-danger"'; $icon = 'minus-circle'; $iconText = Text::_('COM_PHOCAGALLERY_DISABLED'); } if(function_exists("json_decode")){ $bgStylej = 'class="alert alert-success"'; $iconj = 'success'; $iconTextj = Text::_('COM_PHOCAGALLERY_ENABLED'); } else { $bgStylej = 'class="alert alert-error alert-danger"'; $iconj = 'minus-circle'; $iconTextj = Text::_('COM_PHOCAGALLERY_DISABLED'); } $this->foutput .= ''; //$this->foutput .= ''; //$this->foutput .= ''; $this->foutput .= ''; $this->foutput .= ''; $this->foutput .= ''; //$this->foutput .= ''; //$this->foutput .= ''; $this->foutput .= ''; $this->foutput .= ''; $this->addToolbar(); parent::display($tpl); } protected function addToolBar(){ require_once JPATH_COMPONENT.'/helpers/phocagallerycp.php'; $canDo = PhocaGalleryCpHelper::getActions(NULL); ToolbarHelper::title(Text::_('COM_PHOCAGALLERY_PG_INFO'), 'info'); // This button is unnecessary but it is displayed because Joomla! design bug $bar = Toolbar::getInstance( 'toolbar' ); $dhtml = ' '.Text::_('COM_PHOCAGALLERY_CONTROL_PANEL').''; $bar->appendButton('Custom', $dhtml); if ($canDo->get('core.admin')) { ToolbarHelper::preferences('com_phocagallery'); } ToolbarHelper::help( 'screen.phocagallery', true ); } } ?>
'.Text::_('COM_PHOCAGALLERY_FUNCTION') .' '. $value.''.JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-true.png', JText::_('COM_PHOCAGALLERY_ENABLED') ).''. JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-'.$icon.'.png', JText::_($iconText)).'
'. Text::_('COM_PHOCAGALLERY_EXTERNAL_IMAGES_SUPPORT').'
'.Text::_('COM_PHOCAGALLERY_PHP_SETTINGS_PARAM') .' allow_url_fopen ('.Text::_('COM_PHOCAGALLERY_ENABLED_IF_CURL_DISABLED') .')'.JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-true.png', JText::_('COM_PHOCAGALLERY_ENABLED') ).''. JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-'.$icon.'.png', JText::_($iconText)).'
'.Text::_('COM_PHOCAGALLERY_FUNCTION') .' cURL ('.Text::_('COM_PHOCAGALLERY_ENABLED_IF_FOPEN_DISABLED') .')'.JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-true.png', JText::_('COM_PHOCAGALLERY_ENABLED') ).''. JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-'.$icon.'.png', JText::_($iconText)).'
'.Text::_('COM_PHOCAGALLERY_FUNCTION') .' json_decode'.JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-true.png', JText::_('COM_PHOCAGALLERY_ENABLED') ).''. JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-'.$iconj.'.png', JText::_($iconTextj)).'