From 0b9aeeecbb1b7a7746b5ec6ef5f62c4353825aa4 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Mon, 9 Jul 2012 08:07:05 +0000 Subject: [PATCH] 2012-07-09 Juan Manuel Ramon * ajax.php: If we are executing metaconsole define metaconsole constant. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6753 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/ajax.php | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d7b00bebb0..c6be0f4c36 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-07-09 Juan Manuel Ramon + + * ajax.php: If we are executing metaconsole define metaconsole + constant. + 2012-07-08 Junichi Satoh * extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql, diff --git a/pandora_console/ajax.php b/pandora_console/ajax.php index d93368ed07..d178ada518 100644 --- a/pandora_console/ajax.php +++ b/pandora_console/ajax.php @@ -45,6 +45,10 @@ $config["id_user"] = $_SESSION["id_usuario"]; $isFunctionSkins = enterprise_include_once ('include/functions_skins.php'); if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) $config["relative_path"] = enterprise_hook('skins_set_image_skin_path',array($config['id_user'])); + +// Not cool way of know if we are executing from metaconsole or normal console +if (strpos($_SERVER['HTTP_REFERER'], ENTERPRISE_DIR . '/meta/') !== false) + define ('METACONSOLE', true); session_write_close (); if (file_exists ($page)) { require_once ($page);