예제 #1
0
         if (wf_CheckPost(array('paymentnotes'))) {
             $paymentNotes .= $_POST['paymentnotes'];
         }
         if ($ukv->isMoney($_POST['paymentsumm'])) {
             if ($_POST['paymenttype'] != 'mock') {
                 $ukv->userAddCash($_POST['manualpaymentprocessing'], $_POST['paymentsumm'], $paymentVisibility, $_POST['paymentcashtype'], $paymentNotes);
             } else {
                 $ukv->logPayment($_POST['manualpaymentprocessing'], $_POST['paymentsumm'], $paymentVisibility, $_POST['paymentcashtype'], $paymentNotes);
             }
             rcms_redirect(UkvSystem::URL_USERS_PROFILE . $_POST['manualpaymentprocessing']);
         } else {
             show_window('', wf_modalOpened(__('Error'), __('Wrong format of a sum of money to pay'), '400', '200'));
             log_register('UKV BALANCEADDFAIL ((' . $_POST['manualpaymentprocessing'] . ')) WRONG SUMM `' . $_POST['paymentsumm'] . '`');
         }
     }
     show_window(__('User profile'), $ukv->userProfile($_GET['showuser']));
 }
 // bank statements processing
 if (wf_CheckGet(array('banksta'))) {
     //banksta upload
     if (wf_CheckPost(array('uploadukvbanksta'))) {
         $bankstaUploaded = $ukv->bankstaDoUpload();
         if (!empty($bankstaUploaded)) {
             if (wf_CheckPost(array('ukvbankstatype'))) {
                 if ($_POST['ukvbankstatype'] == 'oschad') {
                     $processedBanksta = $ukv->bankstaPreprocessing($bankstaUploaded);
                     rcms_redirect(UkvSystem::URL_BANKSTA_PROCESSING . $processedBanksta);
                 }
                 if ($_POST['ukvbankstatype'] == 'oschadterm') {
                     $processedBanksta = $ukv->bankstaPreprocessingTerminal($bankstaUploaded);
                     rcms_redirect(UkvSystem::URL_BANKSTA_PROCESSING . $processedBanksta);