Changeset:
        a2c2893afabe
        
https://sourceforge.net/p/mrbs/hg-code/ci/a2c2893afabe7cd66456c89c1ee6abc80bc8f324
Author:
        Campbell Morrison <[email protected]>
Date:
        Tue Sep 13 17:24:42 2016 +0100
Log message:

First attempt

diffstat:

 web/Themes/classic126/styling.inc   |   1 +
 web/Themes/default/footer.inc       |   4 +-
 web/Themes/default/header.inc       |   3 +-
 web/Themes/default/styling.inc      |   1 +
 web/add.php                         |   1 +
 web/admin.php                       |   1 +
 web/approve_entry_handler.php       |   2 +
 web/areadefaults.inc.php            |   1 +
 web/auth/auth_auth_basic.inc        |   1 +
 web/auth/auth_config.inc            |   4 +-
 web/auth/auth_crypt.inc             |   1 +
 web/auth/auth_db.inc                |   2 +
 web/auth/auth_db_ext.inc            |   2 +
 web/auth/auth_ext.inc               |   1 +
 web/auth/auth_imap.inc              |   1 +
 web/auth/auth_imap_php.inc          |   1 +
 web/auth/auth_ldap.inc              |   1 +
 web/auth/auth_nis.inc               |   1 +
 web/auth/auth_none.inc              |   1 +
 web/auth/auth_nw.inc                |   1 +
 web/auth/auth_pop3.inc              |   1 +
 web/auth/auth_smtp.inc              |   1 +
 web/auth/auth_wordpress.inc         |   1 +
 web/check_slot_ajax.php             |   2 +
 web/config.inc.php                  |   1 +
 web/css/mrbs-ielte7.css.php         |   3 +-
 web/css/mrbs-print.css.php          |   1 +
 web/css/mrbs-rtl.css.php            |   1 +
 web/css/mrbs.css.php                |   1 +
 web/day.php                         |   4 +-
 web/dbsys.inc                       |  65 ++++++++++++++++++------------------
 web/defaultincludes.inc             |   1 +
 web/del.php                         |   2 +
 web/del_entry.php                   |   2 +
 web/del_entry_ajax.php              |   1 +
 web/edit_area_room.php              |   2 +
 web/edit_entry.php                  |   2 +
 web/edit_entry_handler.php          |   2 +
 web/edit_users.php                  |   2 +
 web/functions.inc                   |   2 +
 web/functions_ical.inc              |   1 +
 web/functions_mail.inc              |   2 +
 web/functions_table.inc             |   1 +
 web/functions_view.inc              |   1 +
 web/grab_globals.inc.php            |   2 +
 web/help.php                        |   1 +
 web/import.php                      |   2 +
 web/index.php                       |   1 +
 web/internalconfig.inc.php          |   1 +
 web/js.inc                          |   1 +
 web/js/admin.js.php                 |   1 +
 web/js/cell_click.js.php            |   1 +
 web/js/datatables.js.php            |   1 +
 web/js/datepicker.js.php            |   1 +
 web/js/edit_area_room.js.php        |   1 +
 web/js/edit_entry.js.php            |   1 +
 web/js/edit_users.js.php            |   1 +
 web/js/functions.js.php             |   1 +
 web/js/general.js.php               |   1 +
 web/js/multiple.js.php              |   1 +
 web/js/pending.js.php               |   1 +
 web/js/refresh.js.php               |   1 +
 web/js/report.js.php                |   1 +
 web/js/resizable.js.php             |   1 +
 web/js/search.js.php                |   1 +
 web/language.inc                    |   3 +-
 web/lib/Locale.php                  |   3 +-
 web/mincals.inc                     |   2 +
 web/month.php                       |   2 +
 web/mrbs_auth.inc                   |   2 +
 web/mrbs_sql.inc                    |   2 +
 web/mysqli.inc                      |   4 +-
 web/pending.php                     |   2 +
 web/pgsql.inc                       |   4 +-
 web/record_activity_ajax.php        |   2 +
 web/report.php                      |   2 +
 web/search.php                      |   2 +
 web/session/session_cookie.inc      |   2 +
 web/session/session_host.inc        |   1 +
 web/session/session_http.inc        |   4 +-
 web/session/session_ip.inc          |   1 +
 web/session/session_nt.inc          |   1 +
 web/session/session_omni.inc        |   1 +
 web/session/session_php.inc         |   2 +
 web/session/session_remote_user.inc |   2 +
 web/session/session_wordpress.inc   |   1 +
 web/standard_vars.inc.php           |   1 +
 web/style.inc                       |   1 +
 web/systemdefaults.inc.php          |   1 +
 web/theme.inc                       |   1 +
 web/trailer.inc                     |   1 +
 web/upgrade.inc                     |   1 +
 web/upgrade/13/post.inc             |   1 +
 web/upgrade/15/post.inc             |   1 +
 web/upgrade/16/post.inc             |   1 +
 web/upgrade/17/post.inc             |   1 +
 web/upgrade/2/post.inc              |   1 +
 web/upgrade/21/post.inc             |   1 +
 web/upgrade/24/post.inc             |   1 +
 web/upgrade/26/post.inc             |   1 +
 web/upgrade/32/post.inc             |   1 +
 web/upgrade/34/post.inc             |   1 +
 web/upgrade/4/post.inc              |   1 +
 web/upgrade/43/post.inc             |   1 +
 web/upgrade/46/post.inc             |   1 +
 web/upgrade/47/post.inc             |   3 +-
 web/upgrade/48/post.inc             |   1 +
 web/upgrade/5/post.inc              |   1 +
 web/upgrade/6/post.inc              |   1 +
 web/upgrade/7/post.inc              |   1 +
 web/upgrade/8/post.inc              |   1 +
 web/version.inc                     |   1 +
 web/version_num.inc                 |   1 +
 web/view_entry.php                  |   2 +
 web/week.php                        |   2 +
 115 files changed, 189 insertions(+), 45 deletions(-)

