unset($array_night); } } # Callback $XML_SERVER .= '?user='******'&mode=' . $mode; # Depending on action switch ($action) { # Display case 'display': # Display current status if (Aastra_is_formattedtextscreen_supported()) { # Advanced display require_once 'AastraIPPhoneFormattedTextScreen.class.php'; $object = new AastraIPPhoneFormattedTextScreen(); $object->setdestroyOnExit(); $object->setTimeout('2'); if (Aastra_size_formattedtextscreen() > 3) { $object->addLine(''); $object->addLine(''); } if ($status == 1) { $object->addLine(sprintf(Aastra_get_label('Night Mode activated (%d)', $language), $index), 'double', 'center'); } else { $object->addLine(sprintf(Aastra_get_label('Day Mode activated (%d)', $language), $index), 'double', 'center'); } if ($nb_softkeys == 6) { $object->addSoftKey('6', '', 'SoftKey:Exit'); } } else { # Basic display require_once 'AastraIPPhoneTextScreen.class.php';