include files with require_once, check if $settings are set already

This commit is contained in:
Uwe Steinmann 2022-04-12 07:15:56 +02:00
parent b558844841
commit 202e607959
13 changed files with 133 additions and 108 deletions

View File

@ -16,14 +16,17 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Language.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Init.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Language.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Init.php");
include("../inc/inc.ClassAcl.php"); require_once("inc/inc.Extension.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.ClassAcl.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));

View File

@ -19,15 +19,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Utils.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Language.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Init.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Language.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Init.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Extension.php");
include("../inc/inc.ClassAccessOperation.php"); require_once("inc/inc.DBInit.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));

View File

@ -16,15 +16,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Utils.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Language.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Init.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Language.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Init.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Extension.php");
include("../inc/inc.ClassAccessOperation.php"); require_once("inc/inc.DBInit.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) { if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));

View File

@ -18,15 +18,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Utils.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Language.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Init.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Language.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Init.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Extension.php");
include("../inc/inc.ClassAccessOperation.php"); require_once("inc/inc.DBInit.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));

View File

@ -19,14 +19,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.LogInit.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Language.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Init.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Language.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Init.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Extension.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));

View File

@ -18,13 +18,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Language.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Init.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Language.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Init.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.Extension.php");
require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));

View File

@ -18,15 +18,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Utils.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Language.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Init.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Language.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Init.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Extension.php");
include("../inc/inc.ClassAccessOperation.php"); require_once("inc/inc.DBInit.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) { if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));

View File

@ -18,13 +18,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Language.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Init.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Language.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Init.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.Extension.php");
require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));

View File

@ -16,16 +16,18 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Version.php"); if(!isset($settings))
include("../inc/inc.Settings.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.LogInit.php"); require_once("inc/inc.Version.php");
include("../inc/inc.Language.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Init.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Language.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Init.php");
include("../inc/inc.Scheduler.php"); require_once("inc/inc.Extension.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.DBInit.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.Scheduler.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));

View File

@ -19,15 +19,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Utils.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Language.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Init.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Language.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Init.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Extension.php");
include("../inc/inc.ClassAccessOperation.php"); require_once("inc/inc.DBInit.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));

View File

@ -19,15 +19,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Utils.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Language.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Init.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Language.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Init.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Extension.php");
include("../inc/inc.ClassAccessOperation.php"); require_once("inc/inc.DBInit.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));

View File

@ -16,13 +16,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Language.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Init.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Language.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Init.php");
include("../inc/inc.BasicAuthentication.php"); require_once("inc/inc.Extension.php");
require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.BasicAuthentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));

View File

@ -18,13 +18,16 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php"); if(!isset($settings))
include("../inc/inc.Language.php"); require_once("../inc/inc.Settings.php");
include("../inc/inc.Init.php"); require_once("inc/inc.LogInit.php");
include("../inc/inc.Extension.php"); require_once("inc/inc.Utils.php");
include("../inc/inc.DBInit.php"); require_once("inc/inc.Language.php");
include("../inc/inc.ClassUI.php"); require_once("inc/inc.Init.php");
include("../inc/inc.Authentication.php"); require_once("inc/inc.Extension.php");
require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
require_once("../views/".$theme."/trait.TransmittalUpdateButton.php"); require_once("../views/".$theme."/trait.TransmittalUpdateButton.php");
require_once("../views/".$theme."/trait.TransmittalDeleteButton.php"); require_once("../views/".$theme."/trait.TransmittalDeleteButton.php");