Location: PHPKode > projects > Quick.Cart - free and simple to use shopping cart script > actions/admin-tools.php
<?php
$oPage = PagesAdmin::getInstance( );
//$oFile = FilesAdmin::getInstance( );
//$oProduct = ProductsAdmin::getInstance( );

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->tBlock( 'messages.tpl', 'DONE' );
    }

    $sSkinsSelect = throwSkinsSelect( $config['skin'] );
    $sLangSelect = throwLangSelect( $config['default_lang'] );
    $sLangAdminSelect = throwLangSelect( $config['admin_lang'] );
    $sHiddenShowsSelect = throwTrueFalseOrNullSelect( $config['hidden_shows'] );
    $sWysiwygSelect = throwTrueFalseOrNullSelect( $config['wysiwyg'] );
    $sDisplayAllFilesSelect = throwTrueFalseOrNullSelect( $config['display_all_files'] );
    $sChangeFilesNamesSelect = throwTrueFalseOrNullSelect( $config['change_files_names'] );
    $sInheritFromParentsSelect = throwTrueFalseOrNullSelect( $config['inherit_from_parents'] );
    $sExpandedMenuSelect = throwTrueFalseOrNullSelect( $config['display_expanded_menu'] );
    $sTextSizeSelect = throwTrueFalseOrNullSelect( $config['text_size'] );
    $sLanguageInUrl = throwTrueFalseOrNullSelect( $config['language_in_url'] );
    $sCopyTheSameFiles = throwTrueFalseOrNullSelect( $config['copy_the_same_files'] );
    $sDeleteUnusedFilesSelect = throwTrueFalseOrNullSelect( $config['delete_unused_files'] );
    $sSendCustomerOrderDetailsSelect = throwTrueFalseOrNullSelect( $config['send_customer_order_details'] );
    $sSubcategoryProductsSelect = throwTrueFalseOrNullSelect( $config['display_subcategory_products'] );
    $sDisplayProductsListSelect = throwSelectFromArray( Array( 1 => $lang['Products_in_three_colums'], 2 => $lang['Products_in_list'] ), $config['display_products_list'] );
    $sSortingProductsSelect = throwTrueFalseOrNullSelect( $config['sorting_products'] );

    $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'] );
    
    $sFormTabs = $oTpl->tBlock( 'settings.tpl', 'CONFIG_TABS' );
    $content .= $oTpl->tBlock( 'settings.tpl', 'CONFIG_MAIN' );
  }
}
?>
Return current item: Quick.Cart - free and simple to use shopping cart script