require init
if init.inc.php not exists, it will stop script, include just continue.
This commit is contained in:
parent
15e17a6075
commit
3bde398b52
31 changed files with 35 additions and 35 deletions
|
@ -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']) != '')
|
||||
RequestPrivileges(PRIVILEGES_USER, true) || RequestPrivileges(PRIVILEGES_ADMIN, true);
|
||||
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include './serverlib/init.inc.php';
|
||||
include './serverlib/pop3gateway.class.php';
|
||||
require './serverlib/init.inc.php';
|
||||
require './serverlib/pop3gateway.class.php';
|
||||
include './serverlib/userpop3gateway.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');
|
||||
|
||||
include './serverlib/cron.inc.php';
|
||||
require './serverlib/cron.inc.php';
|
||||
|
||||
// update last cron run time
|
||||
$db->Query('UPDATE {pre}prefs SET last_cron=?',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
include('./serverlib/userpop3gateway.class.php');
|
||||
|
||||
// try to prevent abortion
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
|
||||
/**
|
||||
* file handler for modules
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
if(!class_exists('BMMailbox'))
|
||||
include('./serverlib/mailbox.class.php');
|
||||
include('./serverlib/addressbook.class.php');
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
if(!class_exists('BMMailbox'))
|
||||
include('./serverlib/mailbox.class.php');
|
||||
RequestPrivileges(PRIVILEGES_USER);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
if(!class_exists('BMMailbox'))
|
||||
include('./serverlib/mailbox.class.php');
|
||||
include('./serverlib/zip.class.php');
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
if(!class_exists('BMMailbox'))
|
||||
include('./serverlib/mailbox.class.php');
|
||||
include('./serverlib/vcard.class.php');
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
|
||||
/**
|
||||
* languages
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
define('INTERFACE_MODE', true);
|
||||
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
include('../serverlib/dav.inc.php');
|
||||
include('../serverlib/organizerdav.inc.php');
|
||||
include('../serverlib/calendar.class.php');
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
define('INTERFACE_MODE', true);
|
||||
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
include('../serverlib/dav.inc.php');
|
||||
include('../serverlib/organizerdav.inc.php');
|
||||
include('../serverlib/addressbook.class.php');
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
|
||||
define('INTERFACE_MODE', true);
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
|
||||
$exportedClasses = array(
|
||||
'BMToolInterface' => array(
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
|
||||
define('INTERFACE_MODE', true);
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
include('../serverlib/payment.class.php');
|
||||
|
||||
PutLog(sprintf('IPN: <%s> Called',
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
|
||||
define('INTERFACE_MODE', true);
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
include('../serverlib/payment.class.php');
|
||||
|
||||
PutLog('SU-Callback: Called',
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
define('INTERFACE_MODE', true);
|
||||
define('WEBDAV_ALT_TIMESTAMP', 1411119133);
|
||||
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
include('../serverlib/dav.inc.php');
|
||||
include('../serverlib/webdisk.class.php');
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
if(!class_exists('BMCalendar'))
|
||||
include('../serverlib/calendar.class.php');
|
||||
if(!class_exists('BMAddressbook'))
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
if(!class_exists('BMAddressbook'))
|
||||
include('../serverlib/addressbook.class.php');
|
||||
RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
if(!class_exists('BMMailbox'))
|
||||
include('../serverlib/mailbox.class.php');
|
||||
if(!class_exists('BMMailBuilder'))
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
|
||||
/**
|
||||
* file handler for modules
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
if(!class_exists('BMTodo'))
|
||||
include('../serverlib/todo.class.php');
|
||||
RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('../serverlib/init.inc.php');
|
||||
require '../serverlib/init.inc.php';
|
||||
if(!class_exists('BMWebdisk'))
|
||||
include('../serverlib/webdisk.class.php');
|
||||
if(!class_exists('BMZIP'))
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
include('./serverlib/todo.class.php');
|
||||
include('./serverlib/vcard.class.php');
|
||||
include('./serverlib/addressbook.class.php');
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
include('./serverlib/todo.class.php');
|
||||
include('./serverlib/calendar.class.php');
|
||||
include('./serverlib/addressbook.class.php');
|
||||
|
@ -146,7 +146,7 @@ if($_REQUEST['action'] == 'start')
|
|||
if($viewMode == 'day')
|
||||
{
|
||||
$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('dates', $dates);
|
||||
$tpl->assign('pageContent', 'li/organizer.calendar.dayview.tpl');
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
include('./serverlib/notes.class.php');
|
||||
include('./serverlib/todo.class.php');
|
||||
RequestPrivileges(PRIVILEGES_USER);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
include('./serverlib/todo.class.php');
|
||||
include('./serverlib/dashboard.class.php');
|
||||
RequestPrivileges(PRIVILEGES_USER);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
include('./serverlib/todo.class.php');
|
||||
RequestPrivileges(PRIVILEGES_USER);
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
include('./serverlib/mailbox.class.php');
|
||||
include('./serverlib/payment.class.php');
|
||||
RequestPrivileges(PRIVILEGES_USER);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
RequestPrivileges(PRIVILEGES_USER);
|
||||
|
||||
/**
|
||||
|
@ -204,9 +204,9 @@ if($_REQUEST['action'] == 'search')
|
|||
}
|
||||
|
||||
// show results
|
||||
$tpl->assign('sortOrderInv', $sortOrder == 'asc' ? 'desc' : 'asc');
|
||||
$tpl->assign('sortColumn', $sortColumn);
|
||||
$tpl->assign('sortOrder', $sortOrderFA);
|
||||
$tpl->assign('sortOrderInv', $sortOrder == 'asc' ? 'desc' : 'asc');
|
||||
$tpl->assign('pageNo', $pageNo);
|
||||
$tpl->assign('pageCount', $pageCount);
|
||||
$tpl->assign('results', $results);
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
include('./serverlib/sms.class.php');
|
||||
RequestPrivileges(PRIVILEGES_USER);
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
include('./serverlib/dashboard.class.php');
|
||||
RequestPrivileges(PRIVILEGES_USER);
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
include('./serverlib/init.inc.php');
|
||||
require './serverlib/init.inc.php';
|
||||
include('./serverlib/webdisk.class.php');
|
||||
include('./serverlib/zip.class.php');
|
||||
include('./serverlib/unzip.class.php');
|
||||
|
|
Loading…
Reference in a new issue