Location: PHPKode > projects > S-REstate CMS - Free Edtion > www/actions_admin/settings.php
<?php
if( $a == 'config' ){
  if( isset( $_POST['sOption'] ) ){
    saveVariables( $_POST, DB_CONFIG );
    saveVariables( $_POST, DB_CONFIG_LANG );
    header( 'Location: '.$_SERVER['PHP_SELF'].'?p='.$p.'&sOption=save' );
    exit;
  }
  else{
    if( isset( $sOption ) ){
      $content .= $oTpl->tbHtml( 'messages.tpl', 'DONE' );
    }

    $sCssSelect = throwCssSelect( $config['template'] );
    $sCssMobileSelect = throwCssSelect( $config['template_mobile'] );
    $sLangSelect = throwLangSelect( $config['default_lang'] );
    $sStartPageSelect = $oPage->throwPagesSelectAdmin( $config['start_page'] );
    $sBasketPageSelect = $oPage->throwPagesSelectAdmin( $config['basket_page'] );
    $sOrderPageSelect = $oPage->throwPagesSelectAdmin( $config['order_page'] );
    $sRulesPageSelect = $oPage->throwPagesSelectAdmin( $config['rules_page'] );
    $sPageSearchSelect = $oPage->throwPagesSelectAdmin( $config['page_search'] );
    $sProductsDescSelect = throwTrueFalseOrNullSelect( $config['search_products_description'] );
    $sHiddenShowsSelect = throwTrueFalseOrNullSelect( $config['hidden_shows'] );
    $sWysiwygSelect = throwTrueFalseOrNullSelect( $config['wysiwyg'] );
    $sSendCustomerOrderDetailsSelect = throwTrueFalseOrNullSelect( $config['send_customer_order_details'] );
    $sDisplayAllFilesSelect = throwTrueFalseOrNullSelect( $config['display_all_files'] );
    $sChangeFilesNamesSelect = throwTrueFalseOrNullSelect( $config['change_files_names'] );
    $sInheritFromParentsSelect = throwTrueFalseOrNullSelect( $config['inherit_from_parents'] );
    $sExpandedMenuSelect = throwTrueFalseOrNullSelect( $config['display_expanded_menu'] );
    $sSubcategoryProductsSelect = throwTrueFalseOrNullSelect( $config['display_subcategory_products'] );
    $sDisplayProductsListSelect = throwSelectFromArray( Array( 1 => $lang['Products_in_two_colums'], 2 => $lang['Products_in_list'] ), $config['display_products_list'] );
    $sTextSizeSelect = throwTrueFalseOrNullSelect( $config['text_size'] );
    $sLanguageInUrl = throwTrueFalseOrNullSelect( $config['language_in_url'] );
    $sCopyTheSameFiles = throwTrueFalseOrNullSelect( $config['copy_the_same_files'] );

    $sFormTabs = $oTpl->tbHtml( 'settings.tpl', 'CONFIG_TABS' );
    $content .= $oTpl->tbHtml( 'settings.tpl', 'CONFIG_MAIN' );
  }
}
?>
Return current item: S-REstate CMS - Free Edtion