From c0bff74516e64239b0014e4d831fa2f314c26227 Mon Sep 17 00:00:00 2001 From: administrador User Date: Mon, 16 Feb 2009 22:57:20 +0100 Subject: [PATCH] public_base_directory() movido a const.php para crear la variable $_RAIZ --- contenido/mupis+ubicaciones+dinamico.php | 14 -------------- include/const.php | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/contenido/mupis+ubicaciones+dinamico.php b/contenido/mupis+ubicaciones+dinamico.php index 88e2c20..7c48ed2 100755 --- a/contenido/mupis+ubicaciones+dinamico.php +++ b/contenido/mupis+ubicaciones+dinamico.php @@ -204,20 +204,6 @@ $datos .= SCRIPT('onLoad();'); return $datos; } -function public_base_directory() -{ - $url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://'; - $url .= $_SERVER['HTTP_HOST']; - //get public directory structure eg "/top/second/third" - $public_directory = dirname($_SERVER['PHP_SELF']); - //place each directory into array - $directory_array = explode('/', $public_directory); - //get highest or top level in array of directory strings - $public_base = max($directory_array); - - return $url."/".$public_base; -} - function actualizarCoords ($id, $lat, $lng) { global $database; $q = "UPDATE ".TBL_MUPI." SET lat='$lat', lon='$lng' WHERE id_mupi='$id';"; diff --git a/include/const.php b/include/const.php index 05ec612..c3781ba 100755 --- a/include/const.php +++ b/include/const.php @@ -1,4 +1,6 @@ -- 2.11.4.GIT