case 'flash': # New formatted text screen require_once 'AastraIPPhoneFormattedTextScreen.class.php'; $object = new AastraIPPhoneFormattedTextScreen(); $object->setDestroyOnExit(); $size = Aastra_size_display_line(); if (strlen($flash_text) > $size) { $temp = wordwrap($flash_text, $size, "\n", True); $lines = explode("\n", $temp); } else { $lines[0] = $flash_text; } $nb_lines = count($lines); if ($nb_lines == 1) { $object->addLine($lines[0], 'double', 'center'); } else { foreach ($lines as $value) { $object->addLine($value, NULL, 'center'); } } # Next action $object->setRefresh(2, $flash_next); $object->setDoneAction(2, $flash_next); break; } # Output XML object $object->output(); exit; ?>