Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sites/site1/public/index.php & sites/site1/public/css.php missing some new lines of code (that were added in TXP 4.5) #254

Closed
ghost opened this issue Oct 4, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 4, 2014

From julian.l...@gmail.com on August 27, 2012 20:11:29

A diff between files index.php & css.php in root folder and the equivalents in sites/site1/public/ shows that there are new lines of code on the former that are not present on the later.

--- index.php 2012-07-24 13:39:14.000000000 -0300
+++ sites/site1/public/index.php 2009-10-30 16:12:05.000000000 -0300
@@ -1,56 +1,18 @@

$value - ) { - if (!in_array($_txpfoo, array( - 'GLOBALS', - '_SERVER', - '_GET', - '_POST', - '_FILES', - '_COOKIE', - '_SESSION', - '_REQUEST', - '_ENV', - ))) { - unset($GLOBALS[$_txpfoo], $$_txpfoo); - } - } ## \- } - if (@ini_get('register_globals')) - foreach ( $_REQUEST as $name => $value ) - ``` unset($$name); ``` define("txpinterface", "public"); - if (!defined('txpath')) - { - define("txpath", dirname(**FILE**).'/textpattern'); ## \- } ``` // save server path to site root if (!isset($here)) { ``` @@ -62,22 +24,21 @@ { // Use buffering to ensure bogus whitespace in config.php is ignored ob_start(NULL, 2048); - include txpath.'/config.php'; - ``` include '../private/config.php'; ob_end_clean(); ``` } - if (!defined('txpath')) - { - define("txpath", realpath(dirname(**FILE**).'/../../../textpattern')); - } + include txpath.'/lib/constants.php'; include txpath.'/lib/txplib_misc.php'; if (!isset($txpcfg['table_prefix'])) { txp_status_header('503 Service Unavailable'); - exit('config.php is missing or corrupt. To install Textpattern, visit textpattern/setup/'); ## \- } - // custom caches et cetera? - if (isset($txpcfg['pre_publish_script'])) - { - require $txpcfg['pre_publish_script']; - ``` exit('config.php is missing or corrupt. To install Textpattern, visit textpattern/setup/'); ``` } include txpath.'/publish.php'; _Original issue: http://code.google.com/p/textpattern/issues/detail?id=250_
@ghost ghost added the imported label Oct 4, 2014
@ghost
Copy link
Author

ghost commented Oct 4, 2014

From julian.l...@gmail.com on August 27, 2012 11:12:17

Missed to add the diff for css.phs. Here it is:

--- css.php 2012-07-24 13:39:14.000000000 -0300
+++ sites/site1/public/css.php 2009-06-28 22:21:57.000000000 -0300
@@ -1,64 +1,9 @@

$value - ) { - if (!in_array($_txpfoo, array( - 'GLOBALS', - '_SERVER', - '_GET', - '_POST', - '_FILES', - '_COOKIE', - '_SESSION', - '_REQUEST', - '_ENV', - ))) { - unset($GLOBALS[$_txpfoo], $$_txpfoo); - } - } -} - -header('Content-type: text/css'); - -if (!defined("txpath")) -{ - define("txpath", dirname(**FILE**).'/textpattern'); -} - -if (!isset($txpcfg['table_prefix'])) -{ - ob_start(NULL, 2048); - include txpath.'/config.php'; - ob_end_clean(); -} - -$nolog = 1; -define("txpinterface", "css"); -include txpath.'/publish.php'; -$s = gps('s'); -$n = gps('n'); -output_css($s,$n); +include '../private/config.php'; +include txpath.'/../css.php'; ?>

@ghost
Copy link
Author

ghost commented Oct 4, 2014

From r.wetzlmayr on August 28, 2012 23:15:14

This issue was closed by revision r4085 .

Status: Fixed

@ghost ghost closed this as completed Oct 4, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants