本文整理匯總了PHP中core_date::store_default_php_timezone方法的典型用法代碼示例。如果您正苦於以下問題:PHP core_date::store_default_php_timezone方法的具體用法?PHP core_date::store_default_php_timezone怎麽用?PHP core_date::store_default_php_timezone使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類core_date
的用法示例。
在下文中一共展示了core_date::store_default_php_timezone方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
if (!empty($_SERVER['HTTP_X_moz']) && $_SERVER['HTTP_X_moz'] === 'prefetch') {
header($_SERVER['SERVER_PROTOCOL'] . ' 404 Prefetch Forbidden');
echo 'Prefetch request forbidden.';
exit(1);
}
//point pear include path to moodles lib/pear so that includes and requires will search there for files before anywhere else
//the problem is that we need specific version of quickforms and hacked excel files :-(
ini_set('include_path', $CFG->libdir . '/pear' . PATH_SEPARATOR . ini_get('include_path'));
// Register our classloader, in theory somebody might want to replace it to load other hacked core classes.
if (defined('COMPONENT_CLASSLOADER')) {
spl_autoload_register(COMPONENT_CLASSLOADER);
} else {
spl_autoload_register('core_component::classloader');
}
// Remember the default PHP timezone, we will need it later.
core_date::store_default_php_timezone();
// Load up standard libraries
require_once $CFG->libdir . '/filterlib.php';
// Functions for filtering test as it is output
require_once $CFG->libdir . '/ajax/ajaxlib.php';
// Functions for managing our use of JavaScript and YUI
require_once $CFG->libdir . '/weblib.php';
// Functions relating to HTTP and content
require_once $CFG->libdir . '/outputlib.php';
// Functions for generating output
require_once $CFG->libdir . '/navigationlib.php';
// Class for generating Navigation structure
require_once $CFG->libdir . '/dmllib.php';
// Database access
require_once $CFG->libdir . '/datalib.php';
// Legacy lib with a big-mix of functions.