Server IP : 195.201.23.43 / Your IP : 3.23.105.244 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/kdecoratie/public_html/administrator/modules/mod_status/tmpl/ |
Upload File : |
<?php /** * @package Joomla.Administrator * @subpackage mod_status * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $hideLinks = $input->getBool('hidemainmenu'); $task = $input->getCmd('task'); $output = array(); // Print the Preview link to Main site. if ($params->get('show_viewsite', 1)) { // Gets the FrontEnd Main page Uri $frontEndUri = JUri::getInstance(JUri::root()); $frontEndUri->setScheme(((int) JFactory::getApplication()->get('force_ssl', 0) === 2) ? 'https' : 'http'); $output[] = '<div class="btn-group viewsite">' . '<a href="' . $frontEndUri->toString() . '" target="_blank">' . '<span class="icon-out-2" aria-hidden="true"></span>' . JText::_('JGLOBAL_VIEW_SITE') . '</a>' . '<span class="btn-group separator"></span>' . '</div>'; } // Print the link to open a new Administrator window. if ($params->get('show_viewadmin', 0)) { $output[] = '<div class="btn-group viewsite">' . '<a href="' . JUri::base() . 'index.php" target="_blank">' . '<span class="icon-out-2" aria-hidden="true"></span>' . JText::_('MOD_STATUS_FIELD_LINK_VIEWADMIN_LABEL') . '</a>' . '<span class="btn-group separator"></span>' . '</div>'; } // Print logged in user count based on the shared session state if (JFactory::getConfig()->get('shared_session', '0')) { // Print the frontend logged in users. if ($params->get('show_loggedin_users', 1)) { $output[] = '<div class="btn-group loggedin-users">' . '<span class="badge">' . $total_users . '</span>' . JText::plural('MOD_STATUS_TOTAL_USERS', $total_users) . '<span class="btn-group separator"></span>' . '</div>'; } } else { // Print the frontend logged in users. if ($params->get('show_loggedin_users', 1)) { $output[] = '<div class="btn-group loggedin-users">' . '<span class="badge">' . $online_num . '</span>' . JText::plural('MOD_STATUS_USERS', $online_num) . '<span class="btn-group separator"></span>' . '</div>'; } // Print the backend logged in users. if ($params->get('show_loggedin_users_admin', 1)) { $output[] = '<div class="btn-group backloggedin-users">' . '<span class="badge">' . $count . '</span>' . JText::plural('MOD_STATUS_BACKEND_USERS', $count) . '<span class="btn-group separator"></span>' . '</div>'; } } // Print the inbox message. if ($params->get('show_messages', 1)) { $active = $unread ? ' badge-warning' : ''; $output[] = '<div class="btn-group ' . $inboxClass . '">' . ($hideLinks ? '' : '<a href="' . $inboxLink . '">') . '<span class="badge' . $active . '">' . $unread . '</span>' . JText::plural('MOD_STATUS_MESSAGES_LABEL', $unread) . ($hideLinks ? '' : '</a>') . '<span class="btn-group separator"></span>' . '</div>'; } // Print the logout link. if ($task == 'edit' || $task == 'editA' || $input->getInt('hidemainmenu')) { $logoutLink = ''; } else { $logoutLink = JRoute::_('index.php?option=com_login&task=logout&' . JSession::getFormToken() . '=1'); } if ($params->get('show_logout', 1)) { $output[] = '<div class="btn-group logout">' . ($hideLinks ? '' : '<a href="' . $logoutLink . '">') . '<span class="icon-minus-2" aria-hidden="true"></span>' . JText::_('JLOGOUT') . ($hideLinks ? '' : '</a>') . '</div>'; } // Output the items. foreach ($output as $item) { echo $item; }Private