예제 #1
0
 if (wf_CheckGet(array('users', 'userslist'))) {
     show_window(__('Available users'), $ukv->renderUsers());
 }
 //users registration
 if (wf_CheckGet(array('users', 'register'))) {
     if (wf_CheckPost(array('userregisterprocessing'))) {
         if (wf_CheckPost(array('uregcity', 'uregstreet', 'uregbuild'))) {
             //all needed fields is filled - processin registration
             $createdUserId = $ukv->userCreate();
             rcms_redirect(UkvSystem::URL_USERS_PROFILE . $createdUserId);
         } else {
             show_window(__('Error'), __('All fields marked with an asterisk are mandatory'));
         }
     }
     //show new user registration form
     show_window(__('User registration'), $ukv->userRegisterForm());
 }
 //user profile show
 if (wf_CheckGet(array('users', 'showuser'))) {
     //user editing processing
     if (wf_CheckPost(array('usereditprocessing'))) {
         $ukv->userSave();
         rcms_redirect(UkvSystem::URL_USERS_PROFILE . $_POST['usereditprocessing']);
     }
     //user cable seal editing processing
     if (wf_CheckPost(array('usercablesealprocessing'))) {
         $ukv->userCableSealSave();
         rcms_redirect(UkvSystem::URL_USERS_PROFILE . $_POST['usercablesealprocessing']);
     }
     //user deletion processing
     if (wf_CheckPost(array('userdeleteprocessing', 'deleteconfirmation'))) {