//BindEvents Method @1-C8849BB4 function BindEvents() { global $NewRecord1; $NewRecord1->CCSEvents["OnValidate"] = "NewRecord1_OnValidate"; $NewRecord1->CCSEvents["BeforeShow"] = "NewRecord1_BeforeShow"; $NewRecord1->CCSEvents["AfterUpdate"] = "NewRecord1_AfterUpdate"; } //End BindEvents Method //NewRecord1_OnValidate @4-A9AB815E function NewRecord1_OnValidate(& $sender) { $NewRecord1_OnValidate = true; $Component = & $sender; $Container = & CCGetParentContainer($sender); global $NewRecord1; //Compatibility //End NewRecord1_OnValidate //Custom Code @8-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code //Close NewRecord1_OnValidate @4-304A44B9 return $NewRecord1_OnValidate; } //End Close NewRecord1_OnValidate //NewRecord1_BeforeShow @4-38EC31E8 function NewRecord1_BeforeShow(& $sender) { $NewRecord1_BeforeShow = true; $Component = & $sender; $Container = & CCGetParentContainer($sender); global $NewRecord1; //Compatibility //End NewRecord1_BeforeShow //Custom Code @11-2A29BDB7 // ------------------------- // Write your own code here. // ------------------------- //End Custom Code //Close NewRecord1_BeforeShow @4-0FB12030 return $NewRecord1_BeforeShow; } //End Close NewRecord1_BeforeShow //NewRecord1_AfterUpdate @4-EE597587 function NewRecord1_AfterUpdate(& $sender) { $NewRecord1_AfterUpdate = true; $Component = & $sender; $Container = & CCGetParentContainer($sender); global $NewRecord1; //Compatibility //End NewRecord1_AfterUpdate //Custom Code @12-2A29BDB7 // ------------------------- $userId = (new TableDataGateway)->getActivationInfoByEmailAddress($Component->Email->GetValue())->id; $q = sprintf( 'UPDATE gebruiker SET "password" = %s WHERE userid = %d', CCToSQL(PasswordEncodingHandler::encodePassword($Component->Wachtwoord->GetValue()), ccsText), CCToSQL($userId, ccsInteger) ); $db = new clsDBsmt(); // ------------------------- //End Custom Code //Close NewRecord1_AfterUpdate @4-90527ACC return $NewRecord1_AfterUpdate; } //End Close NewRecord1_AfterUpdate Succes met taal, by Sobit (?}{!)

Voucher inwisselen

Vul de velden hieronder in om je account te activeren.

* verplichte velden.

