Changeset 519 for trunk/include


Ignore:
Timestamp:
Sep 7, 2004, 10:10:36 PM (20 years ago)
Author:
gweltas
Message:

Minor bugs correction

Location:
trunk/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/config.inc.php

    r516 r519  
    4646$conf['slideshow_period']   = array(2,5,10);
    4747$conf['last_days']          = array(1,2,3,10,30,365);
    48 $conf['version']            = 'BSF';
     48
    4949// $conf['file_ext'] lists all extensions (case insensitive) allowed for
    5050// your PhpWebGallery installation
  • trunk/include/constants.php

    r507 r519  
    2626// +-----------------------------------------------------------------------+
    2727
    28 // Default Language
     28// Default settings
    2929define('DEFAULT_LANGUAGE', 'en_UK.iso-8859-1');
     30define('PHPWG_VERSION', 'BSF');
     31define('PHPWG_URL', 'http://www.phpwebgallery.net');
     32define('PHPWG_FORUM_URL', 'http://forum.phpwebgallery.net');
    3033
    3134// Debug Level
  • trunk/include/functions.inc.php

    r512 r519  
    278278    {
    279279      list($language_name) = @file($path.'/iso.txt');
    280       $languages[$file] = $language_name;
     280      $languages[$language_name] = $file;
    281281    }
    282282  }
     
    352352    $query.= ",'".$file."','".$category."','".$picture."');";
    353353    mysql_query( $query );
    354   }
    355 }
    356 
    357 function templatize_array( $array, $global_array_name, $handle )
    358 {
    359   global $vtp, $lang, $page, $user, $conf;
    360 
    361   foreach ( $array as $value ) {
    362   if (isset(${$global_array_name}[$value]))
    363     $vtp->setGlobalVar( $handle, $value, ${$global_array_name}[$value] );
    364354  }
    365355}
  • trunk/include/functions_html.inc.php

    r514 r519  
    134134  $templates = get_templates();
    135135
     136  $style_selected = '<select name="' . $select_name . '" >';
    136137  foreach ($templates as $template)
    137138  {
    138139    $selected = ( $template == $default_style ) ? ' selected="selected"' : '';
    139     $style_select.= '<option value="'.$template.'"'.$selected.'>';
    140     $style_select.= $template.'</option>';
    141   }
    142   return $style_select;
     140    $style_selected.= '<option value="'.$template.'"'.$selected.'>';
     141    $style_selected.= $template.'</option>';
     142  }
     143  $style_selected .= '</select>';
     144  return $style_selected;
    143145}
    144146
  • trunk/include/page_tail.php

    r516 r519  
    3434  array(
    3535    'TIME' =>  $time,
    36     'VERSION' => $conf['version'],
     36    'VERSION' => PHPWG_VERSION,
    3737    'MAIL'=>$conf['mail_webmaster'],
    3838   
Note: See TracChangeset for help on using the changeset viewer.