? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/board/tmp/install_52baa58b62272/admin/views/cssedit/
File Upload :
Current File : /home/admin/public_html/old/board/tmp/install_52baa58b62272/admin/views/cssedit/view.html.php

<?php
// $HeadURL: https://joomgallery.org/svn/joomgallery/JG-2.0/JG/trunk/administrator/components/com_joomgallery/views/cssedit/view.html.php $
// $Id: view.html.php 3651 2012-02-19 14:36:46Z mab $
/****************************************************************************************\
**   JoomGallery 2                                                                      **
**   By: JoomGallery::ProjectTeam                                                       **
**   Copyright (C) 2008 - 2012  JoomGallery::ProjectTeam                                **
**   Based on: JoomGallery 1.0.0 by JoomGallery::ProjectTeam                            **
**   Released under GNU GPL Public License                                              **
**   License: http://www.gnu.org/copyleft/gpl.html or have a look                       **
**   at administrator/components/com_joomgallery/LICENSE.TXT                            **
\****************************************************************************************/

defined('_JEXEC') or die('Direct Access to this location is not allowed.');

jimport( 'joomla.application.component.view' );

/**
 * HTML View class for the CSS edit view
 *
 * @package JoomGallery
 * @since   1.5.5
 */
class JoomGalleryViewCssedit extends JoomGalleryView
{
  /**
   * HTML view display method
   *
   * @access  public
   * @param   string  $tpl  The name of the template file to parse
   * @return  void
   * @since   1.5.5
   */
  function display($tpl = null)
  {
    jimport('joomla.filesystem.file');

    $path   = JPATH_ROOT.DS.'media'.DS.'joomgallery'.DS.'css'.DS;
    $title  = JText::_('COM_JOOMGALLERY_CSSMAN_CSS_MANAGER');
    if(JFile::exists($path.'joom_local.css'))
    {
      $title .= ' ('.JText::_('COM_JOOMGALLERY_COMMON_TOOLBAR_EDIT').')';

      JToolBarHelper::deleteList(JText::_('COM_JOOMGALLERY_CSSMAN_CSS_CONFIRM_DELETE', true), 'remove', 'COM_JOOMGALLERY_CSSMAN_TOOLBAR_DELETE_CSS');

      $file = $path.'joom_local.css';

      if(!is_writable($file))
      {
        JError::raiseNotice(111, JText::_('COM_JOOMGALLERY_CSSMAN_CSS_WARNING_PERMS'));
      }

      $edit = true;
    }
    else
    {
      $title .= ' ('.JText::_('COM_JOOMGALLERY_COMMON_TOOLBAR_NEW').')';

      $file = $path.'joom_local.css.README';

      if(!is_writable($path))
      {
        JError::raiseNotice(111, JText::_('COM_JOOMGALLERY_CSSMAN_CSS_WARNING_PERMS'));
      }

      $edit = false;
    }

    JToolBarHelper::title($title, 'config');
    JToolBarHelper::apply('apply');
    JToolBarHelper::save('save');
    JToolBarHelper::divider();
    JToolbarHelper::custom('cpanel', 'options.png', 'options.png', 'COM_JOOMGALLERY_COMMON_TOOLBAR_CPANEL', false);
    JToolbarHelper::spacer();

    $content =  JFile::read($file);
    if($content === false)
    {
      // Unable to read the file
      JError::raiseWarning(111, JText::_('COM_JOOMGALLERY_CSSMAN_CSS_ERROR_READING') . $file);
    }
    else
    {
      $content = htmlspecialchars($content, ENT_QUOTES, 'UTF-8');
    }

    $file = $path.'joom_local.css';

    $this->assignRef('content', $content);
    $this->assignRef('edit',    $edit);
    $this->assignRef('file',    $file);

    parent::display($tpl);
  }
}

T1KUS90T
  root-grov@210.1.60.28:~$