| | |
| | | |
| | | // Importing ID |
| | | $this->id = $_SESSION['s']['user']['userid']; |
| | | $_POST['id'] = $_SESSION['s']['user']['userid']; |
| | | |
| | | if(count($_POST) > 1) { |
| | | $this->dataRecord = $_POST; |
| | |
| | | $this->onShow(); |
| | | } |
| | | } |
| | | |
| | | function onInsert() { |
| | | die('No inserts allowed.'); |
| | | } |
| | | |
| | | function onBeforeUpdate() { |
| | | global $app, $conf; |
| | | |
| | | if($_POST['passwort'] != $_POST['passwort2']) { |
| | | $app->tform->errorMessage = 'The passwords in the second password field does not match the first password.'; |
| | | } |
| | | if($conf['demo_mode'] == true && $this->id <= 3) $app->tform->errorMessage .= 'This function is disabled in demo mode.'; |
| | | |
| | | if($_POST['passwort'] != $_POST['repeat_password']) { |
| | | $app->tform->errorMessage = $app->tform->lng('password_mismatch'); |
| | | } |
| | | $_SESSION['s']['user']['language'] = $_POST['language']; |
| | | $_SESSION['s']['language'] = $_POST['language']; |
| | | } |
| | | |
| | | |
| | |
| | | $page = new page_action; |
| | | $page->onLoad(); |
| | | |
| | | ?> |
| | | ?> |