Module: nagvis Branch: master Commit: fbcd0a2bb88f624e81d4720ff2709bce8be3fc7e URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=fbcd0a2bb88f624e81d4720ff2709bce8be3fc7e
Author: LaMi <[email protected]> Date: Wed Feb 17 21:58:13 2010 +0100 Re-added config.php redirection --- share/config.php | 29 +++++++++++++++++++++++++++++ share/index.php | 4 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/share/config.php b/share/config.php new file mode 100644 index 0000000..2a6a7b0 --- /dev/null +++ b/share/config.php @@ -0,0 +1,29 @@ +<?php +/***************************************************************************** + * + * config.php - Redirects the requests to the frontend index file + * + * Copyright (c) 2004-2010 NagVis Project (Contact: [email protected]) + * + * License: + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + *****************************************************************************/ + +header("Location: ". ((isset($_SERVER["HTTPS"])) ? 'https://': 'http://') . $_SERVER['HTTP_HOST'] + . ((isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80') ? ':'.$_SERVER['SERVER_PORT']: '') + . rtrim(dirname($_SERVER['PHP_SELF']), '/\\') + . "/frontend/wui/index.php".(($_SERVER["QUERY_STRING"] != '') ? '?':'').$_SERVER["QUERY_STRING"]); +?> diff --git a/share/index.php b/share/index.php index e687c22..d57cc6b 100644 --- a/share/index.php +++ b/share/index.php @@ -1,9 +1,9 @@ <?php /***************************************************************************** * - * config.php - Redirects the requests to the frontend index file + * index.php - Redirects the requests to the frontend index file * - * Copyright (c) 2004-2008 NagVis Project (Contact: [email protected]) + * Copyright (c) 2004-2010 NagVis Project (Contact: [email protected]) * * License: * ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
