Changeset 788
- Timestamp:
- 10/01/08 20:21:44 (7 weeks ago)
- Location:
- trunk/app
- Files:
-
- 5 modified
-
config/sql/postgresql/langs.sql (modified) (1 diff)
-
controllers/confirms_controller.php (modified) (1 diff)
-
controllers/users_controller.php (modified) (4 diffs)
-
views/entries/admin_comments.ctp (modified) (1 diff)
-
views/users/register.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/sql/postgresql/langs.sql
r778 r788 5 5 "lang" varchar(80) NOT NULL UNIQUE 6 6 ); 7 INSERT INTO langs (code, lang) VALUES ('es_ MX', 'Spanish Argentina');8 INSERT INTO langs (code, lang) VALUES ('es_ MX', 'Spanish Spain');7 INSERT INTO langs (code, lang) VALUES ('es_AR', 'Spanish Argentina'); 8 INSERT INTO langs (code, lang) VALUES ('es_ES', 'Spanish Spain'); 9 9 INSERT INTO langs (code, lang) VALUES ('es_MX', 'Spanish Mexico'); 10 10 INSERT INTO langs (code, lang) VALUES ('en_US', 'English USA'); -
trunk/app/controllers/confirms_controller.php
r785 r788 35 35 36 36 if ($this->User->save($this->data) && $this->Confirm->delete($data['Confirm']['id'])): 37 $this->flash(__('Your account has been activated', true), '/ users/login', 1);37 $this->flash(__('Your account has been activated', true), '/', 2); 38 38 endif; 39 39 else: 40 $this->flash('There is not such account', '/ users/login', 2);40 $this->flash('There is not such account', '/', 2); 41 41 endif; 42 42 } -
trunk/app/controllers/users_controller.php
r785 r788 268 268 $this->Sanitize = new Sanitize; 269 269 270 $this->Sanitize->html($this->data[ "User"]["name"]);271 272 $this->Sanitize->html($this->data[ "User"]["username"]);273 274 $this->Sanitize->html($this->data[ "User"]["description"]);275 276 $this->Sanitize->html($this->data[ "User"]["email"]);270 $this->Sanitize->html($this->data['User']['name']); 271 272 $this->Sanitize->html($this->data['User']['username']); 273 274 $this->Sanitize->html($this->data['User']['cv']); 275 276 $this->Sanitize->html($this->data['User']['email']); 277 277 278 278 // adds new classroom to database 279 279 if (!empty($this->data['User'])) 280 280 { 281 $message = array( "oops"=>"Oooppps!");281 $message = array('oops'=>'Oooppps!'); 282 282 283 283 /** Check Passwd **/ … … 292 292 /** username check **/ 293 293 if (strlen($this->data['User']['username']) < 5): 294 $message['pwd_username'] = "The username has less than 5 characters ";294 $message['pwd_username'] = 'The username has less than 5 characters '; 295 295 endif; 296 296 297 297 /** name check **/ 298 298 if (strlen($this->data['User']['name']) < 5): 299 $message['pwd_username'] = "The name is too short";299 $message['pwd_username'] = 'The name is too short'; 300 300 endif; 301 301 302 302 if (strpos($this->data['User']['pwd'], ' ')): // pwd no spaces 303 $message['username_spaces'] = "Your password should not contain spaces";303 $message['username_spaces'] = 'Your password should not contain spaces'; 304 304 endif; 305 305 306 306 /** description check **/ 307 if (strlen($this->data['User'][' description']) < 5):308 $message['description_too_short'] = "C'mon pal, talk us about you!";307 if (strlen($this->data['User']['cv']) < 5): 308 $message['description_too_short'] = 'C\'mon pal, talk us about you!'; 309 309 endif; 310 310 311 311 /** email check **/ 312 312 if ($this->Adds->validEmail($this->data['User']['email']) === false): 313 $message['pwd_username'] = "Typed email is invalid";313 $message['pwd_username'] = 'Email is invalid'; 314 314 endif; 315 315 … … 332 332 333 333 if ( $this->data['User']['code'] != $code ): 334 $message['wrong_code'] = "The code is incorrect, please put in contact with your school webmaster.";334 $message['wrong_code'] = 'The code is incorrect, please put in contact with your school webmaster.'; 335 335 endif; 336 336 … … 345 345 $this->data['Confirm']['user_id'] = $this->User->getLastInsertID(); // the user id 346 346 $this->data['Confirm']['secret'] = $this->Adds->genPassword(14); // secret confirm ID 347 348 $this->User->Confirm->create();349 347 350 348 // put the user in confirm model, this is, waiting for user confirmation trough email -
trunk/app/views/entries/admin_comments.ctp
r776 r788 2 2 echo $html->div('title_section', __('Comments in your eduBlog', true)); 3 3 //debug($data); 4 if ( count($data) < 1 ): 5 echo '<h1>'.__('No comments yet', true) .'</h1>';; 6 endif; 7 4 8 foreach($data as $v): 5 9 $tmp = $html->para(null, 'Entry: '.$html->link($v['Entry']['title'], 'http://'.$_SERVER['HTTP_HOST'].'/entries/view/'.$session->read('Auth.User.username').'/'.$v['Entry']['id']), array('style'=>'font-size:14pt;font-weigth:bold;')); -
trunk/app/views/users/register.ctp
r627 r788 43 43 44 44 echo $html->div(null, '<br />'); 45 echo $form->label('User. description', __('About you and your interests', true) ) . '<br />';46 echo $form->textarea('User. description', array("rows"=>4, "cols"=>50)).'<br />';45 echo $form->label('User.cv', __('About you and your interests', true) ) . '<br />'; 46 echo $form->textarea('User.cv', array('rows'=>4, 'cols'=>50)).'<br />'; 47 47 48 48 $tmp = $html->link(__('I read and I do agree with terms', true),'#header',
