86 if (isset($args[0]) && !empty($args[0])) {
88 $this->cntProcessActions = 11;
91 $this->cntProcessActions = 11;
92 } elseif ($args[0] ==
$bearsamppBins->getPostgresql()->getName()) {
94 $this->cntProcessActions = 10;
97 $bearsamppWinbinder->reset();
98 $this->wbWindow = $bearsamppWinbinder->createAppWindow(
103 WBC_KEYDOWN | WBC_KEYUP
107 $this->wbInputCurrentPwd = $bearsamppWinbinder->createInputText($this->wbWindow,
null, 15, 40, 200,
null,
null, WBC_MASKED);
110 $this->wbInputNewPwd1 = $bearsamppWinbinder->createInputText($this->wbWindow,
null, 15, 105, 200,
null,
null, WBC_MASKED);
113 $this->wbInputNewPwd2 = $bearsamppWinbinder->createInputText($this->wbWindow,
null, 15, 170, 200,
null,
null, WBC_MASKED);
115 $this->wbProgressBar = $bearsamppWinbinder->createProgressBar($this->wbWindow, $this->cntProcessActions + 1, 15, 227, 190);
119 $bearsamppWinbinder->setHandler($this->wbWindow, $this,
'processWindow');
121 $bearsamppWinbinder->mainLoop();
122 $bearsamppWinbinder->reset();
145 $bearsamppWinbinder->incrProgressBar($this->wbProgressBar);
146 if ($newPwd1 != $newPwd2) {
151 $bearsamppWinbinder->resetProgressBar($this->wbProgressBar);
155 $checkRootPwd = $this->bin->checkRootPassword($currentPwd, $this->wbProgressBar);
156 if ($checkRootPwd !==
true) {
157 $bearsamppWinbinder->messageBoxError(
163 $bearsamppWinbinder->resetProgressBar($this->wbProgressBar);
167 $changeRootPwd = $this->bin->changeRootPassword($currentPwd, $newPwd1, $this->wbProgressBar);
168 if ($changeRootPwd !==
true) {
169 $bearsamppWinbinder->messageBoxError(
173 $bearsamppWinbinder->resetProgressBar($this->wbProgressBar);
177 $bearsamppWinbinder->messageBoxInfo(
181 $bearsamppWinbinder->destroyWindow($window);
185 $bearsamppWinbinder->destroyWindow($window);