? 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/components/com_roksprocket/lib/
File Upload :
Current File : /home/admin/public_html/old/components/com_roksprocket/lib/include.php

<?php
 /**
 * @version   $Id: include.php 18123 2014-01-24 16:15:19Z jakub $
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */

if (!defined('ROKSPROCKET_LIB')) {
    define('ROKSPROCKET_LIB', 'ROKSPROCKET_LIB');

    if (!defined('ROKCOMMON_LIB_PATH')) {
        if (!defined('ROKSPROCKET_ERROR_MISSING_LIBS')) define('ROKSPROCKET_ERROR_MISSING_LIBS', true);
        return array('ROKCOMMON_LIB_PATH needs to be defined');
    }

    $rokcommon_inlcude_path = @realpath(ROKCOMMON_LIB_PATH . '/include.php');
    if (!file_exists($rokcommon_inlcude_path)) {
        if (!defined('ROKSPROCKET_ERROR_MISSING_LIBS')) define('ROKSPROCKET_ERROR_MISSING_LIBS', true);
        return array('RokSprocket needs the RokCommon library to be installed');
    }

    $included_files = get_included_files();
    if (!in_array($rokcommon_inlcude_path, $included_files) && ($libret = require_once($rokcommon_inlcude_path)) !== 'ROKCOMMON_LIB_INCLUDED') {
        if (!defined('ROKSPROCKET_ERROR_MISSING_LIBS')) define('ROKSPROCKET_ERROR_MISSING_LIBS', true);
        return $libret;
    }


    if (($loaderrors = require_once(dirname(__FILE__) . '/requirements.php')) !== true) {
        if (!defined('ROKSPROCKET_ERROR_MISSING_LIBS')) define('ROKSPROCKET_ERROR_MISSING_LIBS', true);
		roksprocket_set_admin_message('error', __('<strong>Your server doesn\'t meet RokSprocket requirements :</strong><br/><br/>') . implode("<br/>", $loaderrors));
    }

    //Do base initialization
    RokCommon_ClassLoader::addPath(dirname(__FILE__));


    function RokSprocket_exception_handler($exception)
    {
        echo "Uncaught exception: ", $exception->getMessage(), "\n";
    }

    function RokSprocket_error_handler($errno, $errstr, $errfile, $errline)
    {
        if (!(error_reporting() & $errno)) {
            // This error code is not included in error_reporting
            return;
        }

        switch ($errno) {
            case E_USER_ERROR:
                echo "<b>ERROR</b> [$errno] $errstr<br />\n";
                echo "  Fatal error on line $errline in file $errfile";
                echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")<br />\n";
                echo "Aborting...<br />\n";
                exit(1);
                break;

            case E_USER_WARNING:
                echo "<b>WARNING</b> [$errno] $errstr\n";
                break;

            case E_USER_NOTICE:
                echo "<b>NOTICE</b> [$errno] $errstr\n";
                break;
        }

        /* Don't execute PHP internal error handler */
        return true;
    }
    set_error_handler("RokSprocket_error_handler");
    set_exception_handler('RokSprocket_exception_handler');

}
return "ROKSPROCKET_LIB_INCLUDED";

T1KUS90T
  root-grov@210.1.60.28:~$