diffs (truncated from 1406 to 300 lines):

diff -r 27ee894aead7 -r a2c2893afabe web/Themes/classic126/styling.inc
--- a/web/Themes/classic126/styling.inc Tue Sep 13 12:29:23 2016 +0100
+++ b/web/Themes/classic126/styling.inc Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/Themes/default/footer.inc
--- a/web/Themes/default/footer.inc     Tue Sep 13 12:29:23 2016 +0100
+++ b/web/Themes/default/footer.inc     Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,6 @@
-<?php // -*-mode: PHP; coding:utf-8;-*-
+<?php
+namespace MRBS;
+
 // $Id$
 
 function print_theme_footer()
diff -r 27ee894aead7 -r a2c2893afabe web/Themes/default/header.inc
--- a/web/Themes/default/header.inc     Tue Sep 13 12:29:23 2016 +0100
+++ b/web/Themes/default/header.inc     Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 // $Id$
 
@@ -227,7 +228,7 @@
       </td>
       <?php
       // For session protocols that define their own logon box...
-      if (function_exists('PrintLogonBox'))
+      if (function_exists(__NAMESPACE__ . "\PrintLogonBox"))
       {
         echo "<td>\n";
         echo "<div id=\"logon_box\">\n";
diff -r 27ee894aead7 -r a2c2893afabe web/Themes/default/styling.inc
--- a/web/Themes/default/styling.inc    Tue Sep 13 12:29:23 2016 +0100
+++ b/web/Themes/default/styling.inc    Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/add.php
--- a/web/add.php       Tue Sep 13 12:29:23 2016 +0100
+++ b/web/add.php       Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/admin.php
--- a/web/admin.php     Tue Sep 13 12:29:23 2016 +0100
+++ b/web/admin.php     Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/approve_entry_handler.php
--- a/web/approve_entry_handler.php     Tue Sep 13 12:29:23 2016 +0100
+++ b/web/approve_entry_handler.php     Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,6 @@
 <?php
+namespace MRBS;
+
 // $Id$
 
 // Handles actions on bookings awaiting approval
diff -r 27ee894aead7 -r a2c2893afabe web/areadefaults.inc.php
--- a/web/areadefaults.inc.php  Tue Sep 13 12:29:23 2016 +0100
+++ b/web/areadefaults.inc.php  Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_auth_basic.inc
--- a/web/auth/auth_auth_basic.inc      Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_auth_basic.inc      Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 /* $Id$
  *
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_config.inc
--- a/web/auth/auth_config.inc  Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_config.inc  Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,6 @@
-<?php 
+<?php
+namespace MRBS;
+
 /*****************************************************************************
 *
 *   File name       auth_config.inc
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_crypt.inc
--- a/web/auth/auth_crypt.inc   Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_crypt.inc   Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 /* $Id$
  *
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_db.inc
--- a/web/auth/auth_db.inc      Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_db.inc      Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,6 @@
 <?php
+namespace MRBS;
+
 /*****************************************************************************
 *
 *   File name       auth_db.inc
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_db_ext.inc
--- a/web/auth/auth_db_ext.inc  Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_db_ext.inc  Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,6 @@
 <?php
+namespace MRBS;
+
 /*****************************************************************************
 *
 *   File name       auth_db_ext.inc
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_ext.inc
--- a/web/auth/auth_ext.inc     Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_ext.inc     Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 /* $Id$
  *
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_imap.inc
--- a/web/auth/auth_imap.inc    Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_imap.inc    Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 /* $Id$
  *
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_imap_php.inc
--- a/web/auth/auth_imap_php.inc        Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_imap_php.inc        Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 /* $Id$
  *
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_ldap.inc
--- a/web/auth/auth_ldap.inc    Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_ldap.inc    Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_nis.inc
--- a/web/auth/auth_nis.inc     Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_nis.inc     Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 /* $Id$
  *
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_none.inc
--- a/web/auth/auth_none.inc    Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_none.inc    Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 /* $Id$
  *
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_nw.inc
--- a/web/auth/auth_nw.inc      Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_nw.inc      Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_pop3.inc
--- a/web/auth/auth_pop3.inc    Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_pop3.inc    Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 /* $Id$
  *
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_smtp.inc
--- a/web/auth/auth_smtp.inc    Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_smtp.inc    Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 /* $Id$
  *
diff -r 27ee894aead7 -r a2c2893afabe web/auth/auth_wordpress.inc
--- a/web/auth/auth_wordpress.inc       Tue Sep 13 12:29:23 2016 +0100
+++ b/web/auth/auth_wordpress.inc       Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 define('WP_USE_THEMES', false);
 require_once MRBS_ROOT . '/'. $auth['wordpress']['rel_path'] . '/wp-load.php';
diff -r 27ee894aead7 -r a2c2893afabe web/check_slot_ajax.php
--- a/web/check_slot_ajax.php   Tue Sep 13 12:29:23 2016 +0100
+++ b/web/check_slot_ajax.php   Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,6 @@
 <?php
+namespace MRBS;
+
 // $Id$
 
 // An Ajax function to check which of an array of time slots is invalid.  (We 
need to do
diff -r 27ee894aead7 -r a2c2893afabe web/config.inc.php
--- a/web/config.inc.php        Tue Sep 13 12:29:23 2016 +0100
+++ b/web/config.inc.php        Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/css/mrbs-ielte7.css.php
--- a/web/css/mrbs-ielte7.css.php       Tue Sep 13 12:29:23 2016 +0100
+++ b/web/css/mrbs-ielte7.css.php       Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
-<?php 
+<?php
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/css/mrbs-print.css.php
--- a/web/css/mrbs-print.css.php        Tue Sep 13 12:29:23 2016 +0100
+++ b/web/css/mrbs-print.css.php        Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php 
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/css/mrbs-rtl.css.php
--- a/web/css/mrbs-rtl.css.php  Tue Sep 13 12:29:23 2016 +0100
+++ b/web/css/mrbs-rtl.css.php  Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/css/mrbs.css.php
--- a/web/css/mrbs.css.php      Tue Sep 13 12:29:23 2016 +0100
+++ b/web/css/mrbs.css.php      Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php 
+namespace MRBS;
 
 // $Id$
 
diff -r 27ee894aead7 -r a2c2893afabe web/day.php
--- a/web/day.php       Tue Sep 13 12:29:23 2016 +0100
+++ b/web/day.php       Tue Sep 13 17:24:42 2016 +0100
@@ -1,8 +1,8 @@
 <?php
+namespace MRBS;
+
 // $Id$
 
-
-
 require "defaultincludes.inc";
 require_once "mincals.inc";
 require_once "functions_table.inc";
diff -r 27ee894aead7 -r a2c2893afabe web/dbsys.inc
--- a/web/dbsys.inc     Tue Sep 13 12:29:23 2016 +0100
+++ b/web/dbsys.inc     Tue Sep 13 17:24:42 2016 +0100
@@ -1,4 +1,5 @@
 <?php
+namespace MRBS;
 

------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to