Source for file install_bit_settings.php
Documentation is available at install_bit_settings.php
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See below for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.
* assign next step in installation process
$gBitSmarty->assign( 'next_step',$step );
global $_REQUEST, $gBitSystem, $gBitSmarty;
if( isset ( $_REQUEST[$feature] ) ) {
$gBitSystem->storeConfig( $feature, $_REQUEST[$feature], $package );
$gBitSmarty->assign( $feature, $_REQUEST[$feature] );
// pass all package data to template
$gBitSmarty->assign_by_ref( 'schema', $gBitInstaller->mPackages );
// settings that aren't just toggles
$formInstallValues = array(
'kernel_server_name' => 'kernel',
'site_title' => 'kernel',
'site_slogan' => 'kernel',
'bitlanguage' => 'languages',
$processors['gd'] = '<strong>GD Library</strong> [php-gd]';
$processors['imagick'] = '<strong>Image Magick</strong> [php-imagick] - recommended';
$processors['magickwand'] = '<strong>MagickWand</strong> [php-magickwand] - highly recommended';
if( count( $processors ) > 0 ) {
$gBitSmarty->assign( 'processors', $processors );
$formInstallValues['image_processor'] = 'liberty';
// list of available site styles
$subDirs = array( 'style_info', 'alternate' );
$stylesList = $gBitThemes->getStylesList( NULL, NULL, $subDirs );
$gBitSmarty->assign_by_ref( "stylesList", $stylesList );
// get list of available languages
$languages = $gBitLanguage->listLanguages();
$gBitSmarty->assign_by_ref("languages",$languages );
if( isset ( $_REQUEST['bit_settings'] ) ) {
foreach( $formInstallValues as $item => $package) {
if( empty( $_REQUEST['bitlanguage'] ) ) {
$_REQUEST['bitlanguage'] = 'en';
if( !empty( $_REQUEST["site_style"] ) ) {
$gBitSystem->storeConfig( 'style', $_REQUEST["site_style"], THEMES_PKG_NAME );
$languages[$_REQUEST['bitlanguage']] = '';
$gBitLanguage->setLanguage( $_REQUEST['bitlanguage'] );
$gBitSmarty->assign( "siteLanguage",$languages[$_REQUEST['bitlanguage']] );
// advance a step in the installer
$gBitSmarty->assign( 'next_step',$step + 1 );
} elseif( isset ( $_REQUEST['skip'] ) ) {
// get list of foreign packages that are ready to be installed
// @TODO this isn't working yet, since the info stuff isn't read from schema_inc.php on this page
$foreign_packages = array();
foreach( $gBitSystem->mPackages as $package ) {
if( isset ( $package['info']['install'] ) ) {
$foreign_packages[] = $package;
$gBitSmarty->assign( "role_model", TRUE );
$gBitSmarty->assign( "foreign_packages", $foreign_packages );
|