commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / CRM / Utils / System / Drupal.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.6 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2015 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
26 */
27
28 /**
29 *
30 * @package CRM
31 * @copyright CiviCRM LLC (c) 2004-2015
32 * $Id$
33 *
34 */
35
36 /**
37 * Drupal specific stuff goes here
38 */
39 class CRM_Utils_System_Drupal extends CRM_Utils_System_DrupalBase {
40
41 /**
42 * @inheritDoc
43 */
44 public function createUser(&$params, $mail) {
45 $form_state = form_state_defaults();
46
47 $form_state['input'] = array(
48 'name' => $params['cms_name'],
49 'mail' => $params[$mail],
50 'op' => 'Create new account',
51 );
52
53 $admin = user_access('administer users');
54 if (!variable_get('user_email_verification', TRUE) || $admin) {
55 $form_state['input']['pass'] = array('pass1' => $params['cms_pass'], 'pass2' => $params['cms_pass']);
56 }
57
58 if (!empty($params['notify'])) {
59 $form_state['input']['notify'] = $params['notify'];
60 }
61
62 $form_state['rebuild'] = FALSE;
63 $form_state['programmed'] = TRUE;
64 $form_state['complete form'] = FALSE;
65 $form_state['method'] = 'post';
66 $form_state['build_info']['args'] = array();
67 /*
68 * if we want to submit this form more than once in a process (e.g. create more than one user)
69 * we must force it to validate each time for this form. Otherwise it will not validate
70 * subsequent submissions and the manner in which the password is passed in will be invalid
71 */
72 $form_state['must_validate'] = TRUE;
73 $config = CRM_Core_Config::singleton();
74
75 // we also need to redirect b
76 $config->inCiviCRM = TRUE;
77
78 $form = drupal_retrieve_form('user_register_form', $form_state);
79 $form_state['process_input'] = 1;
80 $form_state['submitted'] = 1;
81 $form['#array_parents'] = array();
82 $form['#tree'] = FALSE;
83 drupal_process_form('user_register_form', $form, $form_state);
84
85 $config->inCiviCRM = FALSE;
86
87 if (form_get_errors()) {
88 return FALSE;
89 }
90 return $form_state['user']->uid;
91 }
92
93 /**
94 * @inheritDoc
95 */
96 public function updateCMSName($ufID, $ufName) {
97 // CRM-5555
98 if (function_exists('user_load')) {
99 $user = user_load($ufID);
100 if ($user->mail != $ufName) {
101 user_save($user, array('mail' => $ufName));
102 $user = user_load($ufID);
103 }
104 }
105 }
106
107 /**
108 * Check if username and email exists in the drupal db.
109 *
110 * @param array $params
111 * Array of name and mail values.
112 * @param array $errors
113 * Array of errors.
114 * @param string $emailName
115 * Field label for the 'email'.
116 *
117 * @return void
118 */
119 public static function checkUserNameEmailExists(&$params, &$errors, $emailName = 'email') {
120 $config = CRM_Core_Config::singleton();
121
122 $dao = new CRM_Core_DAO();
123 $name = $dao->escape(CRM_Utils_Array::value('name', $params));
124 $email = $dao->escape(CRM_Utils_Array::value('mail', $params));
125 $errors = form_get_errors();
126 if ($errors) {
127 // unset drupal messages to avoid twice display of errors
128 unset($_SESSION['messages']);
129 }
130
131 if (!empty($params['name'])) {
132 if ($nameError = user_validate_name($params['name'])) {
133 $errors['cms_name'] = $nameError;
134 }
135 else {
136 $uid = db_query(
137 "SELECT uid FROM {users} WHERE name = :name",
138 array(':name' => $params['name'])
139 )->fetchField();
140 if ((bool) $uid) {
141 $errors['cms_name'] = ts('The username %1 is already taken. Please select another username.', array(1 => $params['name']));
142 }
143 }
144 }
145
146 if (!empty($params['mail'])) {
147 if ($emailError = user_validate_mail($params['mail'])) {
148 $errors[$emailName] = $emailError;
149 }
150 else {
151 $uid = db_query(
152 "SELECT uid FROM {users} WHERE mail = :mail",
153 array(':mail' => $params['mail'])
154 )->fetchField();
155 if ((bool) $uid) {
156 $resetUrl = $config->userFrameworkBaseURL . 'user/password';
157 $errors[$emailName] = ts('The email address %1 is already registered. <a href="%2">Have you forgotten your password?</a>',
158 array(1 => $params['mail'], 2 => $resetUrl)
159 );
160 }
161 }
162 }
163 }
164
165 /**
166 * @inheritDoc
167 */
168 public function getLoginURL($destination = '') {
169 $query = $destination ? array('destination' => $destination) : array();
170 return url('user', array('query' => $query), TRUE);
171 }
172
173 /**
174 * @inheritDoc
175 */
176 public function setTitle($title, $pageTitle = NULL) {
177 if (arg(0) == 'civicrm') {
178 if (!$pageTitle) {
179 $pageTitle = $title;
180 }
181
182 drupal_set_title($pageTitle, PASS_THROUGH);
183 }
184 }
185
186 /**
187 * @inheritDoc
188 */
189 public function appendBreadCrumb($breadCrumbs) {
190 $breadCrumb = drupal_get_breadcrumb();
191
192 if (is_array($breadCrumbs)) {
193 foreach ($breadCrumbs as $crumbs) {
194 if (stripos($crumbs['url'], 'id%%')) {
195 $args = array('cid', 'mid');
196 foreach ($args as $a) {
197 $val = CRM_Utils_Request::retrieve($a, 'Positive', CRM_Core_DAO::$_nullObject,
198 FALSE, NULL, $_GET
199 );
200 if ($val) {
201 $crumbs['url'] = str_ireplace("%%{$a}%%", $val, $crumbs['url']);
202 }
203 }
204 }
205 $breadCrumb[] = "<a href=\"{$crumbs['url']}\">{$crumbs['title']}</a>";
206 }
207 }
208 drupal_set_breadcrumb($breadCrumb);
209 }
210
211 /**
212 * @inheritDoc
213 */
214 public function resetBreadCrumb() {
215 $bc = array();
216 drupal_set_breadcrumb($bc);
217 }
218
219 /**
220 * @inheritDoc
221 */
222 public function addHTMLHead($header) {
223 static $count = 0;
224 if (!empty($header)) {
225 $key = 'civi_' . ++$count;
226 $data = array(
227 '#type' => 'markup',
228 '#markup' => $header,
229 );
230 drupal_add_html_head($data, $key);
231 }
232 }
233
234 /**
235 * @inheritDoc
236 */
237 public function addScriptUrl($url, $region) {
238 $params = array('group' => JS_LIBRARY, 'weight' => 10);
239 switch ($region) {
240 case 'html-header':
241 case 'page-footer':
242 $params['scope'] = substr($region, 5);
243 break;
244
245 default:
246 return FALSE;
247 }
248 // If the path is within the drupal directory we can use the more efficient 'file' setting
249 $params['type'] = $this->formatResourceUrl($url) ? 'file' : 'external';
250 drupal_add_js($url, $params);
251 return TRUE;
252 }
253
254 /**
255 * @inheritDoc
256 */
257 public function addScript($code, $region) {
258 $params = array('type' => 'inline', 'group' => JS_LIBRARY, 'weight' => 10);
259 switch ($region) {
260 case 'html-header':
261 case 'page-footer':
262 $params['scope'] = substr($region, 5);
263 break;
264
265 default:
266 return FALSE;
267 }
268 drupal_add_js($code, $params);
269 return TRUE;
270 }
271
272 /**
273 * @inheritDoc
274 */
275 public function addStyleUrl($url, $region) {
276 if ($region != 'html-header') {
277 return FALSE;
278 }
279 $params = array();
280 // If the path is within the drupal directory we can use the more efficient 'file' setting
281 $params['type'] = $this->formatResourceUrl($url) ? 'file' : 'external';
282 drupal_add_css($url, $params);
283 return TRUE;
284 }
285
286 /**
287 * @inheritDoc
288 */
289 public function addStyle($code, $region) {
290 if ($region != 'html-header') {
291 return FALSE;
292 }
293 $params = array('type' => 'inline');
294 drupal_add_css($code, $params);
295 return TRUE;
296 }
297
298 /**
299 * @inheritDoc
300 */
301 public function mapConfigToSSL() {
302 global $base_url;
303 $base_url = str_replace('http://', 'https://', $base_url);
304 }
305
306 /**
307 * @inheritDoc
308 */
309 public function authenticate($name, $password, $loadCMSBootstrap = FALSE, $realPath = NULL) {
310 require_once 'DB.php';
311
312 $config = CRM_Core_Config::singleton();
313
314 $dbDrupal = DB::connect($config->userFrameworkDSN);
315 if (DB::isError($dbDrupal)) {
316 CRM_Core_Error::fatal("Cannot connect to drupal db via $config->userFrameworkDSN, " . $dbDrupal->getMessage());
317 }
318
319 $account = $userUid = $userMail = NULL;
320 if ($loadCMSBootstrap) {
321 $bootStrapParams = array();
322 if ($name && $password) {
323 $bootStrapParams = array(
324 'name' => $name,
325 'pass' => $password,
326 );
327 }
328 CRM_Utils_System::loadBootStrap($bootStrapParams, TRUE, TRUE, $realPath);
329
330 global $user;
331 if ($user) {
332 $userUid = $user->uid;
333 $userMail = $user->mail;
334 }
335 }
336 else {
337 // CRM-8638
338 // SOAP cannot load drupal bootstrap and hence we do it the old way
339 // Contact CiviSMTP folks if we run into issues with this :)
340 $cmsPath = $config->userSystem->cmsRootPath($realPath);
341
342 require_once "$cmsPath/includes/bootstrap.inc";
343 require_once "$cmsPath/includes/password.inc";
344
345 $strtolower = function_exists('mb_strtolower') ? 'mb_strtolower' : 'strtolower';
346 $name = $dbDrupal->escapeSimple($strtolower($name));
347 $sql = "
348 SELECT u.*
349 FROM {$config->userFrameworkUsersTableName} u
350 WHERE LOWER(u.name) = '$name'
351 AND u.status = 1
352 ";
353
354 $query = $dbDrupal->query($sql);
355 $row = $query->fetchRow(DB_FETCHMODE_ASSOC);
356
357 if ($row) {
358 $fakeDrupalAccount = drupal_anonymous_user();
359 $fakeDrupalAccount->name = $name;
360 $fakeDrupalAccount->pass = $row['pass'];
361 $passwordCheck = user_check_password($password, $fakeDrupalAccount);
362 if ($passwordCheck) {
363 $userUid = $row['uid'];
364 $userMail = $row['mail'];
365 }
366 }
367 }
368
369 if ($userUid && $userMail) {
370 CRM_Core_BAO_UFMatch::synchronizeUFMatch($account, $userUid, $userMail, 'Drupal');
371 $contactID = CRM_Core_BAO_UFMatch::getContactId($userUid);
372 if (!$contactID) {
373 return FALSE;
374 }
375 return array($contactID, $userUid, mt_rand());
376 }
377 return FALSE;
378 }
379
380 /**
381 * @inheritDoc
382 */
383 public function loadUser($username) {
384 global $user;
385
386 $user = user_load_by_name($username);
387
388 if (empty($user->uid)) {
389 return FALSE;
390 }
391
392 $uid = $user->uid;
393 $contact_id = CRM_Core_BAO_UFMatch::getContactId($uid);
394
395 // lets store contact id and user id in session
396 $session = CRM_Core_Session::singleton();
397 $session->set('ufID', $uid);
398 $session->set('userID', $contact_id);
399 return TRUE;
400 }
401
402 /**
403 * Perform any post login activities required by the UF -
404 * e.g. for drupal: records a watchdog message about the new session, saves the login timestamp,
405 * calls hook_user op 'login' and generates a new session.
406 *
407 * @param array $params
408 *
409 * FIXME: Document values accepted/required by $params
410 */
411 public function userLoginFinalize($params = array()) {
412 user_login_finalize($params);
413 }
414
415 /**
416 * Determine the native ID of the CMS user.
417 *
418 * @param string $username
419 * @return int|NULL
420 */
421 public function getUfId($username) {
422 $user = user_load_by_name($username);
423 if (empty($user->uid)) {
424 return NULL;
425 }
426 return $user->uid;
427 }
428
429 /**
430 * @inheritDoc
431 */
432 public function logout() {
433 module_load_include('inc', 'user', 'user.pages');
434 return user_logout();
435 }
436
437 /**
438 * Get the default location for CiviCRM blocks.
439 *
440 * @return string
441 */
442 public function getDefaultBlockLocation() {
443 return 'sidebar_first';
444 }
445
446 /**
447 * Load drupal bootstrap.
448 *
449 * @param array $params
450 * Either uid, or name & pass.
451 * @param bool $loadUser
452 * Boolean Require CMS user load.
453 * @param bool $throwError
454 * If true, print error on failure and exit.
455 * @param bool|string $realPath path to script
456 *
457 * @return bool
458 */
459 public function loadBootStrap($params = array(), $loadUser = TRUE, $throwError = TRUE, $realPath = NULL) {
460 //take the cms root path.
461 $cmsPath = $this->cmsRootPath($realPath);
462
463 if (!file_exists("$cmsPath/includes/bootstrap.inc")) {
464 if ($throwError) {
465 echo '<br />Sorry, could not locate bootstrap.inc\n';
466 exit();
467 }
468 return FALSE;
469 }
470 // load drupal bootstrap
471 chdir($cmsPath);
472 define('DRUPAL_ROOT', $cmsPath);
473
474 // For drupal multi-site CRM-11313
475 if ($realPath && strpos($realPath, 'sites/all/modules/') === FALSE) {
476 preg_match('@sites/([^/]*)/modules@s', $realPath, $matches);
477 if (!empty($matches[1])) {
478 $_SERVER['HTTP_HOST'] = $matches[1];
479 }
480 }
481 require_once 'includes/bootstrap.inc';
482 // @ to suppress notices eg 'DRUPALFOO already defined'.
483 @drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
484
485 // explicitly setting error reporting, since we cannot handle drupal related notices
486 error_reporting(1);
487 if (!function_exists('module_exists') || !module_exists('civicrm')) {
488 if ($throwError) {
489 echo '<br />Sorry, could not load drupal bootstrap.';
490 exit();
491 }
492 return FALSE;
493 }
494
495 // seems like we've bootstrapped drupal
496 $config = CRM_Core_Config::singleton();
497
498 // lets also fix the clean url setting
499 // CRM-6948
500 $config->cleanURL = (int) variable_get('clean_url', '0');
501
502 // we need to call the config hook again, since we now know
503 // all the modules that are listening on it, does not apply
504 // to J! and WP as yet
505 // CRM-8655
506 CRM_Utils_Hook::config($config);
507
508 if (!$loadUser) {
509 return TRUE;
510 }
511
512 $uid = CRM_Utils_Array::value('uid', $params);
513 if (!$uid) {
514 //load user, we need to check drupal permissions.
515 $name = CRM_Utils_Array::value('name', $params, FALSE) ? $params['name'] : trim(CRM_Utils_Array::value('name', $_REQUEST));
516 $pass = CRM_Utils_Array::value('pass', $params, FALSE) ? $params['pass'] : trim(CRM_Utils_Array::value('pass', $_REQUEST));
517
518 if ($name) {
519 $uid = user_authenticate($name, $pass);
520 if (!$uid) {
521 if ($throwError) {
522 echo '<br />Sorry, unrecognized username or password.';
523 exit();
524 }
525 return FALSE;
526 }
527 }
528 }
529
530 if ($uid) {
531 $account = user_load($uid);
532 if ($account && $account->uid) {
533 global $user;
534 $user = $account;
535 return TRUE;
536 }
537 }
538
539 if ($throwError) {
540 echo '<br />Sorry, can not load CMS user account.';
541 exit();
542 }
543
544 // CRM-6948: When using loadBootStrap, it's implicit that CiviCRM has already loaded its settings
545 // which means that define(CIVICRM_CLEANURL) was correctly set.
546 // So we correct it
547 $config = CRM_Core_Config::singleton();
548 $config->cleanURL = (int) variable_get('clean_url', '0');
549
550 // CRM-8655: Drupal wasn't available during bootstrap, so hook_civicrm_config never executes
551 CRM_Utils_Hook::config($config);
552
553 return FALSE;
554 }
555
556 /**
557 */
558 public function cmsRootPath($scriptFilename = NULL) {
559 $cmsRoot = $valid = NULL;
560
561 if (!is_null($scriptFilename)) {
562 $path = $scriptFilename;
563 }
564 else {
565 $path = $_SERVER['SCRIPT_FILENAME'];
566 }
567
568 if (function_exists('drush_get_context')) {
569 // drush anyway takes care of multisite install etc
570 return drush_get_context('DRUSH_DRUPAL_ROOT');
571 }
572 // CRM-7582
573 $pathVars = explode('/',
574 str_replace('//', '/',
575 str_replace('\\', '/', $path)
576 )
577 );
578
579 //lets store first var,
580 //need to get back for windows.
581 $firstVar = array_shift($pathVars);
582
583 //lets remove sript name to reduce one iteration.
584 array_pop($pathVars);
585
586 // CRM-7429 -- do check for uppermost 'includes' dir, which would
587 // work for multisite installation.
588 do {
589 $cmsRoot = $firstVar . '/' . implode('/', $pathVars);
590 $cmsIncludePath = "$cmsRoot/includes";
591 // Stop if we find bootstrap.
592 if (file_exists("$cmsIncludePath/bootstrap.inc")) {
593 $valid = TRUE;
594 break;
595 }
596 //remove one directory level.
597 array_pop($pathVars);
598 } while (count($pathVars));
599
600 return ($valid) ? $cmsRoot : NULL;
601 }
602
603 /**
604 * @inheritDoc
605 */
606 public function isUserLoggedIn() {
607 $isloggedIn = FALSE;
608 if (function_exists('user_is_logged_in')) {
609 $isloggedIn = user_is_logged_in();
610 }
611
612 return $isloggedIn;
613 }
614
615 /**
616 * @inheritDoc
617 */
618 public function getLoggedInUfID() {
619 $ufID = NULL;
620 if (function_exists('user_is_logged_in') &&
621 user_is_logged_in() &&
622 function_exists('user_uid_optional_to_arg')
623 ) {
624 $ufID = user_uid_optional_to_arg(array());
625 }
626
627 return $ufID;
628 }
629
630 /**
631 * @inheritDoc
632 */
633 public function languageNegotiationURL($url, $addLanguagePart = TRUE, $removeLanguagePart = FALSE) {
634 if (empty($url)) {
635 return $url;
636 }
637
638 //CRM-7803 -from d7 onward.
639 $config = CRM_Core_Config::singleton();
640 if (function_exists('variable_get') &&
641 module_exists('locale') &&
642 function_exists('language_negotiation_get')
643 ) {
644 global $language;
645
646 //does user configuration allow language
647 //support from the URL (Path prefix or domain)
648 if (language_negotiation_get('language') == 'locale-url') {
649 $urlType = variable_get('locale_language_negotiation_url_part');
650
651 //url prefix
652 if ($urlType == LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX) {
653 if (isset($language->prefix) && $language->prefix) {
654 if ($addLanguagePart) {
655 $url .= $language->prefix . '/';
656 }
657 if ($removeLanguagePart) {
658 $url = str_replace("/{$language->prefix}/", '/', $url);
659 }
660 }
661 }
662 //domain
663 if ($urlType == LOCALE_LANGUAGE_NEGOTIATION_URL_DOMAIN) {
664 if (isset($language->domain) && $language->domain) {
665 if ($addLanguagePart) {
666 $cleanedUrl = preg_replace('#^https?://#', '', $language->domain);
667 // drupal function base_path() adds a "/" to the beginning and end of the returned path
668 if (substr($cleanedUrl, -1) == '/') {
669 $cleanedUrl = substr($cleanedUrl, 0, -1);
670 }
671 $url = (CRM_Utils_System::isSSL() ? 'https' : 'http') . '://' . $cleanedUrl . base_path();
672 }
673 if ($removeLanguagePart && defined('CIVICRM_UF_BASEURL')) {
674 $url = str_replace('\\', '/', $url);
675 $parseUrl = parse_url($url);
676
677 //kinda hackish but not sure how to do it right
678 //hope http_build_url() will help at some point.
679 if (is_array($parseUrl) && !empty($parseUrl)) {
680 $urlParts = explode('/', $url);
681 $hostKey = array_search($parseUrl['host'], $urlParts);
682 $ufUrlParts = parse_url(CIVICRM_UF_BASEURL);
683 $urlParts[$hostKey] = $ufUrlParts['host'];
684 $url = implode('/', $urlParts);
685 }
686 }
687 }
688 }
689 }
690 }
691
692 return $url;
693 }
694
695 /**
696 * Find any users/roles/security-principals with the given permission
697 * and replace it with one or more permissions.
698 *
699 * @param string $oldPerm
700 * @param array $newPerms
701 * Array, strings.
702 *
703 * @return void
704 */
705 public function replacePermission($oldPerm, $newPerms) {
706 $roles = user_roles(FALSE, $oldPerm);
707 if (!empty($roles)) {
708 foreach (array_keys($roles) as $rid) {
709 user_role_revoke_permissions($rid, array($oldPerm));
710 user_role_grant_permissions($rid, $newPerms);
711 }
712 }
713 }
714
715 /**
716 * Wrapper for og_membership creation.
717 *
718 * @param int $ogID
719 * Organic Group ID.
720 * @param int $drupalID
721 * Drupal User ID.
722 */
723 public function og_membership_create($ogID, $drupalID) {
724 if (function_exists('og_entity_query_alter')) {
725 // sort-of-randomly chose a function that only exists in the // 7.x-2.x branch
726 //
727 // @TODO Find more solid way to check - try system_get_info('module', 'og').
728 //
729 // Also, since we don't know how to get the entity type of the // group, we'll assume it's 'node'
730 og_group('node', $ogID, array('entity' => user_load($drupalID)));
731 }
732 else {
733 // Works for the OG 7.x-1.x branch
734 og_group($ogID, array('entity' => user_load($drupalID)));
735 }
736 }
737
738 /**
739 * Wrapper for og_membership deletion.
740 *
741 * @param int $ogID
742 * Organic Group ID.
743 * @param int $drupalID
744 * Drupal User ID.
745 */
746 public function og_membership_delete($ogID, $drupalID) {
747 if (function_exists('og_entity_query_alter')) {
748 // sort-of-randomly chose a function that only exists in the 7.x-2.x branch
749 // TODO: Find a more solid way to make this test
750 // Also, since we don't know how to get the entity type of the group, we'll assume it's 'node'
751 og_ungroup('node', $ogID, 'user', user_load($drupalID));
752 }
753 else {
754 // Works for the OG 7.x-1.x branch
755 og_ungroup($ogID, 'user', user_load($drupalID));
756 }
757 }
758
759 /**
760 * @inheritDoc
761 */
762 public function getTimeZoneString() {
763 global $user;
764 // Note that 0 is a valid timezone (GMT) so we use strlen not empty to check.
765 if (variable_get('configurable_timezones', 1) && $user->uid && isset($user->timezone) && strlen($user->timezone)) {
766 $timezone = $user->timezone;
767 }
768 else {
769 $timezone = variable_get('date_default_timezone', NULL);
770 }
771 if (!$timezone) {
772 $timezone = parent::getTimeZoneString();
773 }
774 return $timezone;
775 }
776
777 }