zimbraSingle.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. <?php
  2. /**
  3. * WHMCS Zimbra Provisioning Module
  4. *
  5. * Provisioning for private mailboxes on a Zimbra Server
  6. *
  7. * @see https://www.zimbra.com
  8. * @copyright Copyright (c) Thurdata GmbH 2020
  9. * @license GPL
  10. */
  11. if (!defined('WHMCS')) {
  12. die('This file cannot be accessed directly');
  13. }
  14. use WHMCS\Database\Capsule;
  15. /**
  16. * Requires this PHP api to make soap calls and parse responses
  17. * This is an extend version of:
  18. * @see https://github.com/alloylab/zimbra-admin-api-soap-php
  19. */
  20. require_once('api/Zm/Auth.php');
  21. require_once('api/Zm/Account.php');
  22. require_once('api/Zm/Domain.php');
  23. require_once('api/Zm/Server.php');
  24. /**
  25. * Helper function to find values of a named key in a multidimensional arrays or objects
  26. *
  27. * @param array $haystack mixed data
  28. * @param string $needle key to search for values
  29. * @return array of values
  30. */
  31. function recursiveFindAll($haystack, $needle)
  32. {
  33. $values = array();
  34. $iterator = new RecursiveArrayIterator((array)$haystack);
  35. $recursive = new RecursiveIteratorIterator(
  36. $iterator,
  37. RecursiveIteratorIterator::SELF_FIRST
  38. );
  39. foreach ($recursive as $key => $value) {
  40. if ($key === $needle) {
  41. array_push($values, $value);
  42. }
  43. }
  44. return $values;
  45. }
  46. /**
  47. * Define module related meta data.
  48. *
  49. * Values returned here are used to determine module related abilities and
  50. * settings.
  51. *
  52. * @see https://developers.whmcs.com/provisioning-modules/meta-data-params/
  53. *
  54. * @return array
  55. */
  56. function zimbraSingle_MetaData()
  57. {
  58. return array(
  59. 'DisplayName' => 'Zimbra Single Mailbox Provisioning',
  60. 'APIVersion' => '1.2',
  61. 'DefaultNonSSLPort' => '7071',
  62. 'DefaultSSLPort' => '7071',
  63. 'RequiresServer' => true,
  64. 'ServiceSingleSignOnLabel' => 'Login to Zimbra',
  65. 'AdminSingleSignOnLabel' => 'Login to Zimbra Admin'
  66. );
  67. }
  68. /**
  69. * Test connection to a Zimbra server with the given server parameters.
  70. *
  71. * Allows an admin user to verify that an API connection can be
  72. * successfully made with the given configuration parameters for a
  73. * server.
  74. *
  75. * When defined in a module, a Test Connection button will appear
  76. * alongside the Server Type dropdown when adding or editing an
  77. * existing server.
  78. *
  79. * @param array $params common module parameters
  80. *
  81. * @see https://developers.whmcs.com/provisioning-modules/module-parameters/
  82. *
  83. * @return array
  84. */
  85. function zimbraSingle_TestConnection($params)
  86. {
  87. $auth = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], 'admin');
  88. $login = $auth->login();
  89. if(is_a($login, 'Exception')) {
  90. logModuleCall(
  91. 'zimbrasingle',
  92. __FUNCTION__,
  93. $params,
  94. 'Connection failed, cannot login to ' . $params['serverip'],
  95. $login->getMessage()
  96. );
  97. return array(
  98. 'success' => false,
  99. 'error' => 'Connection failed, cannot login to ' . $params['serverip'],
  100. );
  101. }
  102. return array(
  103. 'success' => true,
  104. 'error' => '',
  105. );
  106. }
  107. /**
  108. * Client area output logic handling.
  109. *
  110. * This function is used to define module specific client area output. It should
  111. * return an array consisting of a template file and optional additional
  112. * template variables to make available to that template.
  113. *
  114. * The template file you return can be one of two types:
  115. *
  116. * * tabOverviewModuleOutputTemplate - The output of the template provided here
  117. * will be displayed as part of the default product/service client area
  118. * product overview page.
  119. *
  120. * * tabOverviewReplacementTemplate - Alternatively using this option allows you
  121. * to entirely take control of the product/service overview page within the
  122. * client area.
  123. *
  124. * Whichever option you choose, extra template variables are defined in the same
  125. * way. This demonstrates the use of the full replacement.
  126. *
  127. * Please Note: Using tabOverviewReplacementTemplate means you should display
  128. * the standard information such as pricing and billing details in your custom
  129. * template or they will not be visible to the end user.
  130. *
  131. * @param array $params common module parameters
  132. *
  133. * @see https://developers.whmcs.com/provisioning-modules/module-parameters/
  134. *
  135. * @return array
  136. */
  137. function zimbraSingle_ClientArea($params)
  138. {
  139. $clientInfo = array();
  140. $api = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], 'admin');
  141. $login = $api->login();
  142. if(is_a($login, 'Exception')) {
  143. logModuleCall(
  144. 'zimbrasingle',
  145. __FUNCTION__,
  146. $params,
  147. 'Error: cannot login to ' . $accessData['zimbraServer'],
  148. $login->getMessage()
  149. );
  150. return false;
  151. }
  152. $apiAccountManager = new Zm_Account($api);
  153. $accountInfo = $apiAccountManager->getAccountInfo($params['username']);
  154. if(is_a($accountInfo, 'Exception')) {
  155. logModuleCall(
  156. 'zimbrasingle',
  157. __FUNCTION__,
  158. $params,
  159. 'Error: could not gather informations for ' . $params['username'],
  160. $accountInfo->getMessage()
  161. );
  162. return false;
  163. }
  164. $webmailUrl = recursiveFindAll($accountInfo, 'PUBLICMAILURL');
  165. $clientInfo['webmailurl'] = $webmailUrl[0]['DATA'];
  166. return array(
  167. 'templatefile' => 'clientarea',
  168. 'vars' => $clientInfo,
  169. );
  170. }
  171. /**
  172. * Usage Update
  173. *
  174. * Important: Runs daily per server not per product
  175. * Run Manually: /admin/reports.php?report=disk_usage_summary&action=updatestats
  176. * @param array $params common module parameters
  177. *
  178. * @see https://developers.whmcs.com/provisioning-modules/usage-update/
  179. */
  180. function zimbraSingle_UsageUpdate($params) {
  181. $api = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], 'admin');
  182. $login = $api->login();
  183. if(is_a($login, 'Exception')) {
  184. logModuleCall(
  185. 'zimbrasingle',
  186. __FUNCTION__,
  187. $params,
  188. 'Error: cannot login to ' . $params['serverip'],
  189. $login->getMessage()
  190. );
  191. return false;
  192. }
  193. $apiAccountManager = new Zm_Account($api);
  194. $productsObj = Capsule::table('tblhosting')
  195. ->select('*')
  196. ->where('server', '=', $params['serverid'])
  197. ->where('domainstatus', '=', 'Active')
  198. ->get();
  199. foreach((array)$productsObj as $productObj) {
  200. $product = get_object_vars($productObj[0]);
  201. $accountQuota = $apiAccountManager->getQuota($product['username']);
  202. if(is_a($accountQuota, 'Exception')) {
  203. logModuleCall(
  204. 'zimbrasingle',
  205. __FUNCTION__,
  206. $params,
  207. 'Error : could not find quota for ' . $product['username'],
  208. $accountQuota->getMessage()
  209. );
  210. }
  211. $mboxObj = $apiAccountManager->getMailbox($product['username']);
  212. if(is_a($mboxObj, 'Exception')) {
  213. logModuleCall(
  214. 'zimbrasingle',
  215. __FUNCTION__,
  216. $params,
  217. 'Error: could not fetch mailbox info for ' . $product['username'],
  218. $mboxObj->getMessage()
  219. );
  220. }
  221. $mboxVars = get_object_vars($mboxObj);
  222. $mboxSize = $mboxVars['S'];
  223. try {
  224. Capsule::table('tblhosting')
  225. ->where('id', '=', $product['id'])
  226. ->update(
  227. array(
  228. 'diskusage' => round($mboxSize / 1048576,2),
  229. 'disklimit' => round($accountQuota / 1048576,2),
  230. 'lastupdate' => Capsule::raw('now()')
  231. )
  232. );
  233. } catch (\Exception $e) {
  234. logModuleCall(
  235. 'zimbrasingle',
  236. __FUNCTION__,
  237. $params,
  238. 'Error: could update usage information for ' . $product['username'],
  239. $e->getMessage()
  240. );
  241. }
  242. }
  243. }
  244. /**
  245. * Change the password for a Zimbra account.
  246. *
  247. * Called when a password change is requested. This can occur either due to a
  248. * client requesting it via the client area or an admin requesting it from the
  249. * admin side.
  250. *
  251. * This option is only available to client end users when the product is in an
  252. * active status.
  253. *
  254. * @param array $params common module parameters
  255. *
  256. * @see https://developers.whmcs.com/provisioning-modules/module-parameters/
  257. *
  258. * @return string 'success' or an error message
  259. */
  260. function zimbraSingle_ChangePassword($params)
  261. {
  262. $api = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], 'admin');
  263. $login = $api->login();
  264. if(is_a($login, 'Exception')) {
  265. logModuleCall(
  266. 'zimbrasingle',
  267. __FUNCTION__,
  268. $params,
  269. 'Error: cannot login to ' . $params['serverip'],
  270. $login->getMessage()
  271. );
  272. return false;
  273. }
  274. $apiAccountManager = new Zm_Account($api);
  275. $response = $apiAccountManager->setAccountPassword($params['username'], $params['password']);
  276. if(is_a($response, 'Exception')) {
  277. logModuleCall(
  278. 'zimbrasingle',
  279. __FUNCTION__,
  280. $params,
  281. 'Error: password could not be set for ' . $params['username'],
  282. $response->getMessage()
  283. );
  284. return false;
  285. }
  286. return 'success';
  287. }
  288. /**
  289. * Provision a new instance of a Zimbra account.
  290. *
  291. * Attempt to provision a new Zimbra mail account. This is
  292. * called any time provisioning is requested inside of WHMCS. Depending upon the
  293. * configuration, this can be any of:
  294. * * When a new order is placed
  295. * * When an invoice for a new order is paid
  296. * * Upon manual request by an admin user
  297. *
  298. * @param array $params common module parameters
  299. *
  300. * @see https://developers.whmcs.com/provisioning-modules/module-parameters/
  301. *
  302. * @return string 'success' or an error message
  303. */
  304. function zimbraSingle_CreateAccount($params)
  305. {
  306. $api = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], 'admin');
  307. $login = $api->login();
  308. if(is_a($login, 'Exception')) {
  309. logModuleCall(
  310. 'zimbrasingle',
  311. __FUNCTION__,
  312. $params,
  313. 'Error: cannot login to ' . $params['serverip'],
  314. $login->getMessage()
  315. );
  316. return $login->getMessage();
  317. }
  318. $params['username'] = $params['customfields']['username'] . '@' . $params['customfields']['maildomain'];
  319. $apiAccountManager = new Zm_Account($api);
  320. $accountExists = $apiAccountManager->accountExists($params['username']);
  321. if(is_a($accountExists, 'Exception')) {
  322. logModuleCall(
  323. 'zimbrasingle',
  324. __FUNCTION__,
  325. $params,
  326. 'Error: could not verify ' . $params['username'],
  327. $accountExists->getMessage()
  328. );
  329. return 'Error: could not verify '. $params['username'];
  330. }
  331. if($accountExists === true) {
  332. return 'Error: account already exists ' . $params['username'];
  333. }
  334. $attrs = array();
  335. $attrs['gn'] = $params['customfields']['givenname'];
  336. $attrs['sn'] = $params['customfields']['sn'];
  337. $attrs['displayName'] = $attrs['gn'] . ' ' . $attrs['sn'];
  338. $passDecrypt = localAPI('DecryptPassword', array('password2' => $params['customfields']['password']));
  339. if ($passDecrypt['result'] == 'success') {
  340. $params['password'] = $passDecrypt['password'];
  341. } else {
  342. logModuleCall(
  343. 'zimbrasingle',
  344. __FUNCTION__,
  345. $params,
  346. 'Error: could not decrypt password',
  347. $passDecrypt['message']
  348. );
  349. return 'Error: could not decrypt password';
  350. }
  351. $cosID = $apiAccountManager->getCosId($params['configoption1']);
  352. if(is_a($cosID, 'Exception')) {
  353. logModuleCall(
  354. 'zimbrasingle',
  355. __FUNCTION__,
  356. $params,
  357. 'Error: could not find serviceclass ' . $params['configoption1'],
  358. $cosID->getMessage()
  359. );
  360. return 'Error: could not find serviceclass ' . $params['configoption1'];
  361. }
  362. $attrs['zimbraCOSId'] = $cosID;
  363. $zimbraID = $apiAccountManager->createAccount($params['username'], $params['password'], $attrs);
  364. if(is_a($zimbraID, 'Exception')) {
  365. logModuleCall(
  366. 'zimbrasingle',
  367. __FUNCTION__,
  368. $params,
  369. 'Error: could not create account ' . $params['username'],
  370. $zimbraID->getMessage()
  371. );
  372. return 'Error: could not create account ' . $params['username'];
  373. }
  374. try {
  375. Capsule::table('tblhosting')
  376. ->where('id', '=', $params['serviceid'])
  377. ->update(
  378. array(
  379. 'username' => $params['username'],
  380. 'password' => $params['customfields']['password'],
  381. )
  382. );
  383. } catch (\Exception $e) {
  384. logModuleCall(
  385. 'zimbrasingle',
  386. __FUNCTION__,
  387. $params,
  388. 'Error: could save username & password in database',
  389. $e->getMessage()
  390. );
  391. return 'Error: could save username & password in database';
  392. }
  393. return 'success';
  394. }
  395. /**
  396. * Set a Zimbra account to status locked.
  397. *
  398. * Called when a suspension is requested. This is invoked automatically by WHMCS
  399. * when a product becomes overdue on payment or can be called manually by admin
  400. * user.
  401. *
  402. * @param array $params common module parameters
  403. *
  404. * @see https://developers.whmcs.com/provisioning-modules/module-parameters/
  405. *
  406. * @return string 'success' or an error message
  407. */
  408. function zimbraSingle_SuspendAccount($params)
  409. {
  410. $api = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], 'admin');
  411. $login = $api->login();
  412. if(is_a($login, 'Exception')) {
  413. logModuleCall(
  414. 'zimbrasingle',
  415. __FUNCTION__,
  416. $params,
  417. 'Error: cannot login to ' . $params['serverip'],
  418. $login->getMessage()
  419. );
  420. return $login->getMessage();
  421. }
  422. $apiAccountManager = new Zm_Account($api);
  423. $response = $apiAccountManager->setAccountStatus($params['username'], 'locked');
  424. if(is_a($response, 'Exception')) {
  425. logModuleCall(
  426. 'zimbrasingle',
  427. __FUNCTION__,
  428. $params,
  429. 'Error: could not lock account ' . $params['username'],
  430. $response->getMessage()
  431. );
  432. return false;
  433. }
  434. return 'success';
  435. }
  436. /**
  437. * Set a Zimbra account to status active.
  438. *
  439. * Called when an un-suspension is requested. This is invoked
  440. * automatically upon payment of an overdue invoice for a product, or
  441. * can be called manually by admin user.
  442. *
  443. * @param array $params common module parameters
  444. *
  445. * @see https://developers.whmcs.com/provisioning-modules/module-parameters/
  446. *
  447. * @return string 'success' or an error message
  448. */
  449. function zimbraSingle_UnsuspendAccount($params)
  450. {
  451. $api = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], 'admin');
  452. $login = $api->login();
  453. if(is_a($login, 'Exception')) {
  454. logModuleCall(
  455. 'zimbrasingle',
  456. __FUNCTION__,
  457. $params,
  458. 'Error: cannot login to ' . $params['serverip'],
  459. $login->getMessage()
  460. );
  461. return $login->getMessage();
  462. }
  463. $apiAccountManager = new Zm_Account($api);
  464. $response = $apiAccountManager->setAccountStatus($params['username'], 'active');
  465. if(is_a($response, 'Exception')) {
  466. logModuleCall(
  467. 'zimbrasingle',
  468. __FUNCTION__,
  469. $params,
  470. 'Error: could not unlock account ' . $params['username'],
  471. $response->getMessage()
  472. );
  473. return 'Error: could not unlock account ' . $params['username'];
  474. }
  475. return 'success';
  476. }
  477. /**
  478. * Removes a Zimbra account.
  479. *
  480. * Called when a termination is requested. This can be invoked automatically for
  481. * overdue products if enabled, or requested manually by an admin user.
  482. *
  483. * @param array $params common module parameters
  484. *
  485. * @see https://developers.whmcs.com/provisioning-modules/module-parameters/
  486. *
  487. * @return string 'success' or an error message
  488. */
  489. function zimbraSingle_TerminateAccount($params)
  490. {
  491. $api = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], 'admin');
  492. $login = $api->login();
  493. if(is_a($login, 'Exception')) {
  494. logModuleCall(
  495. 'zimbrasingle',
  496. __FUNCTION__,
  497. $params,
  498. 'Error: cannot login to ' . $params['serverip'],
  499. $login->getMessage()
  500. );
  501. return $login->getMessage();
  502. }
  503. $apiAccountManager = new Zm_Account($api);
  504. $accountStatus = $apiAccountManager->getAccountStatus($params['username']);
  505. if(is_a($accountStatus, 'Exception')) {
  506. logModuleCall(
  507. 'zimbrasingle',
  508. __FUNCTION__,
  509. $params,
  510. 'Error: could not verify account '. $params['username'],
  511. $accountStatus->getMessage()
  512. );
  513. return 'Error : account ' . $params['username'] . ' Name could not verified';
  514. }
  515. if ($accountStatus != 'locked') {
  516. return 'Account '. $params['username'] . ' is active, suspend account first!';
  517. }
  518. $response = $apiAccountManager->deleteAccount($params['username']);
  519. if(is_a($response, 'Exception')) {
  520. logModuleCall(
  521. 'zimbrasingle',
  522. __FUNCTION__,
  523. $params,
  524. 'Error: could not remove account '. $params['username'],
  525. $response->getMessage()
  526. );
  527. return 'Error: could not remove account '. $params['username'];
  528. }
  529. return 'success';
  530. }
  531. /**
  532. * Set a new class of service for a Zimbra account.
  533. *
  534. * Called to apply a change of the class of service. It
  535. * is called to provision upgrade or downgrade orders, as well as being
  536. * able to be invoked manually by an admin user.
  537. *
  538. * This same function is called for upgrades and downgrades of both
  539. * products and configurable options.
  540. *
  541. * @param array $params common module parameters
  542. *
  543. * @see https://developers.whmcs.com/provisioning-modules/module-parameters/
  544. *
  545. * @return string 'success' or an error message
  546. */
  547. function zimbraSingle_ChangePackage($params)
  548. {
  549. $api = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], 'admin');
  550. $login = $api->login();
  551. if(is_a($login, 'Exception')) {
  552. logModuleCall(
  553. 'zimbrasingle',
  554. __FUNCTION__,
  555. $params,
  556. 'Error: cannot login to ' . $params['serverip'],
  557. $login->getMessage()
  558. );
  559. return $login->getMessage();
  560. }
  561. $apiAccountManager = new Zm_Account($api);
  562. $response = $apiAccountManager->setAccountCos($params['username'], $params['configoption1']);
  563. if(is_a($response, 'Exception')) {
  564. logModuleCall(
  565. 'zimbrasingle',
  566. __FUNCTION__,
  567. $params,
  568. 'Error: could not set class of service for '. $params['username'],
  569. $response->getMessage()
  570. );
  571. return 'Error: could not set class of service for '. $params['username'];
  572. }
  573. return 'success';
  574. }
  575. /**
  576. * Define Zimbra product configuration options.
  577. *
  578. * Gather classes of service and available mail domains from the Zinbra server.
  579. * Calls a function to create all necessary customfields for the order form using the selected values.
  580. *
  581. * @see https://developers.whmcs.com/provisioning-modules/config-options/
  582. *
  583. * @return array
  584. */
  585. function zimbraSingle_ConfigOptions($params)
  586. {
  587. $whmcs = App::self();
  588. $serverGroupID = $whmcs->get_req_var('servergroup');
  589. $serverIDObj = Capsule::table('tblservergroupsrel')
  590. ->select('serverid')
  591. ->where('groupid', '=', $serverGroupID)
  592. ->get();
  593. $serverIDArray = recursiveFindAll($serverIDObj,'serverid');
  594. $server = Capsule::table('tblservers')
  595. ->select('ipaddress', 'username', 'password')
  596. ->where('id', $serverIDArray)
  597. ->where('active', '=', 1)
  598. ->get();
  599. $accessData['zimbraServer'] = $server[0]->ipaddress;
  600. $accessData['adminUser'] = $server[0]->username;
  601. $adminPassCrypt = $server[0]->password;
  602. $adminPassDecrypt = localAPI('DecryptPassword', array('password2' => $adminPassCrypt));
  603. if ($adminPassDecrypt['result'] == 'success') {
  604. $accessData['adminPass'] = $adminPassDecrypt['password'];
  605. } else {
  606. logModuleCall(
  607. 'zimbrasingle',
  608. __FUNCTION__,
  609. $adminPassCrypt,
  610. 'Error: cloud not decrypt admin password' ,
  611. $adminPassDecrypt['message']
  612. );
  613. return false;
  614. }
  615. $api = new Zm_Auth($accessData['zimbraServer'], $accessData['adminUser'], $accessData['adminPass'], 'admin');
  616. $login = $api->login();
  617. if(is_a($login, 'Exception')) {
  618. logModuleCall(
  619. 'zimbrasingle',
  620. __FUNCTION__,
  621. $params,
  622. 'Error: cannot login to ' . $accessData['zimbraServer'],
  623. $login->getMessage()
  624. );
  625. return false;
  626. }
  627. $apiAccountManager = new Zm_Account($api);
  628. $cosIDs = $apiAccountManager->getAllCos();
  629. if(is_a($cosIDs, 'Exception')) {
  630. logModuleCall(
  631. 'zimbrasingle',
  632. __FUNCTION__,
  633. $params,
  634. 'Error: could not fetch classes of service',
  635. $cosIDs->getMessage()
  636. );
  637. return false;
  638. }
  639. $cosNames = recursiveFindAll($cosIDs, 'NAME');
  640. $configOptions = array();
  641. $configOptions['cos'] = array(
  642. 'FriendlyName' => 'Class of Service',
  643. 'Type' => 'dropdown',
  644. 'Options' => implode(',', $cosNames),
  645. 'Description' => 'Select COS',
  646. );
  647. return $configOptions;
  648. }