mirror of
				https://github.com/webmasterskaya/joomla-oauth-server.git
				synced 2025-11-04 10:43:22 +03:00 
			
		
		
		
	_JEXEC & copyright
This commit is contained in:
		
							parent
							
								
									e406da6ad7
								
							
						
					
					
						commit
						cce9466306
					
				@ -1,8 +1,14 @@
 | 
			
		||||
<?php
 | 
			
		||||
/**
 | 
			
		||||
 * @package         Joomla.Administrator
 | 
			
		||||
 * @subpackage      com_oauthserver
 | 
			
		||||
 *
 | 
			
		||||
 * @copyright   (c) 2024. Webmasterskaya. <https://webmasterskaya.xyz>
 | 
			
		||||
 * @license         MIT; see LICENSE.txt
 | 
			
		||||
 **/
 | 
			
		||||
 | 
			
		||||
use Joomla\CMS\HTML\HTMLHelper;
 | 
			
		||||
use Joomla\CMS\Language\Text;
 | 
			
		||||
use Joomla\CMS\Layout\LayoutHelper;
 | 
			
		||||
use Joomla\CMS\Router\Route;
 | 
			
		||||
 | 
			
		||||
defined('_JEXEC') or die;
 | 
			
		||||
@ -17,7 +23,10 @@ $wa->useScript('keepalive')
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
 | 
			
		||||
<form action="<?php echo Route::_('index.php?option=com_oauthserver&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="client-form" aria-label="<?php echo Text::_('COM_OAUTHSERVER_CLIENT_FORM_' . ((int) $this->item->id === 0 ? 'NEW' : 'EDIT'), true); ?>" class="form-validate">
 | 
			
		||||
<form action="<?php echo Route::_('index.php?option=com_oauthserver&layout=edit&id=' . (int) $this->item->id); ?>"
 | 
			
		||||
      method="post" name="adminForm" id="client-form"
 | 
			
		||||
      aria-label="<?php echo Text::_('COM_OAUTHSERVER_CLIENT_FORM_' . ((int) $this->item->id === 0 ? 'NEW' : 'EDIT'), true); ?>"
 | 
			
		||||
      class="form-validate">
 | 
			
		||||
 | 
			
		||||
    <div class="main-card">
 | 
			
		||||
        <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', ['active' => 'details', 'recall' => true, 'breakpoint' => 768]); ?>
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,11 @@
 | 
			
		||||
<?php
 | 
			
		||||
/**
 | 
			
		||||
 * @package     Joomla.Administrator
 | 
			
		||||
 * @subpackage  com_oauthserver
 | 
			
		||||
 *
 | 
			
		||||
 * @copyright   (c) 2024. Webmasterskaya. <https://webmasterskaya.xyz>
 | 
			
		||||
 * @license     MIT; see LICENSE.txt
 | 
			
		||||
 **/
 | 
			
		||||
 | 
			
		||||
use Joomla\CMS\Factory;
 | 
			
		||||
use Joomla\CMS\HTML\HTMLHelper;
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,11 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @package         Joomla.Administrator
 | 
			
		||||
 * @subpackage      com_oauthserver
 | 
			
		||||
 *
 | 
			
		||||
 * @copyright   (c) 2024. Webmasterskaya. <https://webmasterskaya.xyz>
 | 
			
		||||
 * @license         MIT; see LICENSE.txt
 | 
			
		||||
 **/
 | 
			
		||||
 | 
			
		||||
use Joomla\CMS\Layout\LayoutHelper;
 | 
			
		||||
 | 
			
		||||
@ -20,7 +26,8 @@ if ($user->authorise('core.create', 'com_oauthserver')
 | 
			
		||||
    || count($user->getAuthorisedCategories('com_oauthserver', 'core.create')) > 0
 | 
			
		||||
    || $user->authorise('product.create', 'com_oauthserver')
 | 
			
		||||
    || count($user->getAuthorisedCategories('com_oauthserver', 'client.create')) > 0
 | 
			
		||||
) {
 | 
			
		||||
)
 | 
			
		||||
{
 | 
			
		||||
    $displayData['createURL'] = 'index.php?option=com_oauthserver&task=client.add';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user