98 lines
1.8 KiB
PHP
98 lines
1.8 KiB
PHP
<?php
|
|
|
|
// define('SHOW_VARIABLES', 1);
|
|
// define('DEBUG_LEVEL', 1);
|
|
|
|
// error_reporting(E_ALL ^ E_NOTICE);
|
|
// ini_set('display_errors', 'On');
|
|
|
|
set_include_path('.' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
|
require_once 'components/utils/system_utils.php';
|
|
|
|
// SystemUtils::DisableMagicQuotesRuntime();
|
|
|
|
SystemUtils::SetTimeZoneIfNeed('America/New_York');
|
|
|
|
function GetGlobalConnectionOptions()
|
|
{
|
|
return array(
|
|
'server' => '198.72.117.213',
|
|
'port' => '3306',
|
|
'username' => 'inscriptionprod',
|
|
'password' => 'Ms1!!!',
|
|
'database' => 'ms1inscription'
|
|
);
|
|
}
|
|
|
|
function HasAdminPage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
function GetPageInfos()
|
|
{
|
|
$result = array();
|
|
$result[] = array('caption' => 'Participants', 'short_caption' => 'Participants', 'filename' => 'pentathlondesneiges.php', 'name' => 'Participants');
|
|
return $result;
|
|
}
|
|
|
|
function GetPagesHeader()
|
|
{
|
|
return
|
|
'';
|
|
}
|
|
|
|
function GetPagesFooter()
|
|
{
|
|
return
|
|
'';
|
|
}
|
|
|
|
function ApplyCommonPageSettings($page, $grid)
|
|
{
|
|
$page->SetShowUserAuthBar(false);
|
|
$grid->BeforeUpdateRecord->AddListener('Global_BeforeUpdateHandler');
|
|
$grid->BeforeDeleteRecord->AddListener('Global_BeforeDeleteHandler');
|
|
$grid->BeforeInsertRecord->AddListener('Global_BeforeInsertHandler');
|
|
}
|
|
|
|
/*
|
|
Default code page: 1252
|
|
*/
|
|
function GetAnsiEncoding() { return 'windows-1252'; }
|
|
|
|
function Global_BeforeUpdateHandler($page, $rowData, &$cancel, &$message, $tableName)
|
|
{
|
|
|
|
}
|
|
|
|
function Global_BeforeDeleteHandler($page, $rowData, &$cancel, &$message, $tableName)
|
|
{
|
|
|
|
}
|
|
|
|
function Global_BeforeInsertHandler($page, $rowData, &$cancel, &$message, $tableName)
|
|
{
|
|
|
|
}
|
|
|
|
function GetDefaultDateFormat()
|
|
{
|
|
return 'Y-m-d';
|
|
}
|
|
|
|
function GetFirstDayOfWeek()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
function GetEnableLessFilesRunTimeCompilation()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
|
|
|
|
?>
|