//replace dirname(__FILE__) by _PS_ADMIN_DIR_ to prevent cache bug with __FILE__
This commit is contained in:
@@ -25,8 +25,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
define('_PS_ADMIN_DIR_', getcwd());
|
define('_PS_ADMIN_DIR_', getcwd());
|
||||||
require(dirname(__FILE__).'/../config/config.inc.php');
|
require(_PS_ADMIN_DIR_.'/../config/config.inc.php');
|
||||||
require(dirname(__FILE__).'/functions.php');
|
require(_PS_ADMIN_DIR_.'/functions.php');
|
||||||
|
|
||||||
// For retrocompatibility with "tab" parameter
|
// For retrocompatibility with "tab" parameter
|
||||||
if (!isset($_GET['controller']) && isset($_GET['tab']))
|
if (!isset($_GET['controller']) && isset($_GET['tab']))
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@
|
|||||||
define('_PS_ADMIN_DIR_', getcwd());
|
define('_PS_ADMIN_DIR_', getcwd());
|
||||||
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
|
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
|
||||||
/* Getting cookie or logout */
|
/* Getting cookie or logout */
|
||||||
require_once(dirname(__FILE__).'/init.php');
|
require_once(_PS_ADMIN_DIR_.'/init.php');
|
||||||
|
|
||||||
$context = Context::getContext();
|
$context = Context::getContext();
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
define('_PS_ADMIN_DIR_', getcwd());
|
define('_PS_ADMIN_DIR_', getcwd());
|
||||||
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
|
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
|
||||||
/* Getting cookie or logout */
|
/* Getting cookie or logout */
|
||||||
require_once(dirname(__FILE__).'/init.php');
|
require_once(_PS_ADMIN_DIR_.'/init.php');
|
||||||
|
|
||||||
$query = Tools::getValue('q', false);
|
$query = Tools::getValue('q', false);
|
||||||
if (!$query OR $query == '' OR strlen($query) < 1)
|
if (!$query OR $query == '' OR strlen($query) < 1)
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
define('_PS_ADMIN_DIR_', getcwd());
|
define('_PS_ADMIN_DIR_', getcwd());
|
||||||
require_once(dirname(__FILE__).'/../config/config.inc.php');
|
require_once(_PS_ADMIN_DIR_.'/../config/config.inc.php');
|
||||||
require_once(dirname(__FILE__).'/init.php');
|
require_once(_PS_ADMIN_DIR_.'/init.php');
|
||||||
|
|
||||||
if (isset($_GET['img']) AND Validate::isMd5($_GET['img']) AND isset($_GET['name']) AND Validate::isGenericName($_GET['name']) AND file_exists(_PS_UPLOAD_DIR_.$_GET['img']))
|
if (isset($_GET['img']) AND Validate::isMd5($_GET['img']) AND isset($_GET['name']) AND Validate::isGenericName($_GET['name']) AND file_exists(_PS_UPLOAD_DIR_.$_GET['img']))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
define('_PS_ADMIN_DIR_', getcwd());
|
define('_PS_ADMIN_DIR_', getcwd());
|
||||||
include_once(dirname(__FILE__).'/../config/config.inc.php');
|
include_once(_PS_ADMIN_DIR_.'/../config/config.inc.php');
|
||||||
|
|
||||||
$module = Tools::getValue('module');
|
$module = Tools::getValue('module');
|
||||||
$render = Tools::getValue('render');
|
$render = Tools::getValue('render');
|
||||||
|
|||||||
@@ -25,5 +25,5 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
define('_PS_ADMIN_DIR_', getcwd());
|
define('_PS_ADMIN_DIR_', getcwd());
|
||||||
require(dirname(dirname(__FILE__)).'/config/config.inc.php');
|
require(_PS_ADMIN_DIR_.'/config/config.inc.php');
|
||||||
Controller::getController('GetFileController')->run();
|
Controller::getController('GetFileController')->run();
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
define('_PS_ADMIN_DIR_', getcwd());
|
define('_PS_ADMIN_DIR_', getcwd());
|
||||||
include_once(dirname(__FILE__).'/../config/config.inc.php');
|
include_once(_PS_ADMIN_DIR_.'/../config/config.inc.php');
|
||||||
|
|
||||||
$module = Tools::getValue('module');
|
$module = Tools::getValue('module');
|
||||||
$render = Tools::getValue('render');
|
$render = Tools::getValue('render');
|
||||||
|
|||||||
+2
-2
@@ -27,8 +27,8 @@
|
|||||||
$timer_start = microtime(true);
|
$timer_start = microtime(true);
|
||||||
define('_PS_ADMIN_DIR_', getcwd());
|
define('_PS_ADMIN_DIR_', getcwd());
|
||||||
|
|
||||||
require(dirname(__FILE__).'/../config/config.inc.php');
|
require(_PS_ADMIN_DIR_.'/../config/config.inc.php');
|
||||||
require(dirname(__FILE__).'/functions.php');
|
require(_PS_ADMIN_DIR_.'/functions.php');
|
||||||
|
|
||||||
//small test to clear cache after upgrade
|
//small test to clear cache after upgrade
|
||||||
if (Configuration::get('PS_UPGRADE_CLEAR_CACHE'))
|
if (Configuration::get('PS_UPGRADE_CLEAR_CACHE'))
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
define('_PS_ADMIN_DIR_', getcwd());
|
define('_PS_ADMIN_DIR_', getcwd());
|
||||||
include(dirname(__FILE__).'/../config/config.inc.php');
|
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
|
||||||
Context::getContext()->shop->setContext(Shop::CONTEXT_ALL);
|
Context::getContext()->shop->setContext(Shop::CONTEXT_ALL);
|
||||||
|
|
||||||
if (substr(_COOKIE_KEY_, 34, 8) != Tools::getValue('token'))
|
if (substr(_COOKIE_KEY_, 34, 8) != Tools::getValue('token'))
|
||||||
|
|||||||
Reference in New Issue
Block a user