예제 #1
0
$phpEx = substr(strrchr(__FILE__, '.'), 1);
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());
require $src_root_path . 'includes/constants.' . $phpEx;
require $src_root_path . 'includes/functions.' . $phpEx;
require $src_root_path . 'includes/functions_admin.' . $phpEx;
require $src_root_path . 'includes/utf/utf_tools.' . $phpEx;
$src_container_builder = new \src\di\container_builder($src_config_php_file, $src_root_path, $phpEx);
$src_container_builder->set_dump_container(false);
$input = new ArgvInput();
if ($input->hasParameterOption(array('--safe-mode'))) {
    $src_container_builder->set_use_extensions(false);
    $src_container_builder->set_dump_container(false);
} else {
    $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);
}
$src_container = $src_container_builder->get_container();
$src_container->get('request')->enable_super_globals();
require $src_root_path . 'includes/compatibility_globals.' . $phpEx;
$user = $src_container->get('user');
$user->add_lang('acp/common');
$user->add_lang('cli');
$application = new \src\console\application('src Console', src_VERSION, $user);
$application->register_container_commands($src_container->get('console.command_collection'));
$application->run($input);
예제 #2
0
    $url .= $script_path;
    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);
}
예제 #3
0
		<div id="page-footer">
			<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;