<?php

/**
 * [BEGIN_COT_EXT]
 * Hooks=users.profile.tags
 * [END_COT_EXT]
 */

defined('COT_CODE') or die('Wrong URL.');

$t->assign(array(
	'USERS_PROFILE_PAYMENT_QIWI' => $urr['user_payment_qiwi'],
	'USERS_PROFILE_PAYMENT_YANDEX' => $urr['user_payment_yandex'],
  'USERS_PROFILE_PAYMENT_WM' => $urr['user_payment_wm'],
  'USERS_PROFILE_PAYMENT_CARD_FN' => $urr['user_payment_card_fn'],
  'USERS_PROFILE_PAYMENT_CARD_LN' => $urr['user_payment_card_ln'],
  'USERS_PROFILE_PAYMENT_CARD_NUM' => $urr['user_payment_card_num'],
  'USERS_PROFILE_PAYMENT_CARD_NUM_SECRED' => (!empty($urr['user_payment_card_num']) ? preg_replace('/([0-9]{4})([0-9]+)([0-9]{4})/ism', "$1 **** **** $3", $urr['user_payment_card_num']) : ''),
));

?>