__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/*
* @package Joomla.Framework
* @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* @component Phoca Component
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or later;
*/
defined('_JEXEC') or die();
use Joomla\CMS\Form\Field\ListField;
use Joomla\CMS\Form\FormField;
if (! class_exists('PhocaGalleryLoader')) {
require_once( JPATH_ADMINISTRATOR.'/components/com_phocagallery/libraries/loader.php');
}
phocagalleryimport('phocagallery.access.access');
class JFormFieldPhocaUsers extends ListField
{
protected $type = 'PhocaUsers';
protected function getInput() {
$data = $this->getLayoutData();
$userId = $this->form->getValue($this->element['name']);
$owner = ( (string)$this->element['typeowner'] ? $this->element['typeowner'] : 0 );
if ($owner == 1) {
//return PhocaGalleryAccess::usersListOwner($this->name, $this->id, $userId, 1, NULL, 'name', 0, 1 );
$data['options'] = (array) PhocaGalleryAccess::usersListOwner($this->name, $this->id, $userId, 1, NULL, 'name', 0, 1 );
$activeArray = $userId;
if ($userId != '') {
$activeArray = explode(',',$userId);
}
if (!empty($activeArray)) {
$data['value'] = $activeArray;
} else {
$data['value'] = $this->value;
}
return $this->getRenderer($this->layout)->render($data);
} else {
// Joomla! 3.1.5: $this->name.'[]'
// Joomla! 3.2.0: $this->name
$userIdString = $userId;
if (is_array($userId)) {
$userIdString = implode(',', $userId);
}
//return PhocaGalleryAccess::usersList($this->name, $this->id, $userIdString, 1, NULL,'name', 0 );
$data['options'] = (array) PhocaGalleryAccess::usersList($this->name, $this->id, $userIdString, 1, NULL,'name', 0, 1 );
$activeArray = $userId;
if ($userId != '' && !is_array($userId)) {
$activeArray = explode(',',$userId);
}
if (!empty($activeArray)) {
$data['value'] = $activeArray;
} else {
$data['value'] = $this->value;
}
return $this->getRenderer($this->layout)->render($data);
}
}
}
?>
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| index.html | File | 44 B | 0664 |
|
| phocaaccesslevel.php | File | 2.91 KB | 0664 |
|
| phocacolortext.php | File | 3.28 KB | 0664 |
|
| phocagallerycategory.php | File | 5.44 KB | 0664 |
|
| phocagalleryordering.php | File | 3.31 KB | 0664 |
|
| phocahead.php | File | 1.57 KB | 0664 |
|
| phocainfotext.php | File | 899 B | 0664 |
|
| phocalongtext.php | File | 3.04 KB | 0664 |
|
| phocaselectfbalbum.php | File | 3.65 KB | 0664 |
|
| phocaselectfbuser.php | File | 2.09 KB | 0664 |
|
| phocaselectfilename.php | File | 5.37 KB | 0664 |
|
| phocaselectfolder.php | File | 4.02 KB | 0664 |
|
| phocaselectitem.php | File | 3.89 KB | 0664 |
|
| phocaselectmap.php | File | 4.41 KB | 0664 |
|
| phocaselectytb.php | File | 5.52 KB | 0664 |
|
| phocatags.php | File | 1.1 KB | 0664 |
|
| phocatext.php | File | 2.8 KB | 0664 |
|
| phocatextarea.php | File | 2.91 KB | 0664 |
|
| phocausers.php | File | 2.46 KB | 0664 |
|