AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/nice/administrator/components/com_rsform/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nice/administrator/components/com_rsform/helpers/toolbar.php
<?php
/**
* @package RSForm! Pro
* @copyright (C) 2007-2019 www.rsjoomla.com
* @license GPL, http://www.gnu.org/licenses/gpl-2.0.html
*/

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;

abstract class RSFormProToolbarHelper
{
	public static function addToolbar($view = '')
	{
		if (version_compare(JVERSION, '4.0', '>='))
		{
			return;
		}

		$user = Factory::getUser();

		// load language file (.sys because the toolbar has the same options as the components dropdown)
		Factory::getLanguage()->load('com_rsform.sys', JPATH_ADMINISTRATOR);
		
		// Add toolbar entries
		JHtmlSidebar::addEntry(Text::_('COM_RSFORM_DASHBOARD'), 'index.php?option=com_rsform', $view == '' || $view == 'rsform');

        if ($user->authorise('forms.manage', 'com_rsform'))
        {
	        JHtmlSidebar::addEntry(Text::_('COM_RSFORM_MANAGE_FORMS'), 'index.php?option=com_rsform&view=forms', $view == 'forms');
        }
        if ($user->authorise('submissions.manage', 'com_rsform'))
        {
	        JHtmlSidebar::addEntry(Text::_('COM_RSFORM_MANAGE_SUBMISSIONS'), 'index.php?option=com_rsform&view=submissions', $view == 'submissions');
        }
        if ($user->authorise('directory.manage', 'com_rsform'))
        {
	        JHtmlSidebar::addEntry(Text::_('COM_RSFORM_MANAGE_DIRECTORY_SUBMISSIONS'), 'index.php?option=com_rsform&view=directory', $view == 'directory');
        }
        if ($user->authorise('core.admin', 'com_rsform'))
        {
	        JHtmlSidebar::addEntry(Text::_('COM_RSFORM_CONFIGURATION'), 'index.php?option=com_rsform&view=configuration', $view == 'configuration');
        }
        if ($user->authorise('backuprestore.manage', 'com_rsform'))
        {
	        JHtmlSidebar::addEntry(Text::_('COM_RSFORM_BACKUP_SCREEN'), 'index.php?option=com_rsform&view=backupscreen', $view == 'backupscreen');
	        JHtmlSidebar::addEntry(Text::_('COM_RSFORM_RESTORE_SCREEN'), 'index.php?option=com_rsform&view=restorescreen', $view == 'restorescreen');
        }
	}
	
	public static function addFilter($text, $key, $options, $noDefault = false)
	{
		JHtmlSidebar::addFilter($text, $key, $options, $noDefault);
	}
	
	public static function render()
	{
		return JHtmlSidebar::render();
	}
}

Anon7 - 2022
AnonSec Team