添加到 trunk

+YUCHENG HU+

git-svn-id: https://svn.code.sf.net/p/hawebs/svn@327 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
This commit is contained in:
YuCheng Hu
2010-06-13 23:20:47 +00:00
parent 85a37e6838
commit 0610a07a16
38 changed files with 2409 additions and 0 deletions
@@ -0,0 +1,45 @@
<?php
/**
* @version $Id: admin.config.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @subpackage Config
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
* source software licenses. See COPYRIGHT.php for copyright notices and
* details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Make sure the user is authorized to view this page
$user = & JFactory::getUser();
if (!$user->authorize( 'com_config', 'manage' )) {
$mainframe->redirect('index.php', JText::_('ALERTNOTAUTH'));
}
// Require the base controller
require_once (JPATH_COMPONENT.DS.'controller.php');
// Require specific controller if requested
if($controller = JRequest::getWord('controller', 'application')) {
$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
if (file_exists($path)) {
require_once $path;
} else {
$controller = '';
}
}
// Create the controller
$classname = 'ConfigController'.ucfirst($controller);
$controller = new $classname( );
JResponse::setHeader( 'Expires', 'Mon, 26 Jul 1997 05:00:00 GMT', true );
// Perform the Request task
$controller->execute( JRequest::getCmd( 'task' ) );
$controller->redirect();
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<install type="component" version="1.0.0">
<name>Configuration Manager</name>
<author>Joomla! Project</author>
<creationDate>2006</creationDate>
<copyright>Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<version>1.5.0</version>
<description>Configuration Manager</description>
</install>
@@ -0,0 +1,29 @@
<?php
/**
* @version $Id: controller.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @subpackage Content
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
* source software licenses. See COPYRIGHT.php for copyright notices and
* details.
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );
jimport('joomla.application.component.controller');
/**
* Config Component Controller
*
* @package Joomla
* @subpackage Config
* @since 1.5
*/
class ConfigController extends JController
{
}
@@ -0,0 +1,116 @@
<?php
/**
* @version $Id: component.php 12389 2009-07-01 00:34:45Z ian $
* @package Joomla
* @subpackage Config
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
* source software licenses. See COPYRIGHT.php for copyright notices and
* details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once( JPATH_COMPONENT.DS.'views'.DS.'component'.DS.'view.php' );
/**
* Note: this view is intended only to be opened in a popup
* @package Joomla
* @subpackage Config
*/
class ConfigControllerComponent extends JController
{
/**
* Custom Constructor
*/
function __construct( $default = array())
{
$default['default_task'] = 'edit';
parent::__construct( $default );
$this->registerTask( 'apply', 'save' );
}
/**
* Show the configuration edit form
* @param string The URL option
*/
function edit()
{
JRequest::setVar('tmpl', 'component'); //force the component template
$component = JRequest::getCmd( 'component' );
if (empty( $component ))
{
JError::raiseWarning( 500, 'Not a valid component' );
return false;
}
// load the component's language file
$lang = & JFactory::getLanguage();
$lang->load( $component );
$model = $this->getModel('Component' );
$table =& JTable::getInstance('component');
if (!$table->loadByOption( $component ))
{
JError::raiseWarning( 500, 'Not a valid component' );
return false;
}
$view = new ConfigViewComponent( );
$view->assignRef('component', $table);
$view->setModel( $model, true );
$view->display();
}
/**
* Save the configuration
*/
function save()
{
// Check for request forgeries
JRequest::checkToken() or jexit( 'Invalid Token' );
$component = JRequest::getCmd( 'component' );
$table =& JTable::getInstance('component');
if (!$table->loadByOption( $component ))
{
JError::raiseWarning( 500, 'Not a valid component' );
return false;
}
$post = JRequest::get( 'post' );
$post['option'] = $component;
$table->bind( $post );
// pre-save checks
if (!$table->check()) {
JError::raiseWarning( 500, $table->getError() );
return false;
}
// save the changes
if (!$table->store()) {
JError::raiseWarning( 500, $table->getError() );
return false;
}
//$this->setRedirect( 'index.php?option=com_config', $msg );
$this->edit();
}
/**
* Cancel operation
*/
function cancel()
{
$this->setRedirect( 'index.php' );
}
}
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1,57 @@
<?php
/**
* @version $Id: component.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @subpackage Config
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
* source software licenses. See COPYRIGHT.php for copyright notices and
* details.
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );
jimport( 'joomla.application.component.model' );
/**
* @package Joomla
* @subpackage Config
*/
class ConfigModelComponent extends JModel
{
/**
* Get the params for the configuration variables
*/
function &getParams()
{
static $instance;
if ($instance == null)
{
$component = JRequest::getCmd( 'component' );
$table =& JTable::getInstance('component');
$table->loadByOption( $component );
// work out file path
if ($path = JRequest::getString( 'path' )) {
$path = JPath::clean( JPATH_SITE.DS.$path );
JPath::check( $path );
} else {
$option = preg_replace( '#\W#', '', $table->option );
$path = JPATH_ADMINISTRATOR.DS.'components'.DS.$option.DS.'config.xml';
}
if (file_exists( $path )) {
$instance = new JParameter( $table->params, $path );
} else {
$instance = new JParameter( $table->params );
}
}
return $instance;
}
}
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1,32 @@
<?php
/**
* @version $Id: toolbar.config.html.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @subpackage Config
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
/**
* @package Joomla
* @subpackage Config
*/
class TOOLBAR_config
{
function _DEFAULT() {
JToolBarHelper::title( JText::_( 'Global Configuration' ), 'config.png' );
JToolBarHelper::save();
JToolBarHelper::apply();
JToolBarHelper::cancel('cancel', 'Close');
JToolBarHelper::help( 'screen.config' );
}
}
@@ -0,0 +1,25 @@
<?php
/**
* @version $Id: toolbar.config.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @subpackage Config
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once( JApplicationHelper::getPath( 'toolbar_html' ) );
switch ($task)
{
default:
TOOLBAR_config::_DEFAULT();
break;
}
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1,71 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Cache Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Cache' ); ?>::<?php echo JText::_( 'TIPCACHE' ); ?>">
<?php echo JText::_( 'Cache' ); ?>
</span>
</td>
<td>
<?php echo $lists['caching']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Cache Time' ); ?>::<?php echo JText::_( 'TIPCACHETIME' ); ?>">
<?php echo JText::_( 'Cache Time' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="cachetime" size="5" value="<?php echo $row->cachetime; ?>" />
<?php echo JText::_( 'minutes' ); ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Cache Handler' ); ?>::<?php echo JText::_( 'TIPCACHEHANDLER' ); ?>">
<?php echo JText::_( 'Cache Handler' ); ?>
</span>
</td>
<td>
<?php echo $lists['cache_handlers']; ?>
</td>
</tr>
<?php if ($row->cache_handler == 'memcache' || $row->session_handler == 'memcache') : ?>
<tr>
<td class="key">
<?php echo JText::_( 'Memcache Persistent' ); ?>
</td>
<td>
<?php echo $lists['memcache_persist']; ?>
</td>
</tr>
<tr>
<td class="key">
<?php echo JText::_( 'Memcache Compression' ); ?>
</td>
<td>
<?php echo $lists['memcache_compress']; ?>
</td>
</tr>
<tr>
<td class="key">
<?php echo JText::_( 'Memcache Server' ); ?>
</td>
<td>
<?php echo JText::_( 'Host' ); ?>:
<input class="text_area" type="text" name="memcache_settings[servers][0][host]" size="25" value="<?php echo @$row->memcache_settings['servers'][0]['host']; ?>" />
<br /><br />
<?php echo JText::_( 'Port' ); ?>:
<input class="text_area" type="text" name="memcache_settings[servers][0][port]" size="6" value="<?php echo @$row->memcache_settings['servers'][0]['port']; ?>" />
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,63 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Database Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Database type' ); ?>::<?php echo JText::_( 'TIPDTATABASETYPE' ); ?>">
<?php echo JText::_( 'Database type' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="dbtype" size="30" value="<?php echo $row->dbtype; ?>" />
</td>
</tr>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Hostname' ); ?>::<?php echo JText::_( 'TIPDATABASEHOSTNAME' ); ?>">
<?php echo JText::_( 'Hostname' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="host" size="30" value="<?php echo $row->host; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Username' ); ?>::<?php echo JText::_( 'TIPDATABASEUSERNAME' ); ?>">
<?php echo JText::_( 'Username' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="user" size="30" value="<?php echo $row->user; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Database' ); ?>::<?php echo JText::_( 'TIPDATABASENAME' ); ?>">
<?php echo JText::_( 'Database' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="db" size="30" value="<?php echo $row->db; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Database Prefix' ); ?>::<?php echo JText::_( 'TIPDATABASEPREFIX' ); ?>">
<?php echo JText::_( 'Database Prefix' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="dbprefix" size="10" value="<?php echo $row->dbprefix; ?>" />
&nbsp;
<span class="error hasTip" title="<?php echo JText::_( 'Warning' );?>::<?php echo JText::_( 'WARNDONOTCHANGEDATABASETABLESPREFIX' ); ?>">
<?php echo ConfigApplicationView::WarningIcon(); ?>
</span>
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,29 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Debug Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Enable Debugging' ); ?>::<?php echo JText::_('TIPDEBUGGINGINFO'); ?>">
<?php echo JText::_( 'Debug System' ); ?>
</span>
</td>
<td>
<?php echo $lists['debug']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Debug Language' ); ?>::<?php echo JText::_('TIPDEBUGLANGUAGE'); ?>">
<?php echo JText::_( 'Debug Language' ); ?>
</span>
</td>
<td>
<?php echo $lists['debug_lang']; ?>
</td>
</tr>
</table>
</fieldset>
@@ -0,0 +1,70 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'FTP Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Enable FTP' ); ?>::<?php echo JText::_( 'TIPENABLEFTP' ); ?>">
<?php echo JText::_( 'Enable FTP' ); ?>
</span>
</td>
<td>
<?php echo $lists['enable_ftp']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'FTP Host' ); ?>::<?php echo JText::_( 'TIPFTPHOST' ); ?>">
<?php echo JText::_( 'FTP Host' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="ftp_host" size="25" value="<?php echo $row->ftp_host; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'FTP Port' ); ?>::<?php echo JText::_( 'TIPFTPPORT' ); ?>">
<?php echo JText::_( 'FTP Port' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="ftp_port" size="25" value="<?php echo $row->ftp_port; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'FTP Username' ); ?>::<?php echo JText::_( 'TIPFTPUSERNAME' ); ?>">
<?php echo JText::_( 'FTP Username' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="ftp_user" size="25" value="<?php echo $row->ftp_user; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'FTP Password' ); ?>::<?php echo JText::_( 'TIPFTPPASSWORD' ); ?>">
<?php echo JText::_( 'FTP Password' ); ?>
</span>
</td>
<td>
<input class="text_area" type="password" name="ftp_pass" size="25" value="<?php echo $row->ftp_pass; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'FTP Root' ); ?>::<?php echo JText::_( 'TIPFTPROOT' ); ?>">
<?php echo JText::_( 'FTP Root' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="ftp_root" size="50" value="<?php echo $row->ftp_root; ?>" />
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,19 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Locale Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Time Zone' ); ?>::<?php echo JText::_( 'TIPDATETIMEDISPLAY' ) .': '. JHTML::_('date', 'now', JText::_('DATE_FORMAT_LC2')); ?>">
<?php echo JText::_( 'Time Zone' ); ?>
</span>
</td>
<td>
<?php echo $lists['offset']; ?>
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,110 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Mail Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Mailer' ); ?>::<?php echo JText::_( 'TIPMAILER' ); ?>">
<?php echo JText::_( 'Mailer' ); ?>
</span>
</td>
<td>
<?php echo $lists['mailer']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Mail From' ); ?>::<?php echo JText::_( 'TIPMAILFROM' ); ?>">
<?php echo JText::_( 'Mail From' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="mailfrom" size="30" value="<?php echo $row->mailfrom; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'From Name' ); ?>::<?php echo JText::_( 'TIPFROMNAME' ); ?>">
<?php echo JText::_( 'From Name' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="fromname" size="30" value="<?php echo $row->fromname; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Sendmail Path' ); ?>::<?php echo JText::_( 'TIPSENDMAILPATH' ); ?>">
<?php echo JText::_( 'Sendmail Path' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="sendmail" size="30" value="<?php echo $row->sendmail; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'SMTP Auth' ); ?>::<?php echo JText::_( 'TIPSMTPAUTH' ); ?>">
<?php echo JText::_( 'SMTP Auth' ); ?>
</span>
</td>
<td>
<?php echo $lists['smtpauth']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'SMTP Security' ); ?>::<?php echo JText::_( 'TIPSMTPSECURITY' ); ?>">
<?php echo JText::_( 'SMTP Security' ); ?>
</span>
</td>
<td>
<?php echo $lists['smtpsecure']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'SMTP Port' ); ?>::<?php echo JText::_( 'TIPSMTPPORT' ); ?>">
<?php echo JText::_( 'SMTP Port' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="smtpport" size="30" value="<?php echo (isset($row->smtpport) ? $row->smtpport : ''); ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'SMTP User' ); ?>::<?php echo JText::_( 'TIPSMTPUSER' ); ?>">
<?php echo JText::_( 'SMTP User' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="smtpuser" size="30" value="<?php echo $row->smtpuser; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'SMTP Pass' ); ?>::<?php echo JText::_( 'TIPSMTPPASS' ); ?>">
<?php echo JText::_( 'SMTP Pass' ); ?>
</span>
</td>
<td>
<input class="text_area" type="password" name="smtppass" size="30" value="<?php echo $row->smtppass; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'SMTP Host' ); ?>::<?php echo JText::_( 'TIPSMTPHOST' ); ?>">
<?php echo JText::_( 'SMTP Host' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="smtphost" size="30" value="<?php echo $row->smtphost; ?>" />
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,50 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Metadata Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td width="185" valign="top" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Global Site Meta Description' ); ?>::<?php echo JText::_( 'TIPGLOBALSITEMETATADESC' ); ?>">
<?php echo JText::_( 'Global Site Meta Description' ); ?>
</span>
</td>
<td>
<textarea class="text_area" cols="50" rows="3" style="width:400px; height:50px" name="MetaDesc"><?php echo $row->MetaDesc; ?></textarea>
</td>
</tr>
<tr>
<td valign="top" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Global Site Meta Keywords' ); ?>::<?php echo JText::_( 'TIPGLOBALSITEMETAKEY' ); ?>">
<?php echo JText::_( 'Global Site Meta Keywords' ); ?>
</span>
</td>
<td>
<textarea class="text_area" cols="50" rows="3" style="width:400px; height:50px" name="MetaKeys"><?php echo $row->MetaKeys; ?></textarea>
</td>
</tr>
<tr>
<td valign="top" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Show Title Meta Tag' ); ?>::<?php echo JText::_( 'TIPSHOWTITLEMETATAGITEMS' ); ?>">
<?php echo JText::_( 'Show Title Meta Tag' ); ?>
</span>
</td>
<td>
<?php echo $lists['MetaTitle']; ?>
</td>
</tr>
<tr>
<td valign="top" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Show Author Meta Tag' ); ?>::<?php echo JText::_( 'TIPSHOWAUTHORMETATAGITEMS' ); ?>">
<?php echo JText::_( 'Show Author Meta Tag' ); ?>
</span>
</td>
<td>
<?php echo $lists['MetaAuthor']; ?>
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,43 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'SEO Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Search Engine Friendly URLs' ); ?>::<?php echo JText::_('Search Engine Optimization Settings'); ?>">
<?php echo JText::_( 'Search Engine Friendly URLs' ); ?>
</span>
</td>
<td>
<?php echo $lists['sef']; ?>
</td>
</tr>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Use mod_rewrite' ); ?>::<?php echo JText::_('TIPUSEMODREWRITE'); ?>">
<?php echo JText::_( 'Use mod_rewrite' ); ?>
</span>
</td>
<td>
<?php echo $lists['sef_rewrite']; ?>
<span class="error hasTip" title="<?php echo JText::_( 'Warning' );?>::<?php echo JText::_( 'WARNAPACHEONLY' ); ?>">
<?php echo ConfigApplicationView::WarningIcon(); ?>
</span>
</td>
</tr>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'URL Suffix' ); ?>::<?php echo JText::_('TIPURLSUFFIX'); ?>">
<?php echo JText::_( 'Add suffix to URLs' ); ?>
</span>
</td>
<td>
<?php echo $lists['sef_suffix']; ?>
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,50 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Server Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td valign="top" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Path to Temp-folder' ); ?>::<?php echo JText::_( 'TIPTMPFOLDER' ); ?>">
<?php echo JText::_( 'Path to Temp-folder' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" size="50" name="tmp_path" value="<?php echo $row->tmp_path; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'GZIP Page Compression' ); ?>::<?php echo JText::_( 'Compress buffered output if supported' ); ?>">
<?php echo JText::_( 'GZIP Page Compression' ); ?>
</span>
</td>
<td>
<?php echo $lists['gzip']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Error Reporting' ); ?>::<?php echo JText::_( 'TIPERRORREPORTING' ); ?>">
<?php echo JText::_( 'Error Reporting' ); ?>
</span>
</td>
<td>
<?php echo $lists['error_reporting']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_('Force SSL'); ?>::<?php echo JText::_( 'TIPFORCESSL' ); ?>">
<?php echo JText::_('Force SSL'); ?>
</span>
</td>
<td>
<?php echo $lists['force_ssl']; ?>
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,30 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Session Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Session Lifetime' ); ?>::<?php echo JText::_( 'TIPAUTOLOGOUTTIMEOF' ); ?>">
<?php echo JText::_( 'Session Lifetime' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="lifetime" size="10" value="<?php echo $row->lifetime; ?>" />
&nbsp;<?php echo JText::_('minutes'); ?>&nbsp;
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Session Handler' ); ?>::<?php echo JText::_( 'TIPSESSIONHANDLER' ); ?>">
<?php echo JText::_( 'Session Handler' ); ?>
</span>
</td>
<td>
<strong><?php echo $lists['session_handlers']; ?></strong>
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,81 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Site Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Site Offline' ); ?>::<?php echo JText::_( 'TIPSETYOURSITEISOFFLINE' ); ?>">
<?php echo JText::_( 'Site Offline' ); ?>
</span>
</td>
<td>
<?php echo $lists['offline']; ?>
</td>
</tr>
<tr>
<td valign="top" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Offline Message' ); ?>::<?php echo JText::_( 'TIPIFYOURSITEISOFFLINE' ); ?>">
<?php echo JText::_( 'Offline Message' ); ?>
</span>
</td>
<td>
<textarea class="text_area" cols="60" rows="2" style="width:400px; height:40px" name="offline_message"><?php echo $row->offline_message; ?></textarea>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Site Name' ); ?>::<?php echo JText::_( 'TIPSITENAME' ); ?>">
<?php echo JText::_( 'Site Name' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" name="sitename" size="50" value="<?php echo $row->sitename; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Default WYSIWYG Editor' ); ?>::<?php echo JText::_( 'TIPDEFWYSIWYG' ); ?>">
<?php echo JText::_( 'Default WYSIWYG Editor' ); ?>
</span>
</td>
<td>
<?php echo $lists['editor']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'List Length' ); ?>::<?php echo JText::_( 'TIPSETSDEFAULTLENGTHLISTS' ); ?>">
<?php echo JText::_( 'List Length' ); ?>
</span>
</td>
<td>
<?php echo $lists['list_limit']; ?>
</td>
</tr>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Feedlimit' ); ?>::<?php echo JText::_( 'TIPFEEDLIMIT' ); ?>">
<?php echo JText::_( 'Feed Length' ); ?>
</span>
</td>
<td>
<?php echo $lists['feed_limit']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Feed Email' ); ?>::<?php echo JText::_( 'TIPFEEDEMAIL' ); ?>">
<?php echo JText::_( 'Feed Email' ); ?>
</span>
</td>
<td>
<?php echo $lists['feed_email']; ?>
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,51 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'System Settings' ); ?></legend>
<table class="admintable" cellspacing="1">
<tbody>
<tr>
<td width="185" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Secret Word' ); ?>::<?php echo JText::_( 'TIPSECRETWORD' ); ?>">
<?php echo JText::_( 'Secret Word' ); ?>
</span>
</td>
<td>
<strong><?php echo $row->secret; ?></strong>
</td>
</tr>
<tr>
<td valign="top" class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Path to Log-folder' ); ?>::<?php echo JText::_( 'TIPLOGFOLDER' ); ?>">
<?php echo JText::_( 'Path to Log-folder' ); ?>
</span>
</td>
<td>
<input class="text_area" type="text" size="50" name="log_path" value="<?php echo $row->log_path; ?>" />
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'ENABLE WEB SERVICES' ); ?>::<?php echo JText::_( 'TIPENABLEWEBSERVICES' ); ?>">
<?php echo JText::_( 'ENABLE WEB SERVICES' ); ?>
</span>
</td>
<td>
<?php echo $lists['xmlrpc_server']; ?>
</td>
</tr>
<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_( 'Help Server' ); ?>::<?php echo JText::_( 'TIPHELPSERVER' ); ?>">
<?php echo JText::_( 'Help Server' ); ?>
</span>
</td>
<td>
<?php echo $lists['helpsites']; ?>
<input type="button" onclick="submitbutton('refreshhelp')" value="<?php echo JText::_('Reset'); ?>" />
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1,33 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<fieldset title="<?php echo JText::_('DESCFTPTITLE'); ?>" class="adminform">
<legend><?php echo JText::_('DESCFTPTITLE'); ?></legend>
<?php echo JText::_('DESCFTP'); ?>
<?php if(JError::isError($this->ftp)): ?>
<p><?php echo JText::_($this->ftp->message); ?></p>
<?php endif; ?>
<table class="adminform nospace">
<tbody>
<tr>
<td width="120">
<label for="username"><?php echo JText::_('Username'); ?>:</label>
</td>
<td>
<input type="text" id="username" name="username" class="input_box" size="70" value="" />
</td>
</tr>
<tr>
<td width="120">
<label for="password"><?php echo JText::_('Password'); ?>:</label>
</td>
<td>
<input type="password" id="password" name="password" class="input_box" size="70" value="" />
</td>
</tr>
</tbody>
</table>
</fieldset>
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1,13 @@
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<div class="submenu-box">
<div class="submenu-pad">
<ul id="submenu" class="configuration">
<li><a id="site" class="active"><?php echo JText::_( 'Site' ); ?></a></li>
<li><a id="system"><?php echo JText::_( 'System' ); ?></a></li>
<li><a id="server"><?php echo JText::_( 'Server' ); ?></a></li>
</ul>
<div class="clr"></div>
</div>
</div>
<div class="clr"></div>
@@ -0,0 +1,135 @@
<?php
/**
* @version $Id: view.php 10882 2008-08-31 17:55:14Z willebil $
* @package Joomla
* @subpackage Config
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
/**
* @package Joomla
* @subpackage Config
*/
class ConfigApplicationView
{
function showConfig( &$row, &$lists )
{
global $mainframe;
// Load tooltips behavior
JHTML::_('behavior.tooltip');
JHTML::_('behavior.switcher');
// Load component specific configurations
$table =& JTable::getInstance('component');
$table->loadByOption( 'com_users' );
$userparams = new JParameter( $table->params, JPATH_ADMINISTRATOR.DS.'components'.DS.'com_users'.DS.'config.xml' );
$table->loadByOption( 'com_media' );
$mediaparams = new JParameter( $table->params, JPATH_ADMINISTRATOR.DS.'components'.DS.'com_media'.DS.'config.xml' );
// Build the component's submenu
$contents = '';
$tmplpath = dirname(__FILE__).DS.'tmpl';
ob_start();
require_once($tmplpath.DS.'navigation.php');
$contents = ob_get_contents();
ob_end_clean();
// Set document data
$document =& JFactory::getDocument();
$document->setBuffer($contents, 'modules', 'submenu');
// Load settings for the FTP layer
jimport('joomla.client.helper');
$ftp =& JClientHelper::setCredentialsFromRequest('ftp');
?>
<form action="index.php" method="post" name="adminForm">
<?php if ($ftp) {
require_once($tmplpath.DS.'ftp.php');
} ?>
<div id="config-document">
<div id="page-site">
<table class="noshow">
<tr>
<td width="65%">
<?php require_once($tmplpath.DS.'config_site.php'); ?>
<?php require_once($tmplpath.DS.'config_metadata.php'); ?>
</td>
<td width="35%">
<?php require_once($tmplpath.DS.'config_seo.php'); ?>
</td>
</tr>
</table>
</div>
<div id="page-system">
<table class="noshow">
<tr>
<td width="60%">
<?php require_once($tmplpath.DS.'config_system.php'); ?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'User Settings' ); ?></legend>
<?php echo $userparams->render('userparams'); ?>
</fieldset>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Media Settings' ); ?>
<span class="error hasTip" title="<?php echo JText::_( 'Warning' );?>::<?php echo JText::_( 'WARNPATHCHANGES' ); ?>">
<?php echo ConfigApplicationView::WarningIcon(); ?>
</span>
</legend>
<?php echo $mediaparams->render('mediaparams'); ?>
</fieldset>
</td>
<td width="40%">
<?php require_once($tmplpath.DS.'config_debug.php'); ?>
<?php require_once($tmplpath.DS.'config_cache.php'); ?>
<?php require_once($tmplpath.DS.'config_session.php'); ?>
</td>
</tr>
</table>
</div>
<div id="page-server">
<table class="noshow">
<tr>
<td width="60%">
<?php require_once($tmplpath.DS.'config_server.php'); ?>
<?php require_once($tmplpath.DS.'config_locale.php'); ?>
<?php require_once($tmplpath.DS.'config_ftp.php'); ?>
</td>
<td width="40%">
<?php require_once($tmplpath.DS.'config_database.php'); ?>
<?php require_once($tmplpath.DS.'config_mail.php'); ?>
</td>
</tr>
</table>
</div>
</div>
<div class="clr"></div>
<input type="hidden" name="c" value="global" />
<input type="hidden" name="live_site" value="<?php echo isset($row->live_site) ? $row->live_site : ''; ?>" />
<input type="hidden" name="option" value="com_config" />
<input type="hidden" name="secret" value="<?php echo $row->secret; ?>" />
<input type="hidden" name="task" value="" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
}
function WarningIcon()
{
global $mainframe;
$tip = '<img src="'.JURI::root().'includes/js/ThemeOffice/warning.png" border="0" alt="" />';
return $tip;
}
}
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1,70 @@
<?php
/**
* @version $Id: view.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @subpackage Config
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
* source software licenses. See COPYRIGHT.php for copyright notices and
* details.
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );
jimport( 'joomla.application.component.view' );
/**
* @package Joomla
* @subpackage Config
*/
class ConfigViewComponent extends JView
{
/**
* Display the view
*/
function display()
{
$model = &$this->getModel();
$params = &$model->getParams();
$component = JComponentHelper::getComponent(JRequest::getCmd( 'component' ));
$document = & JFactory::getDocument();
$document->setTitle( JText::_('Edit Preferences') );
JHTML::_('behavior.tooltip');
?>
<form action="index.php" method="post" name="adminForm" autocomplete="off">
<fieldset>
<div style="float: right">
<button type="button" onclick="submitbutton('save');window.top.setTimeout('window.parent.document.getElementById(\'sbox-window\').close()', 700);">
<?php echo JText::_( 'Save' );?></button>
<button type="button" onclick="window.parent.document.getElementById('sbox-window').close();">
<?php echo JText::_( 'Cancel' );?></button>
</div>
<div class="configuration" >
<?php echo JText::_($this->component->name) ?>
</div>
</fieldset>
<fieldset>
<legend>
<?php echo JText::_( 'Configuration' );?>
</legend>
<?php echo $params->render();?>
</fieldset>
<input type="hidden" name="id" value="<?php echo $this->component->id;?>" />
<input type="hidden" name="component" value="<?php echo $this->component->option;?>" />
<input type="hidden" name="controller" value="component" />
<input type="hidden" name="option" value="com_config" />
<input type="hidden" name="tmpl" value="component" />
<input type="hidden" name="task" value="" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
}
}

Some files were not shown because too many files have changed in this diff Show More