Forum Subject: Geeklog upgrade from 1.7.2 to 1.8.0b1 issue
Posted on: 04/06/11 12:35pm By: ::Ben
I made an update from 1.7.2 to 1.8.0b1. Everything seems to work but access to admin/plugins.php
Give me the nice message >> This file can not be used on its own. :
Ben
Re: Geeklog upgrade from 1.7.2 to 1.8.0b1 issue
Posted on: 04/07/11 10:46am By: ::Ben
This is this part of the code which creates the issue
When the admin/plugins.php page try to check depencies, the PLG_getParams function can include config.php file from old plugins. But if config file from the old plugin begin with:
Text Formatted Code
if (!defined ('GVERSION')) {
die ('This file can not be used on its own.');
}
change to:
Text Formatted Code
if (strpos(strtolower($_SERVER['PHP_SELF']), 'config.php') !== false) {
die('This file can not be used on its own!');
}