PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/jairosvt/public_html/afmedios.com/plugins/system/
Server: Linux server2.noticiasdecolima.com 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64
IP: 107.161.180.42
Choose File :

Url:
Dir : /home/jairosvt/public_html/afmedios.com/plugins/system/resosco.php

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
class  plgSystemResosco extends JPlugin {
   function plgSystemResosco(&$subject, $config) {
      parent::__construct($subject, $config);
      $this->loadLanguage();
   }

   function onAfterInitialise() {
      if (!ResoscoPluginHelper::authorize()) {
         return false;
      }
      $base = JURI::base();
      $js = "
var BBG_monthes = new Array();   
BBG_monthes[0] = '" . JText::_('January', 1) . "';
BBG_monthes[1] = '" . JText::_('February', 1)  . "';
BBG_monthes[2] = '" . JText::_('March', 1)  . "';
BBG_monthes[3] = '" . JText::_('April', 1)  . "';
BBG_monthes[4] = '" . JText::_('May', 1)  . "';
BBG_monthes[5] = '" . JText::_('June', 1)  . "';
BBG_monthes[6] = '" . JText::_('July', 1)  . "';
BBG_monthes[7] = '" . JText::_('August', 1)  . "';
BBG_monthes[8] = '" . JText::_('September', 1)  . "';
BBG_monthes[9] = '" . JText::_('October', 1)  . "';
BBG_monthes[10] = '" . JText::_('November', 1)  . "';
BBG_monthes[11] = '" . JText::_('December', 1)  . "';
      ";
      
      $js .= "
var BBG_settings = new Array();
      ";
      
      $doc = &JFactory::getDocument();
      $doc->addScriptDeclaration($js);
      
      JHTML::script('script.js', 'components/com_resosco/assets/js/', 1);
      JHTML::script('scroller.js', 'components/com_resosco/assets/js/', 1);
      
      JHTML::stylesheet('match.css', 'components/com_resosco/assets/css/');
      JHTML::stylesheet('matches.css', 'components/com_resosco/assets/css/');
      JHTML::stylesheet('box.css', 'components/com_resosco/assets/css/');
      JHTML::stylesheet('noedit.css', 'components/com_resosco/assets/css/');
   }
}

class ResoscoPluginHelper {
   function authorize() {
      $mainframe = JFactory::getApplication();
      if ($mainframe->isAdmin()) {
         return false;
      }
      $document   =& JFactory::getDocument();
      $doctype = $document->getType();
      if ($doctype !== 'html') {
         return false;
      }
      return true;
   }
}