Module: nagvis
Branch: master
Commit: 6afd459726d0602b1357a4b9cf1aff93b6eb8418
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/nagvis;a=commit;h=6afd459726d0602b1357a4b9cf1aff93b6eb8418

Author: Lars Michelsen <[email protected]>
Date:   Thu Sep 10 15:14:47 2009 +0200

#8 First steps to make the wui work with the new directory structure

---

 share/frontend/wui/defines/wui.php |   38 ++++++++++++++++++++++++++++++++++++
 share/frontend/wui/index.php       |   19 ++++++++++-------
 2 files changed, 49 insertions(+), 8 deletions(-)

diff --git a/share/frontend/wui/defines/wui.php 
b/share/frontend/wui/defines/wui.php
new file mode 100644
index 0000000..4c446f9
--- /dev/null
+++ b/share/frontend/wui/defines/wui.php
@@ -0,0 +1,38 @@
+<?PHP
+/*****************************************************************************
+ *
+ * wui.php - File for wui configuration frontend related constants and some
+ *           other standards
+ *
+ * Copyright (c) 2004-2009 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.
+ *
+ *****************************************************************************/
+ 
+/**
+ * @author     Lars Michelsen <[email protected]>
+ */
+
+/**
+ * Set the path to look for included files
+ */
+set_include_path(
+       get_include_path()
+       .PATH_SEPARATOR.'../../frontend/nagvis-js/classes/'
+       .PATH_SEPARATOR.'../../frontend/wui/includes/classes/'
+);
+?>
diff --git a/share/frontend/wui/index.php b/share/frontend/wui/index.php
index 70bf1c8..ee36974 100644
--- a/share/frontend/wui/index.php
+++ b/share/frontend/wui/index.php
@@ -3,7 +3,7 @@
  *
  * index.php - Main page of the WUI
  *
- * Copyright (c) 2004-2008 NagVis Project (Contact: [email protected])
+ * Copyright (c) 2004-2009 NagVis Project (Contact: [email protected])
  *
  * License:
  *
@@ -26,15 +26,18 @@
  * @author     Lars Michelsen <[email protected]>
  */
 
-// Include defines
-require("../nagvis/includes/defines/global.php");
-require("../nagvis/includes/defines/matches.php");
+// Include global defines
+require('../../server/core/defines/global.php');
+require('../../server/core/defines/matches.php');
+
+// Include wui related defines
+require('defines/wui.php');
 
 // Include functions
-require("../nagvis/includes/functions/autoload.php");
-require("../nagvis/includes/functions/debug.php");
-require("../nagvis/includes/functions/getuser.php");
-require("../nagvis/includes/functions/oldPhpVersionFixes.php");
+require("../../server/core/functions/autoload.php");
+require("../../server/core/functions/debug.php");
+require("../../server/core/functions/getuser.php");
+require("../../server/core/functions/oldPhpVersionFixes.php");
 
 // This defines wether the GlobalFrontendMessage prints HTML or ajax error 
messages
 define('CONST_AJAX' , FALSE);


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to