|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 20.22 GB of 70.42 GB (28.71%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
http/
yalagina/
libraries/
joomla/
html/
parameter/
element/
- drwxr-xr-x
|
Viewing file: modulelayouts.php (2.68 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
<?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */
defined('JPATH_PLATFORM') or die;
require_once dirname(__FILE__) . '/list.php';
/** * Parameter to display a list of the layouts for a module from the module or default template overrides. * * @package Joomla.Platform * @subpackage Parameter * @note Note that JFormFieldModuleLayout does not end in s. * @since 11.1 * @deprecated Use JFormFieldModuleLayout instead */ class JElementModuleLayouts extends JElementList { /** * @var string */ protected $_name = 'ModuleLayouts';
/** * Get the options for the list. * * @param JXMLElement &$node JXMLElement node object containing the settings for the element * * @return string * * @deprecated 12.1 Use JFormFieldModuleLayouts::getInput instead. * @since 11.1 */ protected function _getOptions(&$node) { // Deprecation warning. JLog::add('JElementModuleLayouts::_getOptions() is deprecated.', JLog::WARNING, 'deprecated');
$clientId = ($v = $node->attributes('client_id')) ? $v : 0;
$options = array(); $path1 = null; $path2 = null;
// Load template entries for each menuid $db = JFactory::getDBO(); $query = $db->getQuery(true); $query->select('template'); $query->from('#__template_styles'); $query->where('client_id = ' . (int) $clientId); $query->where('home = 1'); $db->setQuery($query); $template = $db->loadResult();
if ($module = $node->attributes('module')) { $base = ($clientId == 1) ? JPATH_ADMINISTRATOR : JPATH_SITE; $module = preg_replace('#\W#', '', $module); $path1 = $base . '/modules/' . $module . '/tmpl'; $path2 = $base . '/templates/' . $template . '/html/' . $module; $options[] = JHTML::_('select.option', '', ''); }
if ($path1 && $path2) { jimport('joomla.filesystem.file'); $path1 = JPath::clean($path1); $path2 = JPath::clean($path2);
$files = JFolder::files($path1, '^[^_]*\.php$'); foreach ($files as $file) { $options[] = JHTML::_('select.option', JFile::stripExt($file)); }
if (is_dir($path2) && $files = JFolder::files($path2, '^[^_]*\.php$')) { $options[] = JHTML::_('select.optgroup', JText::_('JOPTION_FROM_DEFAULT')); foreach ($files as $file) { $options[] = JHTML::_('select.option', JFile::stripExt($file)); } $options[] = JHTML::_('select.optgroup', JText::_('JOPTION_FROM_DEFAULT')); } }
// Merge any additional options in the XML definition. $options = array_merge(parent::_getOptions($node), $options);
return $options; } }
|