コード例 #1
0
    header('Location: ' . $url);
    exit;
}
// In case $src_adm_relative_path is not set (in case of an update), use the default.
$src_adm_relative_path = isset($src_adm_relative_path) ? $src_adm_relative_path : 'adm/';
$src_admin_path = defined('src_ADMIN_PATH') ? src_ADMIN_PATH : $src_root_path . $src_adm_relative_path;
// Include files
require $src_root_path . 'includes/functions.' . $phpEx;
require $src_root_path . 'includes/functions_content.' . $phpEx;
include $src_root_path . 'includes/functions_compatibility.' . $phpEx;
require $src_root_path . 'includes/constants.' . $phpEx;
require $src_root_path . 'includes/utf/utf_tools.' . $phpEx;
// Set PHP error handler to ours
set_error_handler(defined('src_MSG_HANDLER') ? src_MSG_HANDLER : 'msg_handler');
$src_class_loader_ext = new \src\class_loader('\\', "{$src_root_path}ext/", $phpEx);
$src_class_loader_ext->register();
src_load_extensions_autoloaders($src_root_path);
// Set up container
$src_container_builder = new \src\di\container_builder($src_config_php_file, $src_root_path, $phpEx);
$src_container = $src_container_builder->get_container();
$src_class_loader->set_cache($src_container->get('cache.driver'));
$src_class_loader_ext->set_cache($src_container->get('cache.driver'));
require $src_root_path . 'includes/compatibility_globals.' . $phpEx;
// Add own hook handler
require $src_root_path . 'includes/hooks/index.' . $phpEx;
$src_hook = new src_hook(array('exit_handler', 'src_user_session_handler', 'append_sid', array('template', 'display')));
$src_hook_finder = $src_container->get('hook_finder');
foreach ($src_hook_finder->find() as $hook) {
    @(include $src_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
}
/**
コード例 #2
0
			<div class="copyright">
				Powered by SourceFlan
			</div>
		</div>
	</div>
</body>
</html>

<?php 
    garbage_collection();
    exit_handler();
}
require $src_root_path . 'includes/startup.' . $phpEx;
require $src_root_path . 'src/class_loader.' . $phpEx;
$src_class_loader = new \src\class_loader('src\\', "{$src_root_path}src/", $phpEx);
$src_class_loader->register();
$src_config_php_file = new \src\config_php_file($src_root_path, $phpEx);
extract($src_config_php_file->get_all());
if (!defined('src_INSTALLED') || empty($dbms) || empty($acm_type)) {
    die("Please read: <a href='../docs/INSTALL.html'>INSTALL.html</a> before attempting to update.");
}
// In case $src_adm_relative_path is not set (in case of an update), use the default.
$src_adm_relative_path = isset($src_adm_relative_path) ? $src_adm_relative_path : 'adm/';
$src_admin_path = defined('src_ADMIN_PATH') ? src_ADMIN_PATH : $src_root_path . $src_adm_relative_path;
// Include files
require $src_root_path . 'includes/functions.' . $phpEx;
require $src_root_path . 'includes/functions_content.' . $phpEx;
require $src_root_path . 'includes/constants.' . $phpEx;
include $src_root_path . 'includes/utf/utf_normalizer.' . $phpEx;
require $src_root_path . 'includes/utf/utf_tools.' . $phpEx;
// Set PHP error handler to ours