Changeset 1081 in ExiteCMS
- Timestamp:
- 11/07/07 16:57:20 (4 years ago)
- Location:
- trunk
- Files:
-
- 3 deleted
- 15 edited
-
feeds.php (modified) (1 diff)
-
files/locales/English.admin.index.php (deleted)
-
files/locales/English.forum.index.php (deleted)
-
files/locales/English.main.global.php (modified) (1 diff)
-
files/locales/English.main.index.php (deleted)
-
files/locales/English.main.setup.php (modified) (1 diff)
-
forum/post.php (modified) (1 diff)
-
forum/viewthread.php (modified) (1 diff)
-
includes/locale_functions.php (modified) (1 diff)
-
includes/sendmail_include.php (modified) (2 diffs)
-
includes/template-plugins/modifier.escape.php (modified) (1 diff)
-
includes/templates/main.edit_profile.tpl (modified) (1 diff)
-
includes/templates/main.register.tpl (modified) (1 diff)
-
includes/templates/main.setup.tpl (modified) (1 diff)
-
includes/user_functions.php (modified) (1 diff)
-
pm.php (modified) (2 diffs)
-
setup.php (modified) (1 diff)
-
themes/ExiteCMS/templates/templates/_header.tpl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/feeds.php
r1071 r1081 87 87 88 88 // start building the XML file 89 header("Content-type: text/xml; charset=".$ locale['charset']);90 echo "<?xml version=\"1.0\" encoding=\"".$ locale['charset']."\"?>\n";89 header("Content-type: text/xml; charset=".$settings['charset']); 90 echo "<?xml version=\"1.0\" encoding=\"".$settings['charset']."\"?>\n"; 91 91 echo "<rss version=\"2.0\">\n"; 92 92 -
trunk/files/locales/English.main.global.php
r1080 r1081 7 7 */ 8 8 9 // Locale Settings 10 setlocale(LC_TIME, "en_GB", "en","GB"); // Linux Server (Windows may differ) 11 $locale['country'] = "GB"; 12 $locale['charset'] = "iso-8859-1"; 13 $locale['tinymce'] = "en"; 14 $locale['phpmailer'] = "en"; 15 16 // Full & Short Months, Date info 9 // Full & Short Months 17 10 $locale['months'] = " |January|February|March|April|May|June|July|August|September|October|November|December"; 18 11 $locale['shortmonths'] = " |Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sept|Oct|Nov|Dec"; 19 $locale['dateformat'] = "mm-dd-yyyy";20 $locale['datesequence'] = array("M", "D", "Y");21 12 22 13 // Standard User Levels -
trunk/files/locales/English.main.setup.php
r1080 r1081 1 1 <?php 2 2 $locale['title'] = "ExiteCMS Setup"; 3 $locale['charset'] = "iso-8859-1"; 3 4 4 $locale['400'] = "Select your default locale"; 5 5 $locale['401'] = "Unable to establish database connection.<br><br> -
trunk/forum/post.php
r1071 r1081 465 465 if ($settings['forum_flags']) { 466 466 if ($userdata['user_id'] == 1) { 467 $preview['cc_flag'] = GeoIP_Code2Flag($ locale['country']);467 $preview['cc_flag'] = GeoIP_Code2Flag($settings['country']); 468 468 } else { 469 469 $preview['cc_flag'] = GeoIP_IP2Flag($userdata['user_ip']); -
trunk/forum/viewthread.php
r1071 r1081 252 252 if ($settings['forum_flags']) { 253 253 if ($data['post_author'] == 1) { 254 $data['cc_flag'] = GeoIP_Code2Flag($ locale['country']);254 $data['cc_flag'] = GeoIP_Code2Flag($settings['country']); 255 255 } else { 256 256 $data['cc_flag'] = GeoIP_IP2Flag($data['post_ip']); -
trunk/includes/locale_functions.php
r1076 r1081 54 54 } 55 55 56 // l ocale defines56 // legacy locale defines 57 57 define("PATH_LOCALE", PATH_ROOT."locale/"); 58 58 if (!defined('LOCALESET')) define("LOCALESET", $settings['locale']."/"); 59 60 // define the website server locale (if not defined) 61 if (!isset($settings['unix_locale'])) $settings['unix_locale'] = "en_US"; 62 63 // set system locales 64 setlocale(LC_TIME, $settings['unix_locale']); // *nix Server (TODO: Windows may differ) 65 66 // define the website characterset (if not defined) 67 if (!isset($settings['charset'])) $settings['charset'] = "iso-8859-1"; 68 69 // define the website location (country) (if not defined) 70 if (!isset($settings['country'])) $settings['country'] = "??"; 71 72 // get the locale code, we need this in several places 73 if (dbtable_exists($db_prefix."locale")) { 74 $result = dbquery("SELECT locale_code FROM ".$db_prefix."locale WHERE locale_name = '".$settings['locale']."'"); 75 if ($dbrows($result)) { 76 $data = dbarray($result); 77 $settings['locale_code'] = $data['locale_code']; 78 } 79 } 80 if (!isset($settings['locale_code'])) $settings['locale_code'] = "en"; 81 82 // Date info (TODO: need to find a better solution for this) 83 if (!isset($settings['dateformat'])) $settings['dateformat'] = "mm-dd-yyyy"; 84 if (!isset($settings['datesequence'])) $settings['datesequence'] = array("M", "D", "Y"); 59 85 60 86 // Initialise the $locale array -
trunk/includes/sendmail_include.php
r863 r1081 19 19 20 20 $mail = new PHPMailer(); 21 if (file_exists(PATH_INCLUDES."languages/phpmailer.lang-".$ locale['phpmailer'].".php")) {22 $mail->SetLanguage($ locale['phpmailer'], PATH_INCLUDES."language/");21 if (file_exists(PATH_INCLUDES."languages/phpmailer.lang-".$settings['locale_code'].".php")) { 22 $mail->SetLanguage($settings['locale_code'], PATH_INCLUDES."language/"); 23 23 } else { 24 24 $mail->SetLanguage("en", PATH_INCLUDES."language/"); … … 36 36 } 37 37 38 $mail->CharSet = $ locale['charset'];38 $mail->CharSet = $settings['charset']; 39 39 $mail->From = $fromemail; 40 40 $mail->FromName = $fromname; -
trunk/includes/template-plugins/modifier.escape.php
r917 r1081 22 22 function smarty_modifier_escape($string, $esc_type = 'entities', $char_set = '') 23 23 { 24 global $locale ;24 global $locale, $settings; 25 25 26 26 // set a default char_set if none given 27 if ($char_set == '') $char_set = $ locale['charset'];27 if ($char_set == '') $char_set = $settings['charset']; 28 28 29 29 switch ($esc_type) { -
trunk/includes/templates/main.edit_profile.tpl
r1060 r1081 114 114 <tr> 115 115 <td class='tbl'> 116 {$locale.u010} 116 {$locale.u010} ( {$settings.dateformat} ) 117 117 </td> 118 118 <td class='tbl'> 119 {foreach from=$ locale.datesequence item=field}119 {foreach from=$settings.datesequence item=field} 120 120 {if $field == "D"} 121 121 <select name='user_day' class='textbox'> -
trunk/includes/templates/main.register.tpl
r954 r1081 122 122 <td class='tbl'> 123 123 {$locale.u010} 124 <span class='small2'>( mm/dd/yyyy)</span>125 </td> 126 <td class='tbl'> 127 {foreach from=$ locale.datesequence item=field}124 <span class='small2'>( {$settings.dateformat} )</span> 125 </td> 126 <td class='tbl'>} 127 {foreach from=$settings.datesequence item=field} 128 128 {if $field == "D"} 129 129 <select name='user_day' class='textbox'> -
trunk/includes/templates/main.setup.tpl
r960 r1081 19 19 <head> 20 20 <title>{$locale.title}</title> 21 <meta http-equiv='Content-Type' content='text/html; charset={$ locale.charset}'>21 <meta http-equiv='Content-Type' content='text/html; charset={$settings.charset}'> 22 22 {literal}<style type="text/css"> 23 23 <!-- -
trunk/includes/user_functions.php
r1060 r1081 185 185 // if logged in, update the users lastvisit time and country 186 186 if (iMEMBER) { 187 $cc_code = $userdata['user_id'] == 1 ? $ locale['country'] : GeoIP_IP2Code(USER_IP, true);187 $cc_code = $userdata['user_id'] == 1 ? $settings['country'] : GeoIP_IP2Code(USER_IP, true); 188 188 $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."', user_cc_code='".$cc_code."' WHERE user_id='".$userdata['user_id']."'"); 189 189 } -
trunk/pm.php
r1071 r1081 54 54 // fix the webmaster to the site's country code 55 55 if ($msgrec['pmindex_from_id'] == 1) { 56 $data2['cc_flag'] = GeoIP_Code2Flag($ locale['country']);56 $data2['cc_flag'] = GeoIP_Code2Flag($settings['country']); 57 57 } else { 58 58 $data2['cc_flag'] = GeoIP_IP2Flag($data2['user_ip']); … … 83 83 // fix the webmaster to the site's country code 84 84 if ($msgrec['pmindex_to_id'] == 1) { 85 $data2['cc_flag'] = GeoIP_Code2Flag($ locale['country']);85 $data2['cc_flag'] = GeoIP_Code2Flag($settings['country']); 86 86 } else { 87 87 $data2['cc_flag'] = GeoIP_IP2Flag($data2['user_ip']); -
trunk/setup.php
r1071 r1081 112 112 $settings = array("locale" => (isset($_GET['localeset']) ? $_GET['localeset'] : "English")); 113 113 $variables['localeset'] = $settings['locale']; 114 $variables['charset'] = "iso-8859-1"; 114 115 115 116 // check if the cache directories are writeable -
trunk/themes/ExiteCMS/templates/templates/_header.tpl
r961 r1081 22 22 <head> 23 23 <title>{$settings.sitename}</title> 24 <meta http-equiv='Content-Type' content='text/html; charset={$ locale.charset}' />24 <meta http-equiv='Content-Type' content='text/html; charset={$settings.charset}' /> 25 25 <meta name='description' content='{$settings.description}' /> 26 26 <meta name='keywords' content='{$settings.keywords}' /> … … 39 39 editor_deselector:'textbox', 40 40 theme:'advanced', 41 language:' en',41 language:'{/literal}{$settings.locale_code}{literal}', 42 42 entities:'60,lt,62,gt', 43 43 document_base_url:'{/literal}{$settings.siteurl}{literal}', … … 67 67 mode:'textareas', 68 68 theme:'simple', 69 language:' en',69 language:'{/literal}{$settings.locale_code}{literal}', 70 70 convert_newlines_to_brs:'true', 71 71 force_br_newlines:'true',
Note: See TracChangeset
for help on using the changeset viewer.
