require init

if init.inc.php not exists, it will stop script, include just continue.
This commit is contained in:
Sebijk 2023-10-13 21:26:09 +02:00
parent 15e17a6075
commit 3bde398b52
31 changed files with 35 additions and 35 deletions

View file

@ -41,7 +41,7 @@ if(isset($_COOKIE['bm_language'])
} }
} }
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
if(isset($_REQUEST['sid']) && trim($_REQUEST['sid']) != '') if(isset($_REQUEST['sid']) && trim($_REQUEST['sid']) != '')
RequestPrivileges(PRIVILEGES_USER, true) || RequestPrivileges(PRIVILEGES_ADMIN, true); RequestPrivileges(PRIVILEGES_USER, true) || RequestPrivileges(PRIVILEGES_ADMIN, true);

View file

@ -19,8 +19,8 @@
* *
*/ */
include './serverlib/init.inc.php'; require './serverlib/init.inc.php';
include './serverlib/pop3gateway.class.php'; require './serverlib/pop3gateway.class.php';
include './serverlib/userpop3gateway.class.php'; include './serverlib/userpop3gateway.class.php';
include './serverlib/calendar.class.php'; include './serverlib/calendar.class.php';
@ -70,7 +70,7 @@ if ($bm_prefs['last_cron'] < time() - $bm_prefs['cron_interval']) {
} }
register_shutdown_function('ReleaseCronLock'); register_shutdown_function('ReleaseCronLock');
include './serverlib/cron.inc.php'; require './serverlib/cron.inc.php';
// update last cron run time // update last cron run time
$db->Query('UPDATE {pre}prefs SET last_cron=?', $db->Query('UPDATE {pre}prefs SET last_cron=?',

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
include('./serverlib/userpop3gateway.class.php'); include('./serverlib/userpop3gateway.class.php');
// try to prevent abortion // try to prevent abortion

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
/** /**
* file handler for modules * file handler for modules

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
if(!class_exists('BMMailbox')) if(!class_exists('BMMailbox'))
include('./serverlib/mailbox.class.php'); include('./serverlib/mailbox.class.php');
include('./serverlib/addressbook.class.php'); include('./serverlib/addressbook.class.php');

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
if(!class_exists('BMMailbox')) if(!class_exists('BMMailbox'))
include('./serverlib/mailbox.class.php'); include('./serverlib/mailbox.class.php');
RequestPrivileges(PRIVILEGES_USER); RequestPrivileges(PRIVILEGES_USER);

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
if(!class_exists('BMMailbox')) if(!class_exists('BMMailbox'))
include('./serverlib/mailbox.class.php'); include('./serverlib/mailbox.class.php');
include('./serverlib/zip.class.php'); include('./serverlib/zip.class.php');

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
if(!class_exists('BMMailbox')) if(!class_exists('BMMailbox'))
include('./serverlib/mailbox.class.php'); include('./serverlib/mailbox.class.php');
include('./serverlib/vcard.class.php'); include('./serverlib/vcard.class.php');

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
/** /**
* languages * languages

View file

@ -21,7 +21,7 @@
define('INTERFACE_MODE', true); define('INTERFACE_MODE', true);
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
include('../serverlib/dav.inc.php'); include('../serverlib/dav.inc.php');
include('../serverlib/organizerdav.inc.php'); include('../serverlib/organizerdav.inc.php');
include('../serverlib/calendar.class.php'); include('../serverlib/calendar.class.php');

View file

@ -21,7 +21,7 @@
define('INTERFACE_MODE', true); define('INTERFACE_MODE', true);
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
include('../serverlib/dav.inc.php'); include('../serverlib/dav.inc.php');
include('../serverlib/organizerdav.inc.php'); include('../serverlib/organizerdav.inc.php');
include('../serverlib/addressbook.class.php'); include('../serverlib/addressbook.class.php');

View file

@ -20,7 +20,7 @@
*/ */
define('INTERFACE_MODE', true); define('INTERFACE_MODE', true);
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
$exportedClasses = array( $exportedClasses = array(
'BMToolInterface' => array( 'BMToolInterface' => array(

View file

@ -20,7 +20,7 @@
*/ */
define('INTERFACE_MODE', true); define('INTERFACE_MODE', true);
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
include('../serverlib/payment.class.php'); include('../serverlib/payment.class.php');
PutLog(sprintf('IPN: <%s> Called', PutLog(sprintf('IPN: <%s> Called',

View file

@ -20,7 +20,7 @@
*/ */
define('INTERFACE_MODE', true); define('INTERFACE_MODE', true);
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
include('../serverlib/payment.class.php'); include('../serverlib/payment.class.php');
PutLog('SU-Callback: Called', PutLog('SU-Callback: Called',

View file

@ -22,7 +22,7 @@
define('INTERFACE_MODE', true); define('INTERFACE_MODE', true);
define('WEBDAV_ALT_TIMESTAMP', 1411119133); define('WEBDAV_ALT_TIMESTAMP', 1411119133);
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
include('../serverlib/dav.inc.php'); include('../serverlib/dav.inc.php');
include('../serverlib/webdisk.class.php'); include('../serverlib/webdisk.class.php');

View file

@ -19,7 +19,7 @@
* *
*/ */
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
if(!class_exists('BMCalendar')) if(!class_exists('BMCalendar'))
include('../serverlib/calendar.class.php'); include('../serverlib/calendar.class.php');
if(!class_exists('BMAddressbook')) if(!class_exists('BMAddressbook'))

View file

@ -19,7 +19,7 @@
* *
*/ */
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
if(!class_exists('BMAddressbook')) if(!class_exists('BMAddressbook'))
include('../serverlib/addressbook.class.php'); include('../serverlib/addressbook.class.php');
RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE); RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE);

View file

@ -19,7 +19,7 @@
* *
*/ */
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
if(!class_exists('BMMailbox')) if(!class_exists('BMMailbox'))
include('../serverlib/mailbox.class.php'); include('../serverlib/mailbox.class.php');
if(!class_exists('BMMailBuilder')) if(!class_exists('BMMailBuilder'))

View file

@ -19,7 +19,7 @@
* *
*/ */
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
/** /**
* file handler for modules * file handler for modules

View file

@ -19,7 +19,7 @@
* *
*/ */
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
if(!class_exists('BMTodo')) if(!class_exists('BMTodo'))
include('../serverlib/todo.class.php'); include('../serverlib/todo.class.php');
RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE); RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE);

View file

@ -19,7 +19,7 @@
* *
*/ */
include('../serverlib/init.inc.php'); require '../serverlib/init.inc.php';
if(!class_exists('BMWebdisk')) if(!class_exists('BMWebdisk'))
include('../serverlib/webdisk.class.php'); include('../serverlib/webdisk.class.php');
if(!class_exists('BMZIP')) if(!class_exists('BMZIP'))

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
include('./serverlib/todo.class.php'); include('./serverlib/todo.class.php');
include('./serverlib/vcard.class.php'); include('./serverlib/vcard.class.php');
include('./serverlib/addressbook.class.php'); include('./serverlib/addressbook.class.php');

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
include('./serverlib/todo.class.php'); include('./serverlib/todo.class.php');
include('./serverlib/calendar.class.php'); include('./serverlib/calendar.class.php');
include('./serverlib/addressbook.class.php'); include('./serverlib/addressbook.class.php');
@ -146,7 +146,7 @@ if($_REQUEST['action'] == 'start')
if($viewMode == 'day') if($viewMode == 'day')
{ {
$dates = $calendar->GetDatesForTimeframe($dateStart, $dateEnd, $group); $dates = $calendar->GetDatesForTimeframe($dateStart, $dateEnd, $group);
$tpl->assign('weekDay', _strftime('%A', $dateStart)); $tpl->assign('weekDay', date('l', $dateStart));
$tpl->assign('calWeek', date(date('o') == 'o' ? 'W/Y' : 'W/o', $dateStart)); $tpl->assign('calWeek', date(date('o') == 'o' ? 'W/Y' : 'W/o', $dateStart));
$tpl->assign('dates', $dates); $tpl->assign('dates', $dates);
$tpl->assign('pageContent', 'li/organizer.calendar.dayview.tpl'); $tpl->assign('pageContent', 'li/organizer.calendar.dayview.tpl');

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
include('./serverlib/notes.class.php'); include('./serverlib/notes.class.php');
include('./serverlib/todo.class.php'); include('./serverlib/todo.class.php');
RequestPrivileges(PRIVILEGES_USER); RequestPrivileges(PRIVILEGES_USER);

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
include('./serverlib/todo.class.php'); include('./serverlib/todo.class.php');
include('./serverlib/dashboard.class.php'); include('./serverlib/dashboard.class.php');
RequestPrivileges(PRIVILEGES_USER); RequestPrivileges(PRIVILEGES_USER);

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
include('./serverlib/todo.class.php'); include('./serverlib/todo.class.php');
RequestPrivileges(PRIVILEGES_USER); RequestPrivileges(PRIVILEGES_USER);

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
include('./serverlib/mailbox.class.php'); include('./serverlib/mailbox.class.php');
include('./serverlib/payment.class.php'); include('./serverlib/payment.class.php');
RequestPrivileges(PRIVILEGES_USER); RequestPrivileges(PRIVILEGES_USER);

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
RequestPrivileges(PRIVILEGES_USER); RequestPrivileges(PRIVILEGES_USER);
/** /**
@ -204,9 +204,9 @@ if($_REQUEST['action'] == 'search')
} }
// show results // show results
$tpl->assign('sortOrderInv', $sortOrder == 'asc' ? 'desc' : 'asc');
$tpl->assign('sortColumn', $sortColumn); $tpl->assign('sortColumn', $sortColumn);
$tpl->assign('sortOrder', $sortOrderFA); $tpl->assign('sortOrder', $sortOrderFA);
$tpl->assign('sortOrderInv', $sortOrder == 'asc' ? 'desc' : 'asc');
$tpl->assign('pageNo', $pageNo); $tpl->assign('pageNo', $pageNo);
$tpl->assign('pageCount', $pageCount); $tpl->assign('pageCount', $pageCount);
$tpl->assign('results', $results); $tpl->assign('results', $results);

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
include('./serverlib/sms.class.php'); include('./serverlib/sms.class.php');
RequestPrivileges(PRIVILEGES_USER); RequestPrivileges(PRIVILEGES_USER);

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
include('./serverlib/dashboard.class.php'); include('./serverlib/dashboard.class.php');
RequestPrivileges(PRIVILEGES_USER); RequestPrivileges(PRIVILEGES_USER);

View file

@ -19,7 +19,7 @@
* *
*/ */
include('./serverlib/init.inc.php'); require './serverlib/init.inc.php';
include('./serverlib/webdisk.class.php'); include('./serverlib/webdisk.class.php');
include('./serverlib/zip.class.php'); include('./serverlib/zip.class.php');
include('./serverlib/unzip.class.php'); include('./serverlib/unzip.class.php');