Revision 256
Added by ryan almost 20 years ago
| trunk/wb/install/save.php | ||
|---|---|---|
| 421 | 421 |
." ('', 'default_time_format', 'g:i A'),"
|
| 422 | 422 |
." ('', 'home_folders', 'true'),"
|
| 423 | 423 |
." ('', 'default_template', 'round'),"
|
| 424 |
." ('', 'default_charset', 'utf-8'),"
|
|
| 424 | 425 |
." ('', 'multiple_menus', 'false'),"
|
| 425 | 426 |
." ('', 'page_level_limit', '4'),"
|
| 426 | 427 |
." ('', 'intro_page', 'false'),"
|
| trunk/wb/languages/EN.php | ||
|---|---|---|
| 389 | 389 |
$TEXT['ADMINISTRATION_TOOL'] = 'Administration tool'; |
| 390 | 390 |
$TEXT['CAPTCHA_VERIFICATION'] = 'Captcha Verification'; |
| 391 | 391 |
$TEXT['VERIFICATION'] = 'Verification'; |
| 392 |
$TEXT['DEFAULT_CHARSET'] = 'Default Charset'; |
|
| 393 |
$TEXT['CHARSET'] = 'Charset'; |
|
| 392 | 394 |
|
| 393 | 395 |
|
| 394 | 396 |
// Success/error messages |
| trunk/wb/admin/interface/charsets.php | ||
|---|---|---|
| 1 |
<?php |
|
| 2 |
|
|
| 3 |
// $Id$ |
|
| 4 |
|
|
| 5 |
/* |
|
| 6 |
|
|
| 7 |
Website Baker Project <http://www.websitebaker.org/> |
|
| 8 |
Copyright (C) 2004-2005, Ryan Djurovich |
|
| 9 |
|
|
| 10 |
Website Baker is free software; you can redistribute it and/or modify |
|
| 11 |
it under the terms of the GNU General Public License as published by |
|
| 12 |
the Free Software Foundation; either version 2 of the License, or |
|
| 13 |
(at your option) any later version. |
|
| 14 |
|
|
| 15 |
Website Baker is distributed in the hope that it will be useful, |
|
| 16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 18 |
GNU General Public License for more details. |
|
| 19 |
|
|
| 20 |
You should have received a copy of the GNU General Public License |
|
| 21 |
along with Website Baker; if not, write to the Free Software |
|
| 22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 23 |
|
|
| 24 |
*/ |
|
| 25 |
|
|
| 26 |
/* |
|
| 27 |
|
|
| 28 |
Charset list file |
|
| 29 |
|
|
| 30 |
This file is used to generate a list of charsets for the user to select |
|
| 31 |
|
|
| 32 |
*/ |
|
| 33 |
|
|
| 34 |
if(!defined('WB_URL')) {
|
|
| 35 |
header('Location: ../index.php');
|
|
| 36 |
} |
|
| 37 |
|
|
| 38 |
// Create array |
|
| 39 |
$CHARSETS = array(); |
|
| 40 |
$CHARSETS['utf-8'] = 'Unicode (utf-8)'; |
|
| 41 |
$CHARSETS['iso-8859-1'] = 'Latin 1 (iso-8859-1)'; |
|
| 42 |
|
|
| 43 |
?> |
|
| 0 | 44 | |
| trunk/wb/admin/settings/index.php | ||
|---|---|---|
| 174 | 174 |
} |
| 175 | 175 |
} |
| 176 | 176 |
|
| 177 |
// Insert default charset values |
|
| 178 |
require(ADMIN_PATH.'/interface/charsets.php'); |
|
| 179 |
$template->set_block('main_block', 'charset_list_block', 'charset_list');
|
|
| 180 |
foreach($CHARSETS AS $code => $title) {
|
|
| 181 |
$template->set_var('VALUE', $code);
|
|
| 182 |
$template->set_var('NAME', $title);
|
|
| 183 |
if(DEFAULT_CHARSET == $code) {
|
|
| 184 |
$template->set_var('SELECTED', 'selected');
|
|
| 185 |
} else {
|
|
| 186 |
$template->set_var('SELECTED', '');
|
|
| 187 |
} |
|
| 188 |
$template->parse('charset_list', 'charset_list_block', true);
|
|
| 189 |
} |
|
| 190 |
|
|
| 177 | 191 |
// Insert date format list |
| 178 | 192 |
require(ADMIN_PATH.'/interface/date_formats.php'); |
| 179 | 193 |
$template->set_block('main_block', 'date_format_list_block', 'date_format_list');
|
| ... | ... | |
| 507 | 521 |
'TEXT_DEFAULT' => $TEXT['DEFAULT'], |
| 508 | 522 |
'TEXT_LANGUAGE' => $TEXT['LANGUAGE'], |
| 509 | 523 |
'TEXT_TIMEZONE' => $TEXT['TIMEZONE'], |
| 524 |
'TEXT_CHARSET' => $TEXT['CHARSET'], |
|
| 510 | 525 |
'TEXT_DATE_FORMAT' => $TEXT['DATE_FORMAT'], |
| 511 | 526 |
'TEXT_TIME_FORMAT' => $TEXT['TIME_FORMAT'], |
| 512 | 527 |
'TEXT_TEMPLATE' => $TEXT['TEMPLATE'], |
| trunk/wb/admin/settings/template.html | ||
|---|---|---|
| 263 | 263 |
</select> |
| 264 | 264 |
</td> |
| 265 | 265 |
</tr> |
| 266 |
<tr class="advanced"> |
|
| 267 |
<td class="setting_name">{TEXT_CHARSET}:</td>
|
|
| 268 |
<td class="setting_value" colspan="2"> |
|
| 269 |
<select name="default_charset"> |
|
| 270 |
<option value="">{TEXT_PLEASE_SELECT}...</option>
|
|
| 271 |
<!-- BEGIN charset_list_block --> |
|
| 272 |
<option value="{VALUE}" {SELECTED}>{NAME}</option>
|
|
| 273 |
<!-- END charset_list_block --> |
|
| 274 |
</select> |
|
| 275 |
</td> |
|
| 276 |
</tr> |
|
| 266 | 277 |
<tr> |
| 267 | 278 |
<td class="setting_name">{TEXT_TIMEZONE}:</td>
|
| 268 | 279 |
<td class="setting_value" colspan="2"> |
| trunk/wb/templates/allcss/index.php | ||
|---|---|---|
| 28 | 28 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 29 | 29 |
<head> |
| 30 | 30 |
<title><?php page_title(); ?></title> |
| 31 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
| 31 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
|
|
| 32 | 32 |
<meta name="description" content="<?php page_description(); ?>" /> |
| 33 | 33 |
<meta name="keywords" content="<?php page_keywords(); ?>" /> |
| 34 | 34 |
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" /> |
| trunk/wb/templates/round/index.php | ||
|---|---|---|
| 28 | 28 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 29 | 29 |
<head> |
| 30 | 30 |
<title><?php page_title(); ?></title> |
| 31 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
| 31 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
|
|
| 32 | 32 |
<meta name="description" content="<?php page_description(); ?>" /> |
| 33 | 33 |
<meta name="keywords" content="<?php page_keywords(); ?>" /> |
| 34 | 34 |
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" /> |
| trunk/wb/templates/simple/index.php | ||
|---|---|---|
| 28 | 28 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 29 | 29 |
<head> |
| 30 | 30 |
<title><?php page_title(); ?></title> |
| 31 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
| 31 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
|
|
| 32 | 32 |
<meta name="description" content="<?php page_description(); ?>" /> |
| 33 | 33 |
<meta name="keywords" content="<?php page_keywords(); ?>" /> |
| 34 | 34 |
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" /> |
Also available in: Unified diff
Added default charset option to settings