Beispiel #1
0
 case 'summary':
     # Retrieve favorites
     $data = Aastra_get_user_context($user, 'stock');
     foreach ($data['favorites'] as $key => $value) {
         if ($value != '') {
             $array[] = $value;
         }
     }
     $return = get_quote($array);
     # Return OK
     if ($return[0]) {
         # Create the object
         require_once 'AastraIPPhoneFormattedTextScreen.class.php';
         $object = new AastraIPPhoneFormattedTextScreen();
         # No color FTS
         if (!Aastra_is_formattedtextscreen_color_supported()) {
             # Process the results
             $nb_carac = Aastra_size_display_line();
             $object->setScrollStart(Aastra_size_formattedtextscreen());
             foreach ($return[1] as $key => $value) {
                 if ($value != NULL) {
                     if ($value[8] != 'N/A') {
                         $last = 'Not Found';
                     } else {
                         $last = $value[2];
                     }
                     $object->addLine(format_line($nb_carac, $value[0], $last));
                 }
             }
             $object->addLine(Aastra_get_label('Powered by Yahoo', $language), '', 'center');
             $object->setScrollEnd();
Beispiel #2
0
#############################################################################
$action = Aastra_getvar_safe('action', 'show_queues');
$user = Aastra_getvar_safe('user');
$q_desc = Aastra_getvar_safe('q_desc');
$queue = Aastra_getvar_safe('queue');
$member = Aastra_getvar_safe('member');
$page = Aastra_getvar_safe('page', '1');
# Trace
Aastra_trace_call('queues_asterisk', 'action=' . $action . ', user='******', queue=' . $queue . ', member=' . $member);
# Test User Agent
Aastra_test_phone_versions(array('1' => '', '2' => '1.4.2', '3' => '', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
# Get Language
$language = Aastra_get_language();
# Global compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
$is_color_ftextscreen = Aastra_is_formattedtextscreen_color_supported();
# Check user mode
if ($user == '') {
    # Display error
    require_once 'AastraIPPhoneTextScreen.class.php';
    $object = new AastraIPPhoneTextScreen();
    $object->setDestroyOnExit();
    $object->setTitle(Aastra_get_label('Configuration Error', $language));
    $object->setText(Aastra_get_label('Missing parameter in the command line, please contact your administrator.', $language));
    if ($nb_softkeys == 6) {
        $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
    } else {
        $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
    }
    $object->output();
    exit;