protected function showMessage($message = '', $referer = '', $refresh = false) { Pw::echoStr($message); if ($_SESSION['op'] == 'btsnowballsync') { //BTSNowBall_U 人生苦短,简单粗暴。 $srv = new PwWindidInform(); $user = $_SESSION['user']; $srv->synLogin($_SESSION['user']); } exit; }
/** * step 5 : 开始升级 * 备份源文件 * 覆盖文件 */ public function doupgradeAction() { $r = $this->installService->backUp($this->localFileList); if ($r instanceof PwError) { $this->showError($r->getError()); } $useFtp = Wekit::cache()->get('system_upgrade_ftp'); $r = $this->installService->doUpgrade($this->localFileList, $useFtp); if ($r instanceof PwError) { $errorMsg = '上传失败!' . var_export($r->getError(), true); Pw::echoStr($errorMsg); exit; } Wekit::cache()->set('system_upgrade_step', 5); PwSystemHelper::log('file upgrade success', $this->version); header('Location:' . WindUrlHelper::createUrl('appcenter/upgrade/db')); exit; }
protected function showMessage($message = '', $referer = '', $refresh = false) { Pw::echoStr($message); exit; }