%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.248 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/components/com_kunena/ |
Upload File : |
<?php /** * Kunena Component * @package Kunena.Site * * @copyright (C) 2008 - 2014 Kunena Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @link http://www.kunena.org **/ defined ( '_JEXEC' ) or die (); // Display offline message if Kunena hasn't been fully installed. if (!class_exists('KunenaForum') || !KunenaForum::isCompatible('3.0') || !KunenaForum::installed()) { $lang = JFactory::getLanguage(); $lang->load('com_kunena.install', JPATH_ADMINISTRATOR . '/components/com_kunena', 'en-GB'); $lang->load('com_kunena.install', JPATH_ADMINISTRATOR . '/components/com_kunena'); JResponse::setHeader('Status', '503 Service Temporarily Unavailable', 'true'); ?> <h2><?php echo JText::_('COM_KUNENA_INSTALL_OFFLINE_TOPIC')?></h2> <div><?php echo JText::_('COM_KUNENA_INSTALL_OFFLINE_DESC')?></div> <?php return; } // Prevent direct access to the component if the option has been disabled. if (!KunenaConfig::getInstance()->get('access_component', 1)) { $active = JFactory::getApplication()->getMenu()->getActive(); if (!$active) { // Prevent access without using a menu item. JLog::add("Kunena: Direct access denied: ".JUri::getInstance()->toString(array('path', 'query')), JLog::WARNING, 'kunena'); JError::raiseError(404, JText::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND')); } elseif ($active->type != 'component' || $active->component != 'com_kunena') { // Prevent spoofed access by using random menu item. JLog::add("Kunena: spoofed access denied: ".JUri::getInstance()->toString(array('path', 'query')), JLog::WARNING, 'kunena'); JError::raiseError(404, JText::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND')); } } // Load router require_once KPATH_SITE . '/router.php'; // Display time it took to create the entire page in the footer $kunena_profiler = KunenaProfiler::instance('Kunena'); $kunena_profiler->start('Total Time'); KUNENA_PROFILER ? $kunena_profiler->mark('afterLoad') : null; // Initialize Kunena Framework. KunenaForum::setup(); // Initialize custom error handlers. KunenaError::initialize (); // Initialize session $ksession = KunenaFactory::getSession ( true ); if ($ksession->userid > 0) { // Create user if it does not exist $kuser = KunenaUserHelper::getMyself (); if (! $kuser->exists ()) { $kuser->save (); } // Save session if (! $ksession->save ()) { JFactory::getApplication ()->enqueueMessage ( JText::_ ( 'COM_KUNENA_ERROR_SESSION_SAVE_FAILED' ), 'error' ); } } // Support legacy urls (they need to be redirected) $view = JRequest::getWord ( 'func', JRequest::getWord ( 'view', 'home' ) ); $task = JRequest::getCmd ( 'task' ); if (is_file ( KPATH_SITE . "/controllers/{$view}.php" )) { // Load and execute controller $controller = KunenaController::getInstance (); KunenaRoute::cacheLoad (); $controller->execute ( $task ); KunenaRoute::cacheStore (); $controller->redirect (); } else { // Legacy support $uri = KunenaRoute::current(true); if ($uri) { // FIXME: using wrong Itemid JFactory::getApplication ()->redirect (KunenaRoute::_($uri, false)); } else { return JError::raiseError( 404, "Kunena view '{$view}' not found" ); } } // Remove custom error handlers. KunenaError::cleanup (); // Display profiler information $kunena_time = $kunena_profiler->stop('Total Time'); if (KUNENA_PROFILER) { echo '<div class="kprofiler">'; echo "<h3>Kunena Profile Information</h3>"; foreach($kunena_profiler->getAll() as $item) { //if ($item->getTotalTime()<($kunena_time->getTotalTime()/20)) continue; if ($item->getTotalTime()<0.002 && $item->calls < 20) continue; echo sprintf ("Kunena %s: %0.3f / %0.3f seconds (%d calls)<br/>", $item->name, $item->getInternalTime(), $item->getTotalTime(), $item->calls); } echo '</div>'; }