public function qwcGenerate($MOD, $DO) { $qwc = $this->_HTTPPostDefaults(); extract($qwc); if (empty($name)) { return $this->qwcForm($MOD, $DO, 'You must enter an application name!'); } else { if (empty($username)) { return $this->qwcForm($MOD, $DO, 'You must enter a Web Connector username!'); } } if (empty($fileid)) { $fileid = QuickBooks_Utilities::generateFileID(); } if (empty($ownerid)) { $ownerid = QuickBooks_Utilities::generateOwnerID(); } $xml = QuickBooks_Utilities::generateQWC($name, $descrip, $appurl, $appsupport, $username, $fileid, $ownerid, $qbtype, $readonly, $run_every_n_seconds, $personaldata, $unattendedmode, $authflags, $notify, $appdisplayname, $appuniquename, $appid); header('Content-type: text/plain'); print $xml; exit; }