28 lines
791 B
PHP
28 lines
791 B
PHP
<?php
|
|
// -------------------------------------------------------- //
|
|
//TODO @BL or @DD: creating UT for the registration process //
|
|
// -------------------------------------------------------- //
|
|
|
|
$oConf = new ClassConfig();
|
|
$oTrans = new ClassTranslation();
|
|
$oUser = new ClassUser();
|
|
$oForm = new ClassForm();
|
|
|
|
// Creating user in ERP and in WEFRA
|
|
// ..
|
|
if(isset($_POST['formRegisterButtonSubmit'])){
|
|
//clean $_POST data from any hack try
|
|
foreach($_POST as $k=>$v){
|
|
if($_POST[$k]!="formRegisterFieldPassword" or $_POST[$k]!="formRegisterFieldConfirmPassword"){
|
|
$_POST[$k] = $oForm->cleanData($v);
|
|
} else {
|
|
continue;
|
|
}
|
|
}
|
|
|
|
//create user in Wefra and link the user to ERP
|
|
$res = $oUser->createUser($_POST);
|
|
}
|
|
// ..
|
|
// ENDOF creating user in ERP and in WeFra
|