function intChangeDeposit(&$smarty, $admin_username, $deposit, $deposit_comment) { $req = new ChangeDeposit($admin_username, $deposit, $deposit_comment); $resp = $req->sendAndRecv(); if ($resp->isSuccessful()) { $smarty->assign("change_successfull", TRUE); } else { $resp->setErrorInSmarty($smarty); intSetErrors($smarty, $resp->getError()); } intShowChangeDepositFace($smarty, $admin_username); }
function intChangeCredit(&$smarty, $user_id, $credit, $credit_comment) { $req = new ChangeUserCredit($user_id, $credit, $credit_comment); $resp = $req->sendAndRecv(); if ($resp->isSuccessful()) { $smarty->assign("change_successfull", TRUE); } else { $resp->setErrorInSmarty($smarty); intSetErrors($smarty, $resp->getError()); } intShowChangeCreditFace($smarty, $user_id); }