function fn_rus_unisender_update_profile($action, $user_data, $current_user_data) { if ($action == 'add') { if (fn_allowed_for('MULTIVENDOR') || fn_allowed_for('ULTIMATE') && Registry::get('runtime.company_id')) { $arr_id = array($user_data['user_id']); fn_add_users_to_unisender($arr_id, false); } } }
* * * This is commercial software, only users who have purchased a valid * * license and accept to the terms of the License Agreement can install * * and use this program. * * * **************************************************************************** * PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE * * "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. * ****************************************************************************/ use Tygh\Registry; if (!defined('BOOTSTRAP')) { die('Access denied'); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($mode == 'add_selected') { fn_add_users_to_unisender($_REQUEST['user_ids']); } elseif ($mode == 'update') { fn_unisender_update_fields($_REQUEST['unisender_data']['fields']); return array(CONTROLLER_STATUS_OK, 'unisender.manage'); } if ($mode == 'send_sms') { if (isset($_REQUEST['sms_data']) && !empty($_REQUEST['sms_data'])) { $params = $_REQUEST['sms_data']; fn_rus_unisender_send_sms($params['text'], $params['phone']); //user_sms } if (defined('AJAX_REQUEST')) { exit; } elseif (!empty($_REQUEST['return_url'])) { return array(CONTROLLER_STATUS_OK, $_REQUEST['return_url']); } else {