进行 1.5.19 的更新
+YUCHENG HU+ git-svn-id: https://svn.code.sf.net/p/hawebs/svn@256 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
This commit is contained in:
+2359
-2175
File diff suppressed because it is too large
Load Diff
@@ -1,24 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: COPYRIGHT.php 11416 2009-01-17 09:55:02Z willebil $
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 - 2009 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.
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
?>
|
||||
|
||||
Joomla! derives from copyrighted works licensed under the GNU General
|
||||
Public License. This version has been modified pursuant to the
|
||||
GNU General Public License as of September 15, 2005, 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. Please
|
||||
see the CREDITS.php for a non-exhaustive list of contributors and
|
||||
copyright holders. A full text version of the GNU GPL version 2 can be
|
||||
found in the LICENSE.php file. A full text version of the other licenses
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: COPYRIGHT.php 14401 2010-01-26 14:10:00Z louis $
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 - 2010 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.
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
?>
|
||||
|
||||
Joomla! derives from copyrighted works licensed under the GNU General
|
||||
Public License. This version has been modified pursuant to the
|
||||
GNU General Public License as of September 15, 2005, 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. Please
|
||||
see the CREDITS.php for a non-exhaustive list of contributors and
|
||||
copyright holders. A full text version of the GNU GPL version 2 can be
|
||||
found in the LICENSE.php file. A full text version of the other licenses
|
||||
that Joomla! is derivative of or includes can be found in LICENSES.php.
|
||||
+494
-488
File diff suppressed because it is too large
Load Diff
+151
-151
File diff suppressed because it is too large
Load Diff
+541
-541
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: configuration.php-dist 11687 2009-03-11 17:49:23Z ian $
|
||||
* @version $Id: configuration.php-dist 14401 2010-01-26 14:10:00Z louis $
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
|
||||
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
* Joomla! is free software and parts of it may contain or be derived from the
|
||||
* GNU General Public License or other free or open source software licenses.
|
||||
|
||||
@@ -1,67 +1,71 @@
|
||||
##
|
||||
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
|
||||
# @package Joomla
|
||||
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
|
||||
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
# Joomla! is Free Software
|
||||
##
|
||||
|
||||
|
||||
#####################################################
|
||||
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
|
||||
#
|
||||
# The line just below this section: 'Options +FollowSymLinks' may cause problems
|
||||
# with some server configurations. It is required for use of mod_rewrite, but may already
|
||||
# be set by your server administrator in a way that dissallows changing it in
|
||||
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
|
||||
# beginning of line), reload your site in your browser and test your sef url's. If they work,
|
||||
# it has been set by your server administrator and you do not need it set here.
|
||||
#
|
||||
#####################################################
|
||||
|
||||
## Can be commented out if causes errors, see notes above.
|
||||
Options +FollowSymLinks
|
||||
|
||||
#
|
||||
# mod_rewrite in use
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
########## Begin - Rewrite rules to block out some common exploits
|
||||
## If you experience problems on your site block out the operations listed below
|
||||
## This attempts to block the most common type of exploit `attempts` to Joomla!
|
||||
#
|
||||
# Block out any script trying to set a mosConfig value through the URL
|
||||
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
|
||||
# Block out any script trying to base64_encode crap to send via URL
|
||||
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
|
||||
# Block out any script that includes a <script> tag in URL
|
||||
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
|
||||
# Block out any script trying to set a PHP GLOBALS variable via URL
|
||||
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
|
||||
# Block out any script trying to modify a _REQUEST variable via URL
|
||||
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
|
||||
# Send all blocked request to homepage with 403 Forbidden error!
|
||||
RewriteRule ^(.*)$ index.php [F,L]
|
||||
#
|
||||
########## End - Rewrite rules to block out some common exploits
|
||||
|
||||
# Uncomment following line if your webserver's URL
|
||||
# is not directly related to physical file paths.
|
||||
# Update Your Joomla! Directory (just / for root)
|
||||
|
||||
# RewriteBase /
|
||||
|
||||
|
||||
########## Begin - Joomla! core SEF Section
|
||||
#
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} !^/index.php
|
||||
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
|
||||
RewriteRule (.*) index.php
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
|
||||
#
|
||||
########## End - Joomla! core SEF Section
|
||||
|
||||
|
||||
##
|
||||
# @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
|
||||
# @package Joomla
|
||||
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
|
||||
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
# Joomla! is Free Software
|
||||
##
|
||||
|
||||
|
||||
#####################################################
|
||||
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
|
||||
#
|
||||
# The line just below this section: 'Options +FollowSymLinks' may cause problems
|
||||
# with some server configurations. It is required for use of mod_rewrite, but may already
|
||||
# be set by your server administrator in a way that dissallows changing it in
|
||||
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
|
||||
# beginning of line), reload your site in your browser and test your sef url's. If they work,
|
||||
# it has been set by your server administrator and you do not need it set here.
|
||||
#
|
||||
#####################################################
|
||||
|
||||
## Can be commented out if causes errors, see notes above.
|
||||
Options +FollowSymLinks
|
||||
|
||||
#
|
||||
# mod_rewrite in use
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
########## Begin - Rewrite rules to block out some common exploits
|
||||
## If you experience problems on your site block out the operations listed below
|
||||
## This attempts to block the most common type of exploit `attempts` to Joomla!
|
||||
#
|
||||
## Deny access to extension xml files (uncomment out to activate)
|
||||
#<Files ~ "\.xml$">
|
||||
#Order allow,deny
|
||||
#Deny from all
|
||||
#Satisfy all
|
||||
#</Files>
|
||||
## End of deny access to extension xml files
|
||||
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
|
||||
# Block out any script trying to base64_encode crap to send via URL
|
||||
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
|
||||
# Block out any script that includes a <script> tag in URL
|
||||
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
|
||||
# Block out any script trying to set a PHP GLOBALS variable via URL
|
||||
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
|
||||
# Block out any script trying to modify a _REQUEST variable via URL
|
||||
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
|
||||
# Send all blocked request to homepage with 403 Forbidden error!
|
||||
RewriteRule ^(.*)$ index.php [F,L]
|
||||
#
|
||||
########## End - Rewrite rules to block out some common exploits
|
||||
|
||||
# Uncomment following line if your webserver's URL
|
||||
# is not directly related to physical file paths.
|
||||
# Update Your Joomla! Directory (just / for root)
|
||||
|
||||
# RewriteBase /
|
||||
|
||||
|
||||
########## Begin - Joomla! core SEF Section
|
||||
#
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} !^/index.php
|
||||
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
|
||||
RewriteRule (.*) index.php
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
|
||||
#
|
||||
########## End - Joomla! core SEF Section
|
||||
|
||||
+88
-88
@@ -1,88 +1,88 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: index.php 11407 2009-01-09 17:23:42Z willebil $
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 - 2009 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.
|
||||
*/
|
||||
|
||||
// Set flag that this is a parent file
|
||||
define( '_JEXEC', 1 );
|
||||
|
||||
define('JPATH_BASE', dirname(__FILE__) );
|
||||
|
||||
define( 'DS', DIRECTORY_SEPARATOR );
|
||||
|
||||
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
|
||||
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
|
||||
|
||||
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
|
||||
|
||||
/**
|
||||
* CREATE THE APPLICATION
|
||||
*
|
||||
* NOTE :
|
||||
*/
|
||||
$mainframe =& JFactory::getApplication('site');
|
||||
|
||||
/**
|
||||
* INITIALISE THE APPLICATION
|
||||
*
|
||||
* NOTE :
|
||||
*/
|
||||
// set the language
|
||||
$mainframe->initialise();
|
||||
|
||||
JPluginHelper::importPlugin('system');
|
||||
|
||||
// trigger the onAfterInitialise events
|
||||
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
|
||||
$mainframe->triggerEvent('onAfterInitialise');
|
||||
|
||||
/**
|
||||
* ROUTE THE APPLICATION
|
||||
*
|
||||
* NOTE :
|
||||
*/
|
||||
$mainframe->route();
|
||||
|
||||
// authorization
|
||||
$Itemid = JRequest::getInt( 'Itemid');
|
||||
$mainframe->authorize($Itemid);
|
||||
|
||||
// trigger the onAfterRoute events
|
||||
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
|
||||
$mainframe->triggerEvent('onAfterRoute');
|
||||
|
||||
/**
|
||||
* DISPATCH THE APPLICATION
|
||||
*
|
||||
* NOTE :
|
||||
*/
|
||||
$option = JRequest::getCmd('option');
|
||||
$mainframe->dispatch($option);
|
||||
|
||||
// trigger the onAfterDispatch events
|
||||
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
|
||||
$mainframe->triggerEvent('onAfterDispatch');
|
||||
|
||||
/**
|
||||
* RENDER THE APPLICATION
|
||||
*
|
||||
* NOTE :
|
||||
*/
|
||||
$mainframe->render();
|
||||
|
||||
// trigger the onAfterRender events
|
||||
JDEBUG ? $_PROFILER->mark('afterRender') : null;
|
||||
$mainframe->triggerEvent('onAfterRender');
|
||||
|
||||
/**
|
||||
* RETURN THE RESPONSE
|
||||
*/
|
||||
echo JResponse::toString($mainframe->getCfg('gzip'));
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: index.php 14401 2010-01-26 14:10:00Z louis $
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 - 2010 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.
|
||||
*/
|
||||
|
||||
// Set flag that this is a parent file
|
||||
define( '_JEXEC', 1 );
|
||||
|
||||
define('JPATH_BASE', dirname(__FILE__) );
|
||||
|
||||
define( 'DS', DIRECTORY_SEPARATOR );
|
||||
|
||||
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
|
||||
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
|
||||
|
||||
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
|
||||
|
||||
/**
|
||||
* CREATE THE APPLICATION
|
||||
*
|
||||
* NOTE :
|
||||
*/
|
||||
$mainframe =& JFactory::getApplication('site');
|
||||
|
||||
/**
|
||||
* INITIALISE THE APPLICATION
|
||||
*
|
||||
* NOTE :
|
||||
*/
|
||||
// set the language
|
||||
$mainframe->initialise();
|
||||
|
||||
JPluginHelper::importPlugin('system');
|
||||
|
||||
// trigger the onAfterInitialise events
|
||||
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
|
||||
$mainframe->triggerEvent('onAfterInitialise');
|
||||
|
||||
/**
|
||||
* ROUTE THE APPLICATION
|
||||
*
|
||||
* NOTE :
|
||||
*/
|
||||
$mainframe->route();
|
||||
|
||||
// authorization
|
||||
$Itemid = JRequest::getInt( 'Itemid');
|
||||
$mainframe->authorize($Itemid);
|
||||
|
||||
// trigger the onAfterRoute events
|
||||
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
|
||||
$mainframe->triggerEvent('onAfterRoute');
|
||||
|
||||
/**
|
||||
* DISPATCH THE APPLICATION
|
||||
*
|
||||
* NOTE :
|
||||
*/
|
||||
$option = JRequest::getCmd('option');
|
||||
$mainframe->dispatch($option);
|
||||
|
||||
// trigger the onAfterDispatch events
|
||||
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
|
||||
$mainframe->triggerEvent('onAfterDispatch');
|
||||
|
||||
/**
|
||||
* RENDER THE APPLICATION
|
||||
*
|
||||
* NOTE :
|
||||
*/
|
||||
$mainframe->render();
|
||||
|
||||
// trigger the onAfterRender events
|
||||
JDEBUG ? $_PROFILER->mark('afterRender') : null;
|
||||
$mainframe->triggerEvent('onAfterRender');
|
||||
|
||||
/**
|
||||
* RETURN THE RESPONSE
|
||||
*/
|
||||
echo JResponse::toString($mainframe->getCfg('gzip'));
|
||||
|
||||
+14
-14
@@ -1,15 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: index2.php 11407 2009-01-09 17:23:42Z willebil $
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 - 2009 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.
|
||||
*/
|
||||
|
||||
$_REQUEST['tmpl'] = 'component';
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: index2.php 14401 2010-01-26 14:10:00Z louis $
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 - 2010 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.
|
||||
*/
|
||||
|
||||
$_REQUEST['tmpl'] = 'component';
|
||||
include('index.php');
|
||||
+212
-212
File diff suppressed because it is too large
Load Diff
@@ -1,75 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: application.php 10823 2008-08-27 17:18:14Z tcp $
|
||||
* @package Joomla
|
||||
* @subpackage Installation
|
||||
* @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' );
|
||||
|
||||
/**
|
||||
* Joomla! XML-RPC Application class
|
||||
*
|
||||
* Provide many supporting API functions
|
||||
*
|
||||
* @package Joomla
|
||||
* @final
|
||||
*/
|
||||
class JXMLRPC extends JApplication
|
||||
{
|
||||
/**
|
||||
* The encoding (default: UTF-8)
|
||||
*
|
||||
* @var string
|
||||
* @access protected
|
||||
*/
|
||||
var $_encoding = null;
|
||||
|
||||
/**
|
||||
* Class constructor
|
||||
*
|
||||
* @access protected
|
||||
* @param array An optional associative array of configuration settings.
|
||||
* Recognized key values include 'clientId' (this list is not meant to be comprehensive).
|
||||
*/
|
||||
function __construct($config = array())
|
||||
{
|
||||
$config['clientId'] = 3;
|
||||
parent::__construct($config);
|
||||
|
||||
//Set the encoding
|
||||
$this->_encoding = "UTF-8";
|
||||
|
||||
//Set the root in the URI based on the application name
|
||||
JURI::root(null, str_replace('/'.$this->getName(), '', JURI::base(true)));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the charset encoding
|
||||
*
|
||||
* @return string the charset encoding
|
||||
* @since 1.5
|
||||
*/
|
||||
function getEncoding() {
|
||||
return $this->_encoding;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the charset encoding
|
||||
*
|
||||
* @var $encoding The encoding of the charset
|
||||
*/
|
||||
function setEncoding($encoding) {
|
||||
$this->_encoding = $encoding;
|
||||
}
|
||||
}
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: application.php 14401 2010-01-26 14:10:00Z louis $
|
||||
* @package Joomla
|
||||
* @subpackage Installation
|
||||
* @copyright Copyright (C) 2005 - 2010 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' );
|
||||
|
||||
/**
|
||||
* Joomla! XML-RPC Application class
|
||||
*
|
||||
* Provide many supporting API functions
|
||||
*
|
||||
* @package Joomla
|
||||
* @final
|
||||
*/
|
||||
class JXMLRPC extends JApplication
|
||||
{
|
||||
/**
|
||||
* The encoding (default: UTF-8)
|
||||
*
|
||||
* @var string
|
||||
* @access protected
|
||||
*/
|
||||
var $_encoding = null;
|
||||
|
||||
/**
|
||||
* Class constructor
|
||||
*
|
||||
* @access protected
|
||||
* @param array An optional associative array of configuration settings.
|
||||
* Recognized key values include 'clientId' (this list is not meant to be comprehensive).
|
||||
*/
|
||||
function __construct($config = array())
|
||||
{
|
||||
$config['clientId'] = 3;
|
||||
parent::__construct($config);
|
||||
|
||||
//Set the encoding
|
||||
$this->_encoding = "UTF-8";
|
||||
|
||||
//Set the root in the URI based on the application name
|
||||
JURI::root(null, str_replace('/'.$this->getName(), '', JURI::base(true)));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the charset encoding
|
||||
*
|
||||
* @return string the charset encoding
|
||||
* @since 1.5
|
||||
*/
|
||||
function getEncoding() {
|
||||
return $this->_encoding;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the charset encoding
|
||||
*
|
||||
* @var $encoding The encoding of the charset
|
||||
*/
|
||||
function setEncoding($encoding) {
|
||||
$this->_encoding = $encoding;
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -1,31 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: defines.php 10381 2008-06-01 03:35:53Z pasamio $
|
||||
* @package Joomla
|
||||
* @subpackage Installation
|
||||
* @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' );
|
||||
|
||||
//Joomla framework path definitions
|
||||
$parts = explode( DS, JPATH_BASE );
|
||||
array_pop( $parts );
|
||||
|
||||
define( 'JPATH_ROOT', implode( DS, $parts ) );
|
||||
define( 'JPATH_SITE', JPATH_ROOT );
|
||||
define( 'JPATH_CONFIGURATION', JPATH_ROOT );
|
||||
define( 'JPATH_INSTALLATION', JPATH_ROOT . DS . 'installation' );
|
||||
define( 'JPATH_ADMINISTRATOR', JPATH_ROOT . DS . 'administrator' );
|
||||
define( 'JPATH_XMLRPC', JPATH_ROOT . DS . 'xmlrpc' );
|
||||
define( 'JPATH_LIBRARIES', JPATH_ROOT . DS . 'libraries' );
|
||||
define( 'JPATH_PLUGINS', JPATH_ROOT . DS . 'plugins' );
|
||||
define( 'JPATH_CACHE', JPATH_BASE . DS . 'cache');
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: defines.php 14401 2010-01-26 14:10:00Z louis $
|
||||
* @package Joomla
|
||||
* @subpackage Installation
|
||||
* @copyright Copyright (C) 2005 - 2010 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' );
|
||||
|
||||
//Joomla framework path definitions
|
||||
$parts = explode( DS, JPATH_BASE );
|
||||
array_pop( $parts );
|
||||
|
||||
define( 'JPATH_ROOT', implode( DS, $parts ) );
|
||||
define( 'JPATH_SITE', JPATH_ROOT );
|
||||
define( 'JPATH_CONFIGURATION', JPATH_ROOT );
|
||||
define( 'JPATH_INSTALLATION', JPATH_ROOT . DS . 'installation' );
|
||||
define( 'JPATH_ADMINISTRATOR', JPATH_ROOT . DS . 'administrator' );
|
||||
define( 'JPATH_XMLRPC', JPATH_ROOT . DS . 'xmlrpc' );
|
||||
define( 'JPATH_LIBRARIES', JPATH_ROOT . DS . 'libraries' );
|
||||
define( 'JPATH_PLUGINS', JPATH_ROOT . DS . 'plugins' );
|
||||
define( 'JPATH_CACHE', JPATH_BASE . DS . 'cache');
|
||||
?>
|
||||
@@ -1,67 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: framework.php 10382 2008-06-01 06:56:02Z pasamio $
|
||||
* @package Joomla
|
||||
* @subpackage Installation
|
||||
* @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' );
|
||||
|
||||
/*
|
||||
* Joomla! system checks
|
||||
*/
|
||||
|
||||
@set_magic_quotes_runtime( 0 );
|
||||
@ini_set('zend.ze1_compatibility_mode', '0');
|
||||
|
||||
if (!file_exists( JPATH_CONFIGURATION . DS . 'configuration.php' ) || (filesize( JPATH_CONFIGURATION . DS . 'configuration.php' ) < 10)) {
|
||||
// TODO: Throw 500 error
|
||||
header( 'Location: ../installation/index.php' );
|
||||
exit();
|
||||
}
|
||||
|
||||
/*
|
||||
* Joomla! system startup
|
||||
*/
|
||||
|
||||
// System includes
|
||||
require_once( JPATH_LIBRARIES .DS.'joomla'.DS.'import.php');
|
||||
|
||||
// Pre-Load configuration
|
||||
require_once( JPATH_CONFIGURATION .DS.'configuration.php' );
|
||||
|
||||
// System configuration
|
||||
$CONFIG = new JConfig();
|
||||
|
||||
if (@$CONFIG->error_reporting === 0) {
|
||||
error_reporting( 0 );
|
||||
} else if (@$CONFIG->error_reporting > 0) {
|
||||
error_reporting( $CONFIG->error_reporting );
|
||||
ini_set( 'display_errors', 1 );
|
||||
}
|
||||
|
||||
unset( $CONFIG );
|
||||
|
||||
/*
|
||||
* Joomla! framework loading
|
||||
*/
|
||||
|
||||
// Include object abstract class
|
||||
require_once(JPATH_SITE.DS.'libraries'.DS.'joomla'.DS.'utilities'.DS.'compat'.DS.'compat.php');
|
||||
|
||||
// Joomla! library imports
|
||||
jimport( 'joomla.environment.uri' );
|
||||
jimport( 'joomla.user.user' );
|
||||
jimport( 'joomla.event.event');
|
||||
jimport( 'joomla.event.dispatcher');
|
||||
jimport( 'joomla.plugin.helper' );
|
||||
jimport( 'joomla.utilities.string' );
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: framework.php 14401 2010-01-26 14:10:00Z louis $
|
||||
* @package Joomla
|
||||
* @subpackage Installation
|
||||
* @copyright Copyright (C) 2005 - 2010 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' );
|
||||
|
||||
/*
|
||||
* Joomla! system checks
|
||||
*/
|
||||
|
||||
@set_magic_quotes_runtime( 0 );
|
||||
@ini_set('zend.ze1_compatibility_mode', '0');
|
||||
|
||||
if (!file_exists( JPATH_CONFIGURATION . DS . 'configuration.php' ) || (filesize( JPATH_CONFIGURATION . DS . 'configuration.php' ) < 10)) {
|
||||
// TODO: Throw 500 error
|
||||
header( 'Location: ../installation/index.php' );
|
||||
exit();
|
||||
}
|
||||
|
||||
/*
|
||||
* Joomla! system startup
|
||||
*/
|
||||
|
||||
// System includes
|
||||
require_once( JPATH_LIBRARIES .DS.'joomla'.DS.'import.php');
|
||||
|
||||
// Pre-Load configuration
|
||||
require_once( JPATH_CONFIGURATION .DS.'configuration.php' );
|
||||
|
||||
// System configuration
|
||||
$CONFIG = new JConfig();
|
||||
|
||||
if (@$CONFIG->error_reporting === 0) {
|
||||
error_reporting( 0 );
|
||||
} else if (@$CONFIG->error_reporting > 0) {
|
||||
error_reporting( $CONFIG->error_reporting );
|
||||
ini_set( 'display_errors', 1 );
|
||||
}
|
||||
|
||||
unset( $CONFIG );
|
||||
|
||||
/*
|
||||
* Joomla! framework loading
|
||||
*/
|
||||
|
||||
// Include object abstract class
|
||||
require_once(JPATH_SITE.DS.'libraries'.DS.'joomla'.DS.'utilities'.DS.'compat'.DS.'compat.php');
|
||||
|
||||
// Joomla! library imports
|
||||
jimport( 'joomla.environment.uri' );
|
||||
jimport( 'joomla.user.user' );
|
||||
jimport( 'joomla.event.event');
|
||||
jimport( 'joomla.event.dispatcher');
|
||||
jimport( 'joomla.plugin.helper' );
|
||||
jimport( 'joomla.utilities.string' );
|
||||
?>
|
||||
@@ -1,58 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @version $Id: index.php 10381 2008-06-01 03:35:53Z pasamio $
|
||||
* @package Joomla
|
||||
* @subpackage Installation
|
||||
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
* Joomla! is free software and parts of it may contain or be derived from the
|
||||
* GNU General Public License or other free or open source software licenses.
|
||||
* See COPYRIGHT.php for copyright notices and details.
|
||||
*/
|
||||
|
||||
// Set flag that this is a parent file
|
||||
define( '_JEXEC', 1 );
|
||||
define( 'JPATH_BASE', dirname(__FILE__) );
|
||||
define( 'DS', DIRECTORY_SEPARATOR );
|
||||
|
||||
require_once JPATH_BASE.DS.'includes'.DS.'defines.php';
|
||||
require_once JPATH_BASE.DS.'includes'.DS.'framework.php';
|
||||
|
||||
// We want to echo the errors so that the xmlrpc client has a chance to capture them in the payload
|
||||
JError::setErrorHandling( E_ERROR, 'die' );
|
||||
JError::setErrorHandling( E_WARNING, 'echo' );
|
||||
JError::setErrorHandling( E_NOTICE, 'echo' );
|
||||
|
||||
// create the mainframe object
|
||||
$mainframe =& JFactory::getApplication('xmlrpc');
|
||||
|
||||
// Ensure that this application is enabled
|
||||
if (!$mainframe->getCfg('xmlrpc_server')) {
|
||||
JError::raiseError(403, 'XML-RPC Server not enabled.');
|
||||
}
|
||||
|
||||
// Includes the required class file for the XML-RPC Server
|
||||
jimport('phpxmlrpc.xmlrpc');
|
||||
jimport('phpxmlrpc.xmlrpcs');
|
||||
|
||||
// load all available remote calls
|
||||
JPluginHelper::importPlugin( 'xmlrpc' );
|
||||
$allCalls = $mainframe->triggerEvent( 'onGetWebServices' );
|
||||
$methodsArray = array();
|
||||
|
||||
foreach ($allCalls as $calls) {
|
||||
$methodsArray = array_merge($methodsArray, $calls);
|
||||
}
|
||||
|
||||
$xmlrpcServer = new xmlrpc_server($methodsArray, false);
|
||||
// allow casting to be defined by that actual values passed
|
||||
$xmlrpcServer->functions_parameters_type = 'phpvals';
|
||||
// define UTF-8 as the internal encoding for the XML-RPC server
|
||||
$xmlrpcServer->xml_header($mainframe->getEncoding());
|
||||
$xmlrpc_internalencoding = $mainframe->getEncoding();
|
||||
// debug level
|
||||
$xmlrpcServer->setDebug(0);
|
||||
// start the service
|
||||
$xmlrpcServer->service();
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: index.php 14401 2010-01-26 14:10:00Z louis $
|
||||
* @package Joomla
|
||||
* @subpackage Installation
|
||||
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
* Joomla! is free software and parts of it may contain or be derived from the
|
||||
* GNU General Public License or other free or open source software licenses.
|
||||
* See COPYRIGHT.php for copyright notices and details.
|
||||
*/
|
||||
|
||||
// Set flag that this is a parent file
|
||||
define( '_JEXEC', 1 );
|
||||
define( 'JPATH_BASE', dirname(__FILE__) );
|
||||
define( 'DS', DIRECTORY_SEPARATOR );
|
||||
|
||||
require_once JPATH_BASE.DS.'includes'.DS.'defines.php';
|
||||
require_once JPATH_BASE.DS.'includes'.DS.'framework.php';
|
||||
|
||||
// We want to echo the errors so that the xmlrpc client has a chance to capture them in the payload
|
||||
JError::setErrorHandling( E_ERROR, 'die' );
|
||||
JError::setErrorHandling( E_WARNING, 'echo' );
|
||||
JError::setErrorHandling( E_NOTICE, 'echo' );
|
||||
|
||||
// create the mainframe object
|
||||
$mainframe =& JFactory::getApplication('xmlrpc');
|
||||
|
||||
// Ensure that this application is enabled
|
||||
if (!$mainframe->getCfg('xmlrpc_server')) {
|
||||
JError::raiseError(403, 'XML-RPC Server not enabled.');
|
||||
}
|
||||
|
||||
// Includes the required class file for the XML-RPC Server
|
||||
jimport('phpxmlrpc.xmlrpc');
|
||||
jimport('phpxmlrpc.xmlrpcs');
|
||||
|
||||
// load all available remote calls
|
||||
JPluginHelper::importPlugin( 'xmlrpc' );
|
||||
$allCalls = $mainframe->triggerEvent( 'onGetWebServices' );
|
||||
$methodsArray = array();
|
||||
|
||||
foreach ($allCalls as $calls) {
|
||||
$methodsArray = array_merge($methodsArray, $calls);
|
||||
}
|
||||
|
||||
$xmlrpcServer = new xmlrpc_server($methodsArray, false);
|
||||
// allow casting to be defined by that actual values passed
|
||||
$xmlrpcServer->functions_parameters_type = 'phpvals';
|
||||
// define UTF-8 as the internal encoding for the XML-RPC server
|
||||
$xmlrpcServer->xml_header($mainframe->getEncoding());
|
||||
$xmlrpc_internalencoding = $mainframe->getEncoding();
|
||||
// debug level
|
||||
$xmlrpcServer->setDebug(0);
|
||||
// start the service
|
||||
$xmlrpcServer->service();
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user