first commit

This commit is contained in:
alazhar
2020-01-02 22:20:31 +07:00
commit 10eb3340ad
5753 changed files with 631345 additions and 0 deletions

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,50 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::_('bootstrap.tooltip');
?>
<form action="<?php echo JRoute::_('index.php?option=com_admin&amp;view=help'); ?>" method="post" name="adminForm" id="adminForm">
<div class="row-fluid">
<div id="sidebar" class="span3">
<div id="filter-bar" class="btn-toolbar">
<div class="filter-search input-append">
<label for="helpsearch" class="element-invisible"><?php echo JText::_('COM_ADMIN_SEARCH'); ?></label>
<input type="text" name="helpsearch" id="helpsearch" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->help_search); ?>" class="input-small hasTooltip" title="<?php echo JHtml::tooltipText('COM_ADMIN_SEARCH'); ?>" />
<button type="submit" class="btn hasTooltip" title="<?php JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>">
<i class="icon-search"></i></button>
<button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="f=document.adminForm;f.helpsearch.value='';f.submit()">
<i class="icon-remove"></i></button>
</div>
</div>
<div class="clearfix"> </div>
<div class="sidebar-nav">
<ul class="nav nav-list">
<li><?php echo JHtml::_('link', JHelp::createUrl('JHELP_START_HERE'), JText::_('COM_ADMIN_START_HERE'), array('target' => 'helpFrame')) ?></li>
<li><?php echo JHtml::_('link', $this->latest_version_check, JText::_('COM_ADMIN_LATEST_VERSION_CHECK'), array('target' => 'helpFrame')) ?></li>
<li><?php echo JHtml::_('link', 'http://www.gnu.org/licenses/gpl-2.0.html', JText::_('COM_ADMIN_LICENSE'), array('target' => 'helpFrame')) ?></li>
<li><?php echo JHtml::_('link', JHelp::createUrl('JHELP_GLOSSARY'), JText::_('COM_ADMIN_GLOSSARY'), array('target' => 'helpFrame')) ?></li>
<hr class="hr-condensed" />
<li class="nav-header"><?php echo JText::_('COM_ADMIN_ALPHABETICAL_INDEX'); ?></li>
<?php foreach ($this->toc as $k => $v):?>
<li>
<?php $url = JHelp::createUrl('JHELP_'.strtoupper($k)); ?>
<?php echo JHtml::_('link', $url, $v, array('target' => 'helpFrame'));?>
</li>
<?php endforeach;?>
</ul>
</div>
</div>
<div class="span9">
<iframe name="helpFrame" height="2100px" src="<?php echo $this->page;?>" class="helpFrame table table-bordered"></iframe>
</div>
</div>
<input class="textarea" type="hidden" name="option" value="com_admin" />
</form>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,74 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* HTML View class for the Admin component
*
* @package Joomla.Administrator
* @subpackage com_admin
* @since 1.6
*/
class AdminViewHelp extends JViewLegacy
{
/**
* @var string the search string
*/
protected $help_search = null;
/**
* @var string the page to be viewed
*/
protected $page = null;
/**
* @var string the iso language tag
*/
protected $lang_tag = null;
/**
* @var array Table of contents
*/
protected $toc = null;
/**
* @var string url for the latest version check
*/
protected $latest_version_check = 'http://www.joomla.org/download.html';
/**
* @var string url for the start here link.
*/
protected $start_here = null;
/**
* Display the view
*/
public function display($tpl = null)
{
$this->help_search = $this->get('HelpSearch');
$this->page = $this->get('Page');
$this->toc = $this->get('Toc');
$this->lang_tag = $this->get('LangTag');
$this->latest_version_check = $this->get('LatestVersionCheck');
$this->addToolbar();
parent::display($tpl);
}
/**
* Setup the Toolbar
*
* @since 1.6
*/
protected function addToolbar()
{
JToolbarHelper::title(JText::_('COM_ADMIN_HELP'), 'help_header.png');
}
}

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,71 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.formvalidation');
// Load chosen.css
JHtml::_('formbehavior.chosen', 'select');
// Get the form fieldsets.
$fieldsets = $this->form->getFieldsets();
?>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (task == 'profile.cancel' || document.formvalidator.isValid(document.id('profile-form')))
{
Joomla.submitform(task, document.getElementById('profile-form'));
}
}
</script>
<form action="<?php echo JRoute::_('index.php?option=com_admin&view=profile&layout=edit&id='.$this->item->id); ?>" method="post" name="adminForm" id="profile-form" class="form-validate form-horizontal" enctype="multipart/form-data">
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'account')); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'account', JText::_('COM_ADMIN_USER_ACCOUNT_DETAILS', true)); ?>
<?php foreach ($this->form->getFieldset('user_details') as $field) : ?>
<div class="control-group">
<div class="control-label"><?php echo $field->label; ?></div>
<div class="controls"><?php echo $field->input; ?></div>
</div>
<?php endforeach; ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php
foreach ($fieldsets as $fieldset) :
if ($fieldset->name == 'user_details') :
continue;
endif;
?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', $fieldset->name, JText::_($fieldset->label, true)); ?>
<?php foreach ($this->form->getFieldset($fieldset->name) as $field) : ?>
<?php if ($field->hidden) : ?>
<div class="control-group">
<div class="controls"><?php echo $field->input; ?></div>
</div>
<?php else: ?>
<div class="control-group">
<div class="control-label"><?php echo $field->label; ?></div>
<div class="controls"><?php echo $field->input; ?></div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endforeach; ?>
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</form>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,66 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* View class to allow users edit their own profile.
*
* @package Joomla.Administrator
* @subpackage com_admin
* @since 1.6
*/
class AdminViewProfile extends JViewLegacy
{
protected $form;
protected $item;
protected $state;
/**
* Display the view
*/
public function display($tpl = null)
{
$this->form = $this->get('Form');
$this->item = $this->get('Item');
$this->state = $this->get('State');
// Check for errors.
if (count($errors = $this->get('Errors')))
{
JError::raiseError(500, implode("\n", $errors));
return false;
}
$this->form->setValue('password', null);
$this->form->setValue('password2', null);
parent::display($tpl);
$this->addToolbar();
}
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
JFactory::getApplication()->input->set('hidemainmenu', 1);
JToolbarHelper::title(JText::_('COM_ADMIN_VIEW_PROFILE_TITLE'), 'user-profile');
JToolbarHelper::apply('profile.apply');
JToolbarHelper::save('profile.save');
JToolbarHelper::cancel('profile.cancel', 'JTOOLBAR_CLOSE');
JToolbarHelper::divider();
JToolbarHelper::help('JHELP_ADMIN_USER_PROFILE_EDIT');
}
}

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,46 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Add specific helper files for html generation
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
?>
<form action="<?php echo JRoute::_('index.php'); ?>" method="post" name="adminForm" id="adminForm">
<div class="row-fluid">
<!-- Begin Content -->
<div class="span10">
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'site')); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'site', JText::_('COM_ADMIN_SYSTEM_INFORMATION', true)); ?>
<?php echo $this->loadTemplate('system'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'phpsettings', JText::_('COM_ADMIN_PHP_SETTINGS', true)); ?>
<?php echo $this->loadTemplate('phpsettings'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'config', JText::_('COM_ADMIN_CONFIGURATION_FILE', true)); ?>
<?php echo $this->loadTemplate('config'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'directory', JText::_('COM_ADMIN_DIRECTORY_PERMISSIONS', true)); ?>
<?php echo $this->loadTemplate('directory'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'phpinfo', JText::_('COM_ADMIN_PHP_INFORMATION', true)); ?>
<?php echo $this->loadTemplate('phpinfo'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
</div>
<!-- End Content -->
</div>
</form>

View File

@ -0,0 +1,43 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_ADMIN_CONFIGURATION_FILE'); ?></legend>
<table class="table table-striped">
<thead>
<tr>
<th width="300">
<?php echo JText::_('COM_ADMIN_SETTING'); ?>
</th>
<th>
<?php echo JText::_('COM_ADMIN_VALUE'); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2">&#160;</td>
</tr>
</tfoot>
<tbody>
<?php foreach ($this->config as $key => $value):?>
<tr>
<td>
<?php echo $key;?>
</td>
<td>
<?php echo htmlspecialchars($value, ENT_QUOTES);?>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</fieldset>

View File

@ -0,0 +1,43 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_ADMIN_DIRECTORY_PERMISSIONS'); ?></legend>
<table class="table table-striped">
<thead>
<tr>
<th width="650">
<?php echo JText::_('COM_ADMIN_DIRECTORY'); ?>
</th>
<th>
<?php echo JText::_('COM_ADMIN_STATUS'); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2">&#160;</td>
</tr>
</tfoot>
<tbody>
<?php foreach ($this->directory as $dir => $info) : ?>
<tr>
<td>
<?php echo JHtml::_('directory.message', $dir, $info['message']);?>
</td>
<td>
<?php echo JHtml::_('directory.writable', $info['writable']);?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>

View File

@ -0,0 +1,15 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_ADMIN_PHP_INFORMATION'); ?></legend>
<?php echo $this->php_info;?>
</fieldset>

View File

@ -0,0 +1,162 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_ADMIN_RELEVANT_PHP_SETTINGS'); ?></legend>
<table class="table table-striped">
<thead>
<tr>
<th width="250">
<?php echo JText::_('COM_ADMIN_SETTING'); ?>
</th>
<th>
<?php echo JText::_('COM_ADMIN_VALUE'); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2">&#160;
</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_SAFE_MODE'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['safe_mode']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_OPEN_BASEDIR'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.string', $this->php_settings['open_basedir']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_DISPLAY_ERRORS'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['display_errors']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_SHORT_OPEN_TAGS'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['short_open_tag']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_FILE_UPLOADS'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['file_uploads']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_MAGIC_QUOTES'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['magic_quotes_gpc']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_REGISTER_GLOBALS'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['register_globals']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_OUTPUT_BUFFERING'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.boolean', $this->php_settings['output_buffering']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_SESSION_SAVE_PATH'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.string', $this->php_settings['session.save_path']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_SESSION_AUTO_START'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.integer', $this->php_settings['session.auto_start']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_XML_ENABLED'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.set', $this->php_settings['xml']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_ZLIB_ENABLED'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.set', $this->php_settings['zlib']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_ZIP_ENABLED'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.set', $this->php_settings['zip']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_DISABLED_FUNCTIONS'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.string', $this->php_settings['disable_functions']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_MBSTRING_ENABLED'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.set', $this->php_settings['mbstring']); ?>
</td>
</tr>
<tr>
<td>
<?php echo JText::_('COM_ADMIN_ICONV_AVAILABLE'); ?>
</td>
<td>
<?php echo JHtml::_('phpsetting.set', $this->php_settings['iconv']); ?>
</td>
</tr>
</tbody>
</table>
</fieldset>

