Ignore:
Timestamp:
Feb 13, 2011, 11:12:58 AM (13 years ago)
Author:
mistic100
Message:

ContestResults :

  • Code revision
  • Add Letton (lv_LV) language, thanks to Aivars Baldone
  • Delete display options
  • Fix languages bugs
  • Improve public appearence
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContestResults/admin/config.php

    r6782 r9200  
    33
    44// +-----------------------------------------------------------------------+
    5 //              Modification de la configuration
     5//                              Modification de la configuration
    66// +-----------------------------------------------------------------------+
    7 if(isset($_POST['config_submit'])){
     7if (isset($_POST['config_submit'])) {
    88        $user_config = array(
    99                'menubar_mode' => array(
    1010                        'link' => (isset($_POST['menubar_mode_link'])) ? 1 : 0,
    11                         'block' => (isset($_POST['menubar_mode_block'])) ? 1 : 0
     11                        'block' => (isset($_POST['menubar_mode_block'])) ? 1 : 0,
    1212                ),
    1313                'menubar_link' => array(
    1414                        'menu' => (isset($_POST['menubar_link_menu'])) ? 1 : 0,
    15                         'specials' => (isset($_POST['menubar_link_specials'])) ? 1 : 0
     15                        'specials' => (isset($_POST['menubar_link_specials'])) ? 1 : 0,
    1616                ),
    1717                'menubar_block' => array(
    18                         'number' => $_POST['menubar_block_number']
    19                 )
     18                        'number' => $_POST['menubar_block_number'],
     19                ),
    2020        );
    2121       
    22         $query = "UPDATE " . CONFIG_TABLE . " SET `value` = '" . serialize($user_config) . "' WHERE `param` = 'ContestResults';";
    23         pwg_query($query);
     22        pwg_query("UPDATE " . CONFIG_TABLE . " SET `value` = '" . serialize($user_config) . "' WHERE `param` = 'ContestResults';");
    2423        redirect(CR_ADMIN . '&tab=config');
    2524}       
    2625
    2726// +-----------------------------------------------------------------------+
    28 //              Définition des variables template
     27//                              Définition des variables template
    2928// +-----------------------------------------------------------------------+
    3029$conf['ContestResults'] = unserialize($conf['ContestResults']);
Note: See TracChangeset for help on using the changeset viewer.