maintenance.php

  • ディレクトリの取得
// Set the current path
// Done this way so that it works in CLI PHP
$path = dirname(__FILE__);
  • タイムゾーンのグローバル変数
// Require the timezone class, and get the system timezone,
// storing in a global variable
global $serverTimezone;
$serverTimezone = OX_Admin_Timezones::getTimezone();
// Set longer time out, and ignore user abort
if (!ini_get('safe_mode')) {
    @set_time_limit($conf['maintenance']['timeLimitScripts']);
    @ignore_user_abort(true);
}

  • MAX_PATH . '/lib/Max.php';
  • OX_PATH . '/lib/OX.php';
  • LIB_PATH . '/Maintenance.php';
$oMaint = new OX_Maintenance();
$oMaint->run();
// Update scheduled maintenance last run record
$oMaint->updateLastRun(true);

タグ:

+ タグ編集
  • タグ:
最終更新:2011年05月02日 00:16
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。