- Timestamp:
- Mar 8, 2008, 1:27:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_7/profile.php
r2236 r2267 79 79 global $conf; 80 80 $errors = array(); 81 81 82 82 if (!isset($_POST['validate'])) 83 83 { … … 142 142 ;'; 143 143 list($current_password) = mysql_fetch_row(pwg_query($query)); 144 144 145 145 if ($conf['pass_convert']($_POST['password']) != $current_password) 146 146 { … … 161 161 162 162 $data = array(); 163 $data{$conf['user_fields']['id']} = $ _POST['userid'];163 $data{$conf['user_fields']['id']} = $userdata['id']; 164 164 $data{$conf['user_fields']['email']} = $_POST['mail_address']; 165 165 … … 185 185 186 186 $data = array(); 187 $data['user_id'] = $ _POST['userid'];187 $data['user_id'] = $userdata['id']; 188 188 189 189 foreach ($fields as $field) … … 214 214 $template->set_filename('profile_content', 'profile_content.tpl'); 215 215 216 $expand = ($userdata['expand'] == 'true') ? 216 $expand = ($userdata['expand'] == 'true') ? 217 217 'EXPAND_TREE_YES':'EXPAND_TREE_NO'; 218 218 219 219 $nb_comments = 220 ($userdata['show_nb_comments'] == 'true') ? 220 ($userdata['show_nb_comments'] == 'true') ? 221 221 'NB_COMMENTS_YES':'NB_COMMENTS_NO'; 222 222 223 223 $nb_hits = 224 ($userdata['show_nb_hits'] == 'true') ? 224 ($userdata['show_nb_hits'] == 'true') ? 225 225 'NB_HITS_YES':'NB_HITS_NO'; 226 226 … … 235 235 'MAXWIDTH'=>@$userdata['maxwidth'], 236 236 'MAXHEIGHT'=>@$userdata['maxheight'], 237 237 238 238 $expand=>'checked="checked"', 239 239 $nb_comments=>'checked="checked"', 240 240 $nb_hits=>'checked="checked"', 241 241 242 242 'REDIRECT' => $url_redirect, 243 243 244 244 'F_ACTION'=>$url_action, 245 245 )); … … 261 261 $selected = ''; 262 262 } 263 263 264 264 $template->assign_block_vars( 265 265 $blockname, … … 287 287 $selected = ''; 288 288 } 289 289 290 290 $template->assign_block_vars( 291 291 $blockname,
Note: See TracChangeset
for help on using the changeset viewer.