//Include Common Files @1-7B18D021 define("RelativePath", "."); define("PathToCurrentPage", "/"); define("FileName", "voucherInwisselen.php"); include_once(RelativePath . "/Common.php"); include_once(RelativePath . "/Template.php"); include_once(RelativePath . "/Sorter.php"); include_once(RelativePath . "/Navigator.php"); //End Include Common Files //Include Page implementation @2-78BA24CB include_once(RelativePath . "/top_menu_front.php"); //End Include Page implementation //Include Page implementation @3-EBA5EA16 include_once(RelativePath . "/footer.php"); //End Include Page implementation class clsRecordNewRecord1 { //NewRecord1 Class @4-D7EDAFB1 //Variables @4-9E315808 // Public variables public $ComponentType = "Record"; public $ComponentName; public $Parent; public $HTMLFormAction; public $PressedButton; public $Errors; public $ErrorBlock; public $FormSubmitted; public $FormEnctype; public $Visible; public $IsEmpty; public $CCSEvents = ""; public $CCSEventResult; public $RelativePath = ""; public $InsertAllowed = false; public $UpdateAllowed = false; public $DeleteAllowed = false; public $ReadAllowed = false; public $EditMode = false; public $ds; public $DataSource; public $ValidatingControls; public $Controls; public $Attributes; // Class variables //End Variables //Class_Initialize Event @4-7835ADE0 function clsRecordNewRecord1($RelativePath, & $Parent) { global $FileName; global $CCSLocales; global $DefaultDateFormat; $this->Visible = true; $this->Parent = & $Parent; $this->RelativePath = $RelativePath; $this->Errors = new clsErrors(); $this->ErrorBlock = "Record NewRecord1/Error"; $this->ReadAllowed = true; if($this->Visible) { $this->ComponentName = "NewRecord1"; $this->Attributes = new clsAttributes($this->ComponentName . ":"); $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2); if(sizeof($CCSForm) == 1) $CCSForm[1] = ""; list($FormName, $FormMethod) = $CCSForm; $this->FormEnctype = "application/x-www-form-urlencoded"; $this->FormSubmitted = ($FormName == $this->ComponentName); $Method = $this->FormSubmitted ? ccsPost : ccsGet; $this->Email = new clsControl(ccsTextBox, "Email", "E-mailadres", ccsText, "", CCGetRequestParam("Email", $Method, NULL), $this); $this->Email->Required = true; $this->Activatiecode = new clsControl(ccsTextBox, "Activatiecode", "Activatiecode", ccsText, "", CCGetRequestParam("Activatiecode", $Method, NULL), $this); $this->Activatiecode->Required = true; $this->Button_DoSearch = new clsButton("Button_DoSearch", $Method, $this); $this->Wachtwoord = new clsControl(ccsTextBox, "Wachtwoord", "Wachtwoord", ccsText, "", CCGetRequestParam("Wachtwoord", $Method, NULL), $this); $this->Wachtwoord->Required = true; $this->wachtwoordHerhaal = new clsControl(ccsTextBox, "wachtwoordHerhaal", "Herhaal wachtwoord", ccsText, "", CCGetRequestParam("wachtwoordHerhaal", $Method, NULL), $this); $this->wachtwoordHerhaal->Required = true; } } //End Class_Initialize Event //Validate Method @4-442B38C1 function Validate() { global $CCSLocales; $Validation = true; $Where = ""; $Validation = ($this->Email->Validate() && $Validation); $Validation = ($this->Activatiecode->Validate() && $Validation); $Validation = ($this->Wachtwoord->Validate() && $Validation); $Validation = ($this->wachtwoordHerhaal->Validate() && $Validation); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate", $this); $Validation = $Validation && ($this->Email->Errors->Count() == 0); $Validation = $Validation && ($this->Activatiecode->Errors->Count() == 0); $Validation = $Validation && ($this->Wachtwoord->Errors->Count() == 0); $Validation = $Validation && ($this->wachtwoordHerhaal->Errors->Count() == 0); return (($this->Errors->Count() == 0) && $Validation); } //End Validate Method //CheckErrors Method @4-39E460F1 function CheckErrors() { $errors = false; $errors = ($errors || $this->Email->Errors->Count()); $errors = ($errors || $this->Activatiecode->Errors->Count()); $errors = ($errors || $this->Wachtwoord->Errors->Count()); $errors = ($errors || $this->wachtwoordHerhaal->Errors->Count()); $errors = ($errors || $this->Errors->Count()); return $errors; } //End CheckErrors Method //MasterDetail @4-ED598703 function SetPrimaryKeys($keyArray) { $this->PrimaryKeys = $keyArray; } function GetPrimaryKeys() { return $this->PrimaryKeys; } function GetPrimaryKey($keyName) { return $this->PrimaryKeys[$keyName]; } //End MasterDetail //Operation Method @4-DD94EE4C function Operation() { if(!$this->Visible) return; global $Redirect; global $FileName; if(!$this->FormSubmitted) { return; } if($this->FormSubmitted) { $this->PressedButton = "Button_DoSearch"; if($this->Button_DoSearch->Pressed) { $this->PressedButton = "Button_DoSearch"; } } $Redirect = $FileName; if($this->Validate()) { if($this->PressedButton == "Button_DoSearch") { $Redirect = $FileName . "?" . CCMergeQueryStrings(CCGetQueryString("Form", array("Button_DoSearch", "Button_DoSearch_x", "Button_DoSearch_y"))); if(!CCGetEvent($this->Button_DoSearch->CCSEvents, "OnClick", $this->Button_DoSearch)) { $Redirect = ""; } } } else { $Redirect = ""; } } //End Operation Method //Show Method @4-40A9530F function Show() { global $CCSUseAmp; global $Tpl; global $FileName; global $CCSLocales; $Error = ""; if(!$this->Visible) return; $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this); $RecordBlock = "Record " . $this->ComponentName; $ParentPath = $Tpl->block_path; $Tpl->block_path = $ParentPath . "/" . $RecordBlock; $this->EditMode = $this->EditMode && $this->ReadAllowed; if (!$this->FormSubmitted) { } if($this->FormSubmitted || $this->CheckErrors()) { $Error = ""; $Error = ComposeStrings($Error, $this->Email->Errors->ToString()); $Error = ComposeStrings($Error, $this->Activatiecode->Errors->ToString()); $Error = ComposeStrings($Error, $this->Wachtwoord->Errors->ToString()); $Error = ComposeStrings($Error, $this->wachtwoordHerhaal->Errors->ToString()); $Error = ComposeStrings($Error, $this->Errors->ToString()); $Tpl->SetVar("Error", $Error); $Tpl->Parse("Error", false); } $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName; $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm); $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction)); $Tpl->SetVar("HTMLFormName", $this->ComponentName); $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this); $this->Attributes->Show(); if(!$this->Visible) { $Tpl->block_path = $ParentPath; return; } $this->Email->Show(); $this->Activatiecode->Show(); $this->Button_DoSearch->Show(); $this->Wachtwoord->Show(); $this->wachtwoordHerhaal->Show(); $Tpl->parse(); $Tpl->block_path = $ParentPath; } //End Show Method } //End NewRecord1 Class @4-FCB6E20C //Initialize Page @1-BC7F2C08 // Variables $FileName = ""; $Redirect = ""; $Tpl = ""; $TemplateFileName = ""; $BlockToParse = ""; $ComponentName = ""; $Attributes = ""; // Events; $CCSEvents = ""; $CCSEventResult = ""; $FileName = FileName; $Redirect = ""; $TemplateFileName = "voucherInwisselen.html"; $BlockToParse = "main"; $TemplateEncoding = "UTF-8"; $ContentType = "text/html"; $PathToRoot = "./"; $Charset = $Charset ? $Charset : "utf-8"; //End Initialize Page //Include events file @1-9D042A6E include_once("./voucherInwisselen_events.php"); //End Include events file //Before Initialize @1-E870CEBC $CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage); //End Before Initialize //Initialize Objects @1-C60EA688 $Attributes = new clsAttributes("page:"); $MainPage->Attributes = & $Attributes; // Controls $top_menu = new clstop_menu_front("", "top_menu", $MainPage); $top_menu->Initialize(); $footer = new clsfooter("", "footer", $MainPage); $footer->Initialize(); $NewRecord1 = new clsRecordNewRecord1("", $MainPage); $MainPage->top_menu = & $top_menu; $MainPage->footer = & $footer; $MainPage->NewRecord1 = & $NewRecord1; BindEvents(); $CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage); if ($Charset) { header("Content-Type: " . $ContentType . "; charset=" . $Charset); } else { header("Content-Type: " . $ContentType); } //End Initialize Objects //Initialize HTML Template @1-A06E9207 $CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage); $Tpl = new clsTemplate($FileEncoding, $TemplateEncoding); $Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "UTF-8", "replace"); $Tpl->block_path = "/$BlockToParse"; $CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage); $Attributes->SetValue("pathToRoot", ""); $Attributes->Show(); //End Initialize HTML Template //Execute Components @1-CEE1BC0F $top_menu->Operations(); $footer->Operations(); $NewRecord1->Operation(); //End Execute Components //Go to destination page @1-3181EEC0 if($Redirect) { $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); header("Location: " . $Redirect); $top_menu->Class_Terminate(); unset($top_menu); $footer->Class_Terminate(); unset($footer); unset($NewRecord1); unset($Tpl); exit; } //End Go to destination page //Show Page @1-0B1888B3 $top_menu->Show(); $footer->Show(); $NewRecord1->Show(); $Tpl->block_path = ""; $Tpl->Parse($BlockToParse, false); if (!isset($main_block)) $main_block = $Tpl->GetVar($BlockToParse); $main_block = CCConvertEncoding($main_block, $FileEncoding, $CCSLocales->GetFormatInfo("Encoding")); $CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage); if ($CCSEventResult) echo $main_block; //End Show Page //Unload Page @1-A897E7A0 $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $top_menu->Class_Terminate(); unset($top_menu); $footer->Class_Terminate(); unset($footer); unset($NewRecord1); unset($Tpl); //End Unload Page