function MasssendingSave($id, $txt) { $response = new xajaxResponse(); if (hasPermissions('masssending')) { require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/masssending.php'; masssending::UpdateText($id, $txt); $mass = masssending::Get($id); $response->assign('mass_txt_' . $id, 'innerHTML', reformat($mass[0]['msgtext'], 30, 0, 0, 1)); } return $response; }