admin/index.php:
define('IN_CP', 1);
define('ROOT_PATH', './../');
require('admin_global.php');
admin_global.php:
if (!defined('ROOT_PATH')) {
die("Security violation");
}
define('GET_CACHES', 1);
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
include(ROOT_PATH.'admin/admin_functions.php');
admin/plugins/admin_encuestas.php
<?php // PLUGIN_TITLE: Control de encuestas
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";
define('ROOT_PATH', $root_path);
require(ROOT_PATH.'admin/admin_global.php');
show_admin_header();
Those are the settings from my linux box. Here it worls. On my windows box does not work. Did also try your suggestion $root_path = (eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../../" : "./../";
Did not work either.
Thanks for all your help trying to figure this one out.