WEB_DOMAIN.class.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. <?php
  2. /**
  3. * DOMAIN
  4. *
  5. * @author vesta, http://vestacp.com/
  6. * @author Dmitry Malishev <dima.malishev@gmail.com>
  7. * @author Dmitry Naumov-Socolov <naumov.socolov@gmail.com>
  8. * @copyright vesta 2010-2011
  9. */
  10. class WEB_DOMAIN extends AjaxHandler
  11. {
  12. public function getListExecute(Request $request)
  13. {
  14. $user = $this->getLoggedUser();
  15. $reply = array();
  16. $result = Vesta::execute(Vesta::V_LIST_WEB_DOMAINS, array('USER' => $user['uid']), self::JSON);
  17. $stat = array();
  18. $result_stat = Vesta::execute(Vesta::V_LIST_WEB_DOMAINS_STATS, array('USER' => $user['uid']), self::JSON);
  19. foreach ($result_stat['data'] as $w_d => $w_d_details) {
  20. $stat[$w_d] = $w_d_details;
  21. }
  22. foreach($result['data'] as $web_domain => $record)
  23. {
  24. $web_details = array(
  25. 'IP' => $record['IP'],
  26. 'U_DISK' => (int)$record['U_DISK'],
  27. 'U_BANDWIDTH' => (int)$record['U_BANDWIDTH'],
  28. 'TPL' => $record['TPL'],
  29. 'ALIAS' => @str_replace(",", ", ", $record['ALIAS']),
  30. 'PHP' => $record['PHP'],
  31. 'CGI' => $record['CGI'],
  32. 'ELOG' => $record['ELOG'],
  33. 'STAT' => $record['STATS'],
  34. 'STATS_LOGIN' => $record['STATS_AUTH'],
  35. 'SSL' => $record['SSL'],
  36. 'SSL_HOME' => $record['SSL_HOME'],
  37. 'SSL_CERT' => $record['SSL_CERT'],
  38. 'SSL_KEY' => $record['SSL_KEY'],
  39. 'NGINX' => $record['NGINX'],
  40. 'NGINX_EXT' => $record['NGINX_EXT'],
  41. 'SUSPEND' => $record['SUSPEND'],
  42. 'DATE' => date(Config::get('ui_date_format', strtotime($record['DATE'])))
  43. );
  44. $web_details['STAT'] == '' ? $web_details['STAT'] = 'none' : true;
  45. $reply[$web_domain] = $web_details;
  46. }
  47. if (!$result['status']) {
  48. $this->errors[] = array($result['error_code'] => $result['error_message']);
  49. }
  50. return $this->reply($result['status'], $reply);
  51. }
  52. public function addExecute(Request $request)
  53. {
  54. $_s = $request->getParameter('spell');
  55. $user = $this->getLoggedUser();
  56. $params = array(
  57. 'USER' => $user['uid'],
  58. 'DOMAIN' => $_s['DOMAIN'],
  59. 'IP' => $_s['IP']
  60. );
  61. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN, $params);
  62. if (!$result['status']) {
  63. $this->errors[] = array($result['error_code'] => $result['error_message']);
  64. }
  65. if (!empty($_s['TPL'])) {
  66. $params = array(
  67. 'USER' => $user['uid'],
  68. 'DOMAIN' => $_s['DOMAIN'],
  69. 'TPL' => $_s['TPL']
  70. );
  71. $result = 0;
  72. $result = Vesta::execute(Vesta::V_CHANGE_WEB_DOMAIN_TPL, $params);
  73. if (!$result['status']) {
  74. $this->errors['CHANGE_TPL'] = array($result['error_code'] => $result['error_message']);
  75. }
  76. }
  77. if (!empty($_s['ALIAS'])) {
  78. $alias = str_replace("\n", "", $_s['ALIAS']);
  79. $alias = str_replace("\n", "", $alias);
  80. foreach ($alias_arr as $alias) {
  81. $params = array(
  82. 'USER' => $user['uid'],
  83. 'DOMAIN' => $_s['DOMAIN'],
  84. 'ALIAS' => trim($alias)
  85. );
  86. $result = 0;
  87. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_ALIAS, $params);
  88. if (!$result['status']) {
  89. $this->errors['ALIAS'] = array($result['error_code'] => $result['error_message']);
  90. }
  91. }
  92. }
  93. if (!empty($_s['STATS']) && @$_s['STATS'] != 'none') {
  94. $params = array(
  95. 'USER' => $user['uid'],
  96. 'DOMAIN' => $_s['DOMAIN'],
  97. 'STAT' => $_s['STAT']);
  98. $result = 0;
  99. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_STAT, $params);
  100. if (!$result['status']) {
  101. $this->errors['STATS'] = array($result['error_code'] => $result['error_message']);
  102. }
  103. }
  104. if (!empty($_s['STAT_AUTH']) && @Utils::getCheckboxBooleanValue($_s['STATS_AUTH'])) {
  105. $params = array(
  106. 'USER' => $user['uid'],
  107. 'DOMAIN' => $_s['DOMAIN'],
  108. 'STAT_USER' => $_s['STAT_USER'],
  109. 'STAT_PASSWORS' => $_s['STAT_PASSWORD']
  110. );
  111. $result = 0;
  112. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_STAT_AUTH, $params);
  113. if(!$result['status'])
  114. $this->errors['STAT_AUTH'] = array($result['error_code'] => $result['error_message']);
  115. }
  116. if (!empty($_new['CGI'])) {
  117. if (Utils::getCheckboxBooleanValue($_new['CGI'])) {
  118. $result = array();
  119. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_CGI, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  120. if (!$result['status']) {
  121. $this->status = FALSE;
  122. $this->errors['ADD_CGI'] = array($result['error_code'] => $result['error_message']);
  123. }
  124. }
  125. }
  126. if (!empty($_new['ELOG'])) {
  127. if (Utils::getCheckboxBooleanValue($_new['ELOG'])) {
  128. $result = array();
  129. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_ELOG, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  130. if (!$result['status']) {
  131. $this->status = FALSE;
  132. $this->errors['ADD_ELOG'] = array($result['error_code'] => $result['error_message']);
  133. }
  134. }
  135. }
  136. /* if ($_s['SSL']) {
  137. $params = array(
  138. 'USER' => $user['uid'],
  139. 'DOMAIN' => $_s['DOMAIN'],
  140. 'SSL_CERT' => $_s['SSL_CERT']
  141. );
  142. if ($_s['SSL_HOME']) {
  143. $params['SSL_HOME'] = $_s['SSL_HOME'];
  144. }
  145. $result = 0;
  146. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_SSL, $params);
  147. if (!$result['status']) {
  148. $this->errors['SSL'] = array($result['error_code'] => $result['error_message']);
  149. }
  150. }
  151. if ($_s['SSL_HOME']) {
  152. }*/
  153. /*if (!empty($_s['DNS'])) {
  154. $params = array(
  155. 'USER' => $user['uid'],
  156. 'DNS_DOMAIN' => $_s['DOMAIN'],
  157. 'IP' => $_s['IP']
  158. );
  159. require_once V_ROOT_DIR . 'api/DNS.class.php';
  160. $dns = new DNS();
  161. $result = 0;
  162. $result = $dns->addExecute($params);
  163. if (!$result['status']) {
  164. $this->errors['DNS_DOMAIN'] = array($result['error_code'] => $result['error_message']);
  165. }
  166. }*/
  167. /*if (!empty($_s['MAIL'])) {
  168. $params = array(
  169. 'USER' => $_user,
  170. 'MAIL_DOMAIN' => $_s['DOMAIN'],
  171. 'IP' => $_s['IP']
  172. );
  173. require_once V_ROOT_DIR . 'api/MAIL.class.php';
  174. $mail = new MAIL();
  175. $result = 0;
  176. $result = $mail->addExecute($params);
  177. if (!$result['status'])
  178. $this->errors['MAIL_DOMAIN'] = array($result['error_code'] => $result['error_message']);
  179. }*/
  180. if ($_s['SUSPEND'] == 'on') {
  181. if($result['status']){
  182. $result = array();
  183. $result = Vesta::execute(Vesta::V_SUSPEND_WEB_DOMAIN, array('USER' => $user['uid'], 'JOB' => $_s['DOMAIN']));
  184. if (!$result['status']) {
  185. $this->status = FALSE;
  186. $this->errors['SUSPEND'] = array($result['error_code'] => $result['error_message']);
  187. }
  188. }
  189. }
  190. return $this->reply($result['status'], $result['data']);
  191. }
  192. public function deleteExecute(Request $request)
  193. {
  194. $_s = $request->getParameter('spell');
  195. $user = $this->getLoggedUser();
  196. $params = array(
  197. 'USER' => $user['uid'],
  198. 'DOMAIN' => $_s['DOMAIN']
  199. );
  200. $result = Vesta::execute(Vesta::V_DEL_WEB_DOMAIN, $params);
  201. if (!$result['status']) {
  202. $this->errors[] = array($result['error_code'] => $result['error_message']);
  203. }
  204. $params = array(
  205. 'USER' => $_user,
  206. 'DNS_DOMAIN' => $_s['DOMAIN']
  207. );
  208. return $this->reply($result['status'], $result['data']);
  209. }
  210. public function changeExecute(Request $request)
  211. {
  212. $_s = $request->getParameter('spell');
  213. $_old = $request->getParameter('old');
  214. $_new = $request->getParameter('new');
  215. $_old['ELOG'] = $_old['ELOG'] == 'yes' ? 'on' : 'off';
  216. $_old['CGI'] = $_old['CGI'] == 'yes' ? 'on' : 'off';
  217. $_old['AUTH'] = $_old['AUTH'] == 'yes' ? 'on' : 'off';
  218. $_old['SSL'] = $_old['SSL'] == 'yes' ? 'on' : 'off';
  219. $user = $this->getLoggedUser();
  220. $_DOMAIN = $_new['DOMAIN'];
  221. if ($_old['SUSPEND'] != $_new['SUSPEND']) {
  222. if ($_new['SUSPEND'] == 'on') {
  223. $result = Vesta::execute(Vesta::V_SUSPEND_WEB_DOMAIN, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  224. if (!$result['status']) {
  225. $this->status = FALSE;
  226. $this->errors['SUSPEND'] = array($result['error_code'] => $result['error_message']);
  227. }
  228. // return $this->reply($result['status']);
  229. }
  230. else {
  231. $result = Vesta::execute(Vesta::V_UNSUSPEND_WEB_DOMAIN, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  232. if (!$result['status']) {
  233. $this->status = FALSE;
  234. $this->errors['UNSUSPEND'] = array($result['error_code'] => $result['error_message']);
  235. }
  236. }
  237. if ($_new['SUSPEND'] == 'on') {
  238. $result = Vesta::execute(Vesta::V_SUSPEND_WEB_DOMAIN, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  239. if (!$result['status']) {
  240. $this->status = FALSE;
  241. $this->errors['SUSPEND'] = array($result['error_code'] => $result['error_message']);
  242. }
  243. // return $this->reply($result['status']);
  244. }
  245. else {
  246. $result = Vesta::execute(Vesta::V_UNSUSPEND_WEB_DOMAIN, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  247. if (!$result['status']) {
  248. $this->status = FALSE;
  249. $this->errors['UNSUSPEND'] = array($result['error_code'] => $result['error_message']);
  250. }
  251. }
  252. }
  253. if ($_old['IP'] != $_new['IP']) {
  254. $result = array();
  255. $result = Vesta::execute(Vesta::V_CHANGE_WEB_DOMAIN_IP, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN, 'IP' => $_new['IP']));
  256. if (!$result['status']) {
  257. $this->status = FALSE;
  258. $this->errors['IP_ADDRESS'] = array($result['error_code'] => $result['error_message']);
  259. }
  260. }
  261. if ($_old['TPL'] != $_new['TPL']) {
  262. $result = array();
  263. $result = Vesta::execute(Vesta::V_CHANGE_WEB_DOMAIN_TPL, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN, 'TPL' => $_new['TPL']));
  264. if (!$result['status']) {
  265. $this->status = FALSE;
  266. $this->errors['TPL'] = array($result['error_code'] => $result['error_message']);
  267. }
  268. }
  269. if ($_old['ALIAS'] != $_new['ALIAS']) {
  270. $result = array();
  271. $old_arr_raw = preg_split('/[,\s]/', $_old['ALIAS']);
  272. $new_arr_raw = preg_split('/[,\s]/', $_new['ALIAS']);
  273. $old_arr = array();
  274. $new_arr = array();
  275. foreach ($old_arr_raw as $alias) {
  276. if ('' != trim($alias)) {
  277. $old_arr[] = $alias;
  278. }
  279. }
  280. foreach ($new_arr_raw as $alias) {
  281. if ('' != trim($alias)) {
  282. $new_arr[] = $alias;
  283. }
  284. }
  285. $added = array_diff($new_arr, $old_arr);
  286. $deleted = array_diff($old_arr, $new_arr);
  287. foreach ($deleted as $alias) {
  288. $result = Vesta::execute(Vesta::V_DEL_WEB_DOMAIN_ALIAS, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN, 'ALIAS' => $alias));
  289. if (!$result['status']) {
  290. $this->status = FALSE;
  291. $this->errors['DEL_ALIAS'] = array($result['error_code'] => $result['error_message']);
  292. }
  293. }
  294. foreach ($added as $alias) {
  295. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_ALIAS, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN, 'ALIAS' => $alias));
  296. if (!$result['status']) {
  297. $this->status = FALSE;
  298. $this->errors['ADD_ALIAS'] = array($result['error_code'] => $result['error_message']);
  299. }
  300. }
  301. }
  302. if (($_old['STAT_AUTH'] != $_new['STAT_AUTH']) && !empty($_s['STAT_AUTH']) && @Utils::getCheckboxBooleanValue($_s['STATS_AUTH'])) {
  303. $params = array(
  304. 'USER' => $user['uid'],
  305. 'DOMAIN' => $_DOMAIN,
  306. 'STAT_USER' => $_new['STAT_USER'],
  307. 'STAT_PASSWORS' => $_new['STAT_PASSWORD']
  308. );
  309. $result = 0;
  310. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_STAT_AUTH, $params);
  311. if(!$result['status']) {
  312. $this->errors['STAT_AUTH'] = array($result['error_code'] => $result['error_message']);
  313. }
  314. }
  315. if (($_old['STAT'] != $_new['STAT'])) {
  316. if ($_new['STAT'] != 'none') {
  317. $result = array();
  318. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_STAT, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN, 'STAT' => $_new['STAT']));
  319. if (!$result['status']) {
  320. $this->status = FALSE;
  321. $this->errors['ADD_STAT'] = array($result['error_code'] => $result['error_message']);
  322. }
  323. }
  324. else {
  325. $result = array();
  326. $result = Vesta::execute(Vesta::V_DEL_WEB_DOMAIN_STAT, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  327. if (!$result['status']) {
  328. $this->status = FALSE;
  329. $this->errors['DEL_STAT'] = array($result['error_code'] => $result['error_message']);
  330. }
  331. $result = array();
  332. $result = Vesta::execute(Vesta::V_DEL_WEB_DOMAIN_STAT_AUTH, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN, 'STAT_USER' => $_new['STAT_USER']));
  333. if (!$result['status']) {
  334. $this->status = FALSE;
  335. $this->errors['DEL_STAT_AUTH'] = array($result['error_code'] => $result['error_message']);
  336. }
  337. }
  338. }
  339. if (($_old['CGI'] != $_new['CGI'])) {
  340. if (Utils::getCheckboxBooleanValue($_new['CGI'])) {
  341. $result = array();
  342. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_CGI, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  343. if (!$result['status']) {
  344. $this->status = FALSE;
  345. $this->errors['ADD_CGI'] = array($result['error_code'] => $result['error_message']);
  346. }
  347. }
  348. else {
  349. $result = array();
  350. $result = Vesta::execute(Vesta::V_DEL_WEB_DOMAIN_CGI, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  351. if (!$result['status']) {
  352. $this->status = FALSE;
  353. $this->errors['DEL_CGI'] = array($result['error_code'] => $result['error_message']);
  354. }
  355. }
  356. }
  357. if (($_old['ELOG'] != $_new['ELOG'])) {
  358. if (Utils::getCheckboxBooleanValue($_new['ELOG'])) {
  359. $result = array();
  360. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_ELOG, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  361. if (!$result['status']) {
  362. $this->status = FALSE;
  363. $this->errors['ADD_ELOG'] = array($result['error_code'] => $result['error_message']);
  364. }
  365. }
  366. else {
  367. $result = array();
  368. $result = Vesta::execute(Vesta::V_DEL_WEB_DOMAIN_ELOG, array('USER' => $user['uid'], 'DOMAIN' => $_DOMAIN));
  369. if (!$result['status']) {
  370. $this->status = FALSE;
  371. $this->errors['DEL_ELOG'] = array($result['error_code'] => $result['error_message']);
  372. }
  373. }
  374. }
  375. /*if ($_new['SSL']) {
  376. $params = array(
  377. 'USER' => $user['uid'],
  378. 'DOMAIN' => $_new['DOMAIN'],
  379. 'SSL_CERT' => $_new['SSL_CERT']
  380. );
  381. if ($_new['SSL_HOME']) {
  382. $params['SSL_HOME'] = $_new['SSL_HOME'];
  383. }
  384. $result = 0;
  385. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_SSL, $params);
  386. if (!$result['status']) {
  387. $this->errors['SSL'] = array($result['error_code'] => $result['error_message']);
  388. }
  389. }*/
  390. if (!empty($_s['SSL_KEY'])) {
  391. $ssl_file = tempnam(sys_get_temp_dir(), 'ssl');
  392. file_put_contents($ssl_file, $_s['SSL_KEY']);
  393. $params = array(
  394. 'USER' => $user['uid'],
  395. 'DOMAIN' => $_s['DOMAIN'],
  396. 'SSL_KEY' => $ssl_file
  397. );
  398. if (!empty($_s['SSL_HOME'])) {
  399. $params['SSL_HOME'] = $_s['SSL_HOME'];
  400. }
  401. $result = 0;
  402. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_SSL, $params);
  403. if (!$result['status']) {
  404. $this->errors['SSL'] = array($result['error_code'] => $result['error_message']);
  405. }
  406. }
  407. if (!empty($_s['SSL_CERT'])) {
  408. $sslcert_file = tempnam(sys_get_temp_dir(), 'ssl');
  409. file_put_contents($sslcert_file, $_s['SSL_CERT']);
  410. $params = array(
  411. 'USER' => $user['uid'],
  412. 'DOMAIN' => $_s['DOMAIN'],
  413. 'SSL_CERT' => $sslcert_file
  414. );
  415. $result = 0;
  416. $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_SSLCERT, $params);
  417. if (!$result['status']) {
  418. $this->errors['SSL_CERT'] = array($result['error_code'] => $result['error_message']);
  419. }
  420. }
  421. return $this->reply($result['status'], $result['data']);
  422. }
  423. public function suspendExecute(Request $request)
  424. {
  425. $_s = $request->getParameter('spell');
  426. $user = $this->getLoggedUser();
  427. $params = array(
  428. 'USER' => $user['uid'],
  429. 'DOMAIN' => $_s['DOMAIN']
  430. );
  431. $result = Vesta::execute(Vesta::V_SUSPEND_WEB_DOMAIN, $params);
  432. if (!$result['status']) {
  433. $this->errors[] = array($result['error_code'] => $result['error_message']);
  434. }
  435. return $this->reply($result['status'], $result['data']);
  436. }
  437. public function unsuspendExecute(Request $request)
  438. {
  439. $_s = $request->getParameter('spell');
  440. $user = $this->getLoggedUser();
  441. $params = array(
  442. 'USER' => $user['uid'],
  443. 'DOMAIN' => $_s['DOMAIN']
  444. );
  445. $result = Vesta::execute(Vesta::V_UNSUSPEND_WEB_DOMAIN, $params);
  446. if (!$result['status']) {
  447. $this->errors[] = array($result['error_code'] => $result['error_message']);
  448. }
  449. return $this->reply($result['status'], $result['data']);
  450. }
  451. public function massiveSuspendExecute(Request $request)
  452. {
  453. $user = $this->getLoggedUser();
  454. $_entities = $request->getParameter('entities');
  455. foreach($_entities as $entity){
  456. $result = Vesta::execute(Vesta::V_SUSPEND_WEB_DOMAIN, array('USER' => $user, $entity['DOMAIN']));
  457. }
  458. return $this->reply($result['status'], $result['data']);
  459. }
  460. public function massiveUnsuspendExecute(Request $request)
  461. {
  462. $user = $this->getLoggedUser();
  463. $_entities = $request->getParameter('entities');
  464. foreach($_entities as $entity){
  465. $result = Vesta::execute(Vesta::V_UNUSPEND_WEB_DOMAIN, array('USER' => $user, $entity['DOMAIN']));
  466. }
  467. return $this->reply($result['status'], $result['data']);
  468. }
  469. public function massiveDeleteExecute(Request $request)
  470. {
  471. $user = $this->getLoggedUser();
  472. $_entities = $request->getParameter('entities');
  473. foreach($_entities as $entity){
  474. $result = Vesta::execute(Vesta::V_DEL_WEB_DOMAIN, array('USER' => $user, $entity['DOMAIN']));
  475. }
  476. return $this->reply($result['status'], $result['data']);
  477. }
  478. }