Changeset 858 in ExiteCMS for trunk/edit_profile.php
- Timestamp:
- 09/29/07 21:51:40 (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
edit_profile.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 1 Copy of config.php 2 config.backup.php 2 3 config.php
-
- Property svn:ignore
-
trunk/edit_profile.php
r834 r858 38 38 $error = ""; $set_avatar = ""; 39 39 $variables['update_profile'] = true; 40 40 41 $result = dbquery("SELECT locale_code, locale_name FROM ".$db_prefix."locale WHERE locale_id = '".$_POST['user_locale']."'"); 42 if ($data = dbarray($result)) { 43 if ($data['locale_name'] != $settings['locale']) { 44 die('setting locale cookie: '.$data['locale_code']); 45 setcookie("locale", $data['locale_code'], time() + 31536000, "/", "", "0"); 46 } 47 } 41 48 $username = trim(eregi_replace(" +", " ", $_POST['user_name'])); 42 49 if ($username == "" || $_POST['user_email'] == "" || $_POST['user_fullname'] == "" ) { … … 207 214 $variables['this_userdata'] = $this_userdata; 208 215 216 $variables['locales'] = array(); 217 $result = dbquery("SELECT locale_id, locale_name FROM ".$db_prefix."locale WHERE locale_active = '1' ORDER BY locale_name"); 218 while ($data = dbarray($result)) { 219 $data['selected'] = $data['locale_name'] == $settings['locale']; 220 $variables['locales'][] = $data; 221 } 222 209 223 // define the search body panel variables 210 224 $template_panels[] = array('type' => 'body', 'name' => 'edit_profile', 'template' => 'main.edit_profile.tpl', 'locale' => array(PATH_LOCALE.LOCALESET."members-profile.php", PATH_LOCALE.LOCALESET."user_fields.php"));
Note: See TracChangeset
for help on using the changeset viewer.
