Ensure to not be able to call s9y files under circumstances where .htaccess does not deny request AND register_globals is turned on
This commit is contained in:
@ -350,7 +350,14 @@ Version 1.1-alpha5()
|
|||||||
* Removed config option "XHTML11 compliance" and enabled by default
|
* Removed config option "XHTML11 compliance" and enabled by default
|
||||||
now (garvinhicking)
|
now (garvinhicking)
|
||||||
|
|
||||||
Version 1.0.3 ()
|
Version 1.0.4 ()
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Fix local file inclusion bug on systems with two conditions:
|
||||||
|
register_globals=on AND missing .htaccess for restricting access to
|
||||||
|
.inc.php files. (garvinhicking)
|
||||||
|
|
||||||
|
Version 1.0.3 (November 7th, 2006)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
* Fix PHP 5.2.0 compatibility issue. (garvinhicking)
|
* Fix PHP 5.2.0 compatibility issue. (garvinhicking)
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
umask(0000);
|
umask(0000);
|
||||||
$umask = 0775;
|
$umask = 0775;
|
||||||
@define('IN_installer', true);
|
@define('IN_installer', true);
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
umask(0000);
|
umask(0000);
|
||||||
$umask = 0775;
|
$umask = 0775;
|
||||||
@define('IN_installer', true);
|
@define('IN_installer', true);
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_COMPAT')) {
|
if (defined('S9Y_FRAMEWORK_COMPAT')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_FUNCTIONS')) {
|
if (defined('S9Y_FRAMEWORK_FUNCTIONS')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,14 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_CALENDARS')) {
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (defined('S9Y_FRAMEWORK_CALENDARS')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@define('S9Y_FRAMEWORK_CALENDARS', true);
|
@define('S9Y_FRAMEWORK_CALENDARS', true);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gregorian to Persian Convertor
|
* Gregorian to Persian Convertor
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_COMMENTS')) {
|
if (defined('S9Y_FRAMEWORK_COMMENTS')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_CONFIG')) {
|
if (defined('S9Y_FRAMEWORK_CONFIG')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_ENTRIES')) {
|
if (defined('S9Y_FRAMEWORK_ENTRIES')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_ENTRIES_ADMIN')) {
|
if (defined('S9Y_FRAMEWORK_ENTRIES_ADMIN')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_IMAGES')) {
|
if (defined('S9Y_FRAMEWORK_IMAGES')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -448,4 +448,3 @@ class imgedit {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
@ -2,6 +2,9 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_INSTALLER')) {
|
if (defined('S9Y_FRAMEWORK_INSTALLER')) {
|
||||||
return;
|
return;
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_PERMALINKS')) {
|
if (defined('S9Y_FRAMEWORK_PERMALINKS')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_PLUGINS_ADMIN')) {
|
if (defined('S9Y_FRAMEWORK_PLUGINS_ADMIN')) {
|
||||||
return;
|
return;
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_RSS')) {
|
if (defined('S9Y_FRAMEWORK_RSS')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_SMARTY')) {
|
if (defined('S9Y_FRAMEWORK_SMARTY')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_TRACKBACKS')) {
|
if (defined('S9Y_FRAMEWORK_TRACKBACKS')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_UPGRADER')) {
|
if (defined('S9Y_FRAMEWORK_UPGRADER')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (!defined('S9Y_FRAMEWORK')) {
|
if (!defined('S9Y_FRAMEWORK')) {
|
||||||
include('serendipity_config.inc.php');
|
include('serendipity_config.inc.php');
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (!defined('serendipity_LANG_LOADED') || serendipity_LANG_LOADED !== true) {
|
if (!defined('serendipity_LANG_LOADED') || serendipity_LANG_LOADED !== true) {
|
||||||
$charset = serendipity_getCharset();
|
$charset = serendipity_getCharset();
|
||||||
|
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
if (defined('S9Y_FRAMEWORK_PLUGIN_INTERNAL')) {
|
if (defined('S9Y_FRAMEWORK_PLUGIN_INTERNAL')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<?php # $Id$
|
<?php # $Id$
|
||||||
|
|
||||||
|
if (IN_serendipity !== true) {
|
||||||
|
die ("Don't hack!");
|
||||||
|
}
|
||||||
|
|
||||||
$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
|
$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
|
||||||
if (file_exists($probelang)) {
|
if (file_exists($probelang)) {
|
||||||
include $probelang;
|
include $probelang;
|
||||||
|
Reference in New Issue
Block a user