moved db_user calls from includes to actual script, buggy when included from navigation master
authorRoland Hieber <devnull@localhost>
Thu, 18 Feb 2010 17:02:21 +0000 (18:02 +0100)
committerRoland Hieber <devnull@localhost>
Thu, 18 Feb 2010 17:02:21 +0000 (18:02 +0100)
inc/functions.inc
inc/mod_roomReservationConfig.inc
inc/mod_roomReservationRoomsManager.inc
src/config.php
src/index.php

index ca915c2..741f8f7 100644 (file)
@@ -31,8 +31,6 @@ require_once("db.inc");
 require_once("user.inc");
 require_once("sec/secure.inc");
 
 require_once("user.inc");
 require_once("sec/secure.inc");
 
-db_user("roomreservation");
-
 /**
  * @page errorcodes Error Codes
  * @{
 /**
  * @page errorcodes Error Codes
  * @{
index 6acc199..7fe357a 100644 (file)
@@ -32,8 +32,6 @@ require_once("mod_room-reservation/functions.inc");
 require_once("mod_room-reservation/mod_roomReservationTimeslice.inc");
 require_once("mod_room-reservation/mod_roomReservationRoomsManager.inc");
 
 require_once("mod_room-reservation/mod_roomReservationTimeslice.inc");
 require_once("mod_room-reservation/mod_roomReservationRoomsManager.inc");
 
-db_user("roomreservation");
-
 /**
  * Determines if a privilege has been assigned
  * @param $sPriv (string) Privilege to test
 /**
  * Determines if a privilege has been assigned
  * @param $sPriv (string) Privilege to test
index 2ceb1b9..4c90b79 100644 (file)
@@ -31,8 +31,6 @@ require_once("mod_room-reservation/functions.inc");
 require_once("mod_room-reservation/mod_roomReservationRoom.inc");
 require_once("mod_room-reservation/mod_roomReservationConfig.inc");
 
 require_once("mod_room-reservation/mod_roomReservationRoom.inc");
 require_once("mod_room-reservation/mod_roomReservationConfig.inc");
 
-db_user("roomreservation");
-
 /** Simple class for creating, editing and deleting rooms */
 class mod_roomReservationRoomsManager {
   /** (mod_roomReservationConfig) Reference to the configuration */
 /** Simple class for creating, editing and deleting rooms */
 class mod_roomReservationRoomsManager {
   /** (mod_roomReservationConfig) Reference to the configuration */
index 3873bdd..f0fcf2d 100644 (file)
@@ -30,6 +30,8 @@ require_once("sec/admsecure.inc");
 require_once("mod_room-reservation/globals.inc");
 require_once("mod_room-reservation/mod_roomReservationConfigPage.inc");
 
 require_once("mod_room-reservation/globals.inc");
 require_once("mod_room-reservation/mod_roomReservationConfigPage.inc");
 
+db_user("roomreservation");
+
 $page = new mod_roomReservationConfigPage($g_rrCfg);
 $page->show();
 ?>
 $page = new mod_roomReservationConfigPage($g_rrCfg);
 $page->show();
 ?>
index 0e1de6e..6ad479d 100644 (file)
@@ -28,6 +28,9 @@
 
 require_once("mod_room-reservation/globals.inc");
 require_once("mod_room-reservation/mod_roomReservationBookingPage.inc");
 
 require_once("mod_room-reservation/globals.inc");
 require_once("mod_room-reservation/mod_roomReservationBookingPage.inc");
+
+db_user("roomreservation");
+
 $page = new mod_roomReservationBookingPage($g_rrCfg, $g_rrRm, $g_rrBm);
 $page->setTitle(_c("room-reservation:Schedule of room bookings"));
 $page->show();
 $page = new mod_roomReservationBookingPage($g_rrCfg, $g_rrRm, $g_rrBm);
 $page->setTitle(_c("room-reservation:Schedule of room bookings"));
 $page->show();
This page took 0.028676 seconds and 4 git commands to generate.