View File

@ -0,0 +1,105 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_ADMIN_SYSTEM_INFORMATION'); ?></legend>
<table class="table table-striped">
<thead>
<tr>
<th width="25%">
<?php echo JText::_('COM_ADMIN_SETTING'); ?>
</th>
<th>
<?php echo JText::_('COM_ADMIN_VALUE'); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2">&#160;</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_PHP_BUILT_ON'); ?></strong>
</td>
<td>
<?php echo $this->info['php'];?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_DATABASE_VERSION'); ?></strong>
</td>
<td>
<?php echo $this->info['dbversion'];?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_DATABASE_COLLATION'); ?></strong>
</td>
<td>
<?php echo $this->info['dbcollation'];?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_PHP_VERSION'); ?></strong>
</td>
<td>
<?php echo $this->info['phpversion'];?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_WEB_SERVER'); ?></strong>
</td>
<td>
<?php echo JHtml::_('system.server', $this->info['server']); ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_WEBSERVER_TO_PHP_INTERFACE'); ?></strong>
</td>
<td>
<?php echo $this->info['sapi_name'];?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_JOOMLA_VERSION'); ?></strong>
</td>
<td>
<?php echo $this->info['version'];?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_PLATFORM_VERSION'); ?></strong>
</td>
<td>
<?php echo $this->info['platform'];?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('COM_ADMIN_USER_AGENT'); ?></strong>
</td>
<td>
<?php echo htmlspecialchars($this->info['useragent']);?>
</td>
</tr>
</tbody>
</table>
</fieldset>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,99 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Sysinfo View class for the Admin component
*
* @package Joomla.Administrator
* @subpackage com_admin
* @since 1.6
*/
class AdminViewSysinfo extends JViewLegacy
{
/**
* @var array some php settings
*/
protected $php_settings = null;
/**
* @var array config values
*/
protected $config = null;
/**
* @var array somme system values
*/
protected $info = null;
/**
* @var string php info
*/
protected $php_info = null;
/**
* @var array informations about writable state of directories
*/
protected $directory = null;
/**
* Display the view
*/
public function display($tpl = null)
{
// Access check.
if (!JFactory::getUser()->authorise('core.admin'))
{
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
$this->php_settings = $this->get('PhpSettings');
$this->config = $this->get('config');
$this->info = $this->get('info');
$this->php_info = $this->get('PhpInfo');
$this->directory = $this->get('directory');
$this->addToolbar();
$this->_setSubMenu();
parent::display($tpl);
}
/**
* Setup the SubMenu
*
* @return void
*
* @since 1.6
* @note Necessary for Hathor compatibility
*/
protected function _setSubMenu()
{
try
{
$contents = $this->loadTemplate('navigation');
$document = JFactory::getDocument();
$document->setBuffer($contents, 'modules', 'submenu');
}
catch (Exception $e)
{
}
}
/**
* Setup the Toolbar
*
* @since 1.6
*/
protected function addToolbar()
{
JToolbarHelper::title(JText::_('COM_ADMIN_SYSTEM_INFORMATION'), 'systeminfo.png');
JToolbarHelper::help('JHELP_SITE_SYSTEM_INFORMATION');
}
}