当前位置: 首页>>代码示例>>PHP>>正文


PHP Aastra_get_label函数代码示例

本文整理汇总了PHP中Aastra_get_label函数的典型用法代码示例。如果您正苦于以下问题:PHP Aastra_get_label函数的具体用法?PHP Aastra_get_label怎么用?PHP Aastra_get_label使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了Aastra_get_label函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_user_config

function get_user_config($user, $menu_source, $menu_mode)
{
    global $language;
    # Retrieve phone data
    $update = 0;
    $header = Aastra_decode_HTTP_header();
    $header['model'] = strtolower($header['model']);
    $is_softkeys_supported = Aastra_is_softkeys_supported();
    # Read all menu
    $all = Aastra_readINIfile($menu_source . '.menu', '#', '=');
    # Get user config
    if ($is_softkeys_supported and $menu_mode == 'dynamic') {
        $config = Aastra_get_user_context($user, 'mymenu' . '_' . $menu_source);
    } else {
        $config = NULL;
    }
    # File does not exist
    if ($config == NULL) {
        unset($all['RESERVED']);
        foreach ($all as $key => $value) {
            if ($value[$header['model']] == 'no') {
                unset($all[$key]);
            } else {
                $all[$key]['title'] = Aastra_get_label($all[$key]['title'], $language);
            }
        }
        Aastra_natsort2d($all, 'title');
        foreach ($all as $key => $value) {
            $config['menu'][] = $key;
        }
        if ($is_softkeys_supported and $menu_mode == 'dynamic') {
            $update = 1;
        }
    } else {
        # Read config file
        foreach ($config['menu'] as $key => $value) {
            if ($all[$value] == NULL or $all[$value][$header['model']] == 'no') {
                unset($config['menu'][$key]);
                $update = 1;
            }
        }
    }
    # Read final file
    if ($update == 1) {
        Aastra_save_user_context($user, 'mymenu' . '_' . $menu_source, $config);
        unset($config);
        $config = Aastra_get_user_context($user, 'mymenu' . '_' . $menu_source);
    }
    # Return array
    return $config;
}
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:51,代码来源:mymenu.php

示例2: format_date

function format_date($value)
{
    global $AA_FORMAT_DT;
    # Day of the week
    $array_day = array('0' => Aastra_get_label('Sun', $language), '1' => Aastra_get_label('Mon', $language), '2' => Aastra_get_label('Tue', $language), '3' => Aastra_get_label('Wed', $language), '4' => Aastra_get_label('Thu', $language), '5' => Aastra_get_label('Fri', $language), '6' => Aastra_get_label('Sat', $language));
    # Apply local settings
    if ($AA_FORMAT_DT == 'US') {
        $date = strftime($array_day[strftime('%w', $value)] . ' ' . '%m/%d', $value);
    } else {
        $date = strftime($array_day[strftime('%w', $value)] . ' ' . '%d/%m', $value);
    }
    # Return result
    return $date;
}
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:14,代码来源:vmail_4.php

示例3: Aastra_get_label

                        $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
                    } else {
                        if ($action == 'zoom') {
                            $object->addSoftkey('9', Aastra_get_label('Back', $language), $XML_SERVER . '?selection=' . $selection . '&user=' . $user . '&action=list' . '&page=' . $page);
                            $object->setCancelAction($XML_SERVER . '?selection=' . $selection . '&user=' . $user . '&action=list' . '&page=' . $page);
                        } else {
                            $object->addSoftkey('9', Aastra_get_label('Back', $language), $XML_SERVER . '?selection=' . $selection . '&user=' . $user . '&action=favorites');
                            $object->setCancelAction($XML_SERVER . '?selection=' . $selection . '&user=' . $user . '&action=favorites');
                        }
                        $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
                    }
                }
            } else {
                # Display error
                $object = new AastraIPPhoneTextScreen();
                $object->setDestroyOnExit();
                $object->setTitle(Aastra_get_label('Application error', $language));
                $object->setText(Aastra_get_label('The information you are looking for is not available at this time. Try again later.', $language));
            }
        } else {
            # Display error
            $object = new AastraIPPhoneTextScreen();
            $object->setDestroyOnExit();
            $object->setTitle(Aastra_get_label('Application error', $language));
            $object->setText(Aastra_get_label('The information you are looking for is not available at this time. Try again later.', $language));
        }
        break;
}
# Display object
$object->output();
exit;
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:clock.php

示例4: init_keys

function init_keys($user, $header)
{
    global $array_config;
    # Phone supported?
    if ($array_config[$header['model']] != NULL) {
        if ($array_config[$header['model']]['top key'] == '1') {
            for ($i = 1; $i <= $array_config[$header['model']]['top key number']; $i++) {
                $array_key[$array_config[$header['model']]['top key type'] . $i]['key'] = $i;
                $array_key[$array_config[$header['model']]['top key type'] . $i]['internal'] = $array_config[$header['model']]['top key type'];
                $array_key[$array_config[$header['model']]['top key type'] . $i]['max'] = $array_config[$header['model']]['top key number'];
                $array_key[$array_config[$header['model']]['top key type'] . $i]['type'] = '';
                $array_key[$array_config[$header['model']]['top key type'] . $i]['label'] = '';
                $array_key[$array_config[$header['model']]['top key type'] . $i]['value'] = '';
                $array_key[$array_config[$header['model']]['top key type'] . $i]['states'] = '';
                $array_key[$array_config[$header['model']]['top key type'] . $i]['locked'] = '';
            }
        }
        if ($array_config[$header['model']]['bottom key'] == '1') {
            for ($i = 1; $i <= $array_config[$header['model']]['bottom key number']; $i++) {
                $array_key[$array_config[$header['model']]['bottom key type'] . $i]['key'] = $i;
                $array_key[$array_config[$header['model']]['bottom key type'] . $i]['internal'] = $array_config[$header['model']]['bottom key type'];
                $array_key[$array_config[$header['model']]['bottom key type'] . $i]['max'] = $array_config[$header['model']]['bottom key number'];
                $array_key[$array_config[$header['model']]['bottom key type'] . $i]['type'] = '';
                $array_key[$array_config[$header['model']]['bottom key type'] . $i]['label'] = '';
                $array_key[$array_config[$header['model']]['bottom key type'] . $i]['value'] = '';
                $array_key[$array_config[$header['model']]['bottom key type'] . $i]['states'] = '';
                $array_key[$array_config[$header['model']]['bottom key type'] . $i]['locked'] = '';
            }
        }
    }
    # Expansion modules
    for ($module = 1; $module <= 3; $module++) {
        $end = $array_config[$header['module'][$module]]['key number'];
        for ($i = 1; $i <= $end; $i++) {
            $array_key['expmod' . $module . ' key' . $i]['key'] = $i;
            $array_key['expmod' . $module . ' key' . $i]['internal'] = 'expmod' . $module . ' key';
            $array_key['expmod' . $module . ' key' . $i]['max'] = $end;
            $array_key['expmod' . $module . ' key' . $i]['type'] = '';
            $array_key['expmod' . $module . ' key' . $i]['label'] = '';
            $array_key['expmod' . $module . ' key' . $i]['value'] = '';
            $array_key['expmod' . $module . ' key' . $i]['locked'] = '';
        }
        if ($header['module'][$module] == '560M') {
            $array_key['expmod' . $module . 'page1left']['value'] = Aastra_get_label('LIST 1', $language);
            $array_key['expmod' . $module . 'page1right']['value'] = Aastra_get_label('LIST 2', $language);
            $array_key['expmod' . $module . 'page2left']['value'] = Aastra_get_label('LIST 3', $language);
            $array_key['expmod' . $module . 'page2right']['value'] = Aastra_get_label('LIST 4', $language);
            $array_key['expmod' . $module . 'page3left']['value'] = Aastra_get_label('LIST 5', $language);
            $array_key['expmod' . $module . 'page3right']['value'] = Aastra_get_label('LIST 6', $language);
            $array_key['expmod' . $module . 'page1left']['locked'] = 1;
            $array_key['expmod' . $module . 'page1right']['locked'] = 1;
            $array_key['expmod' . $module . 'page2left']['locked'] = 1;
            $array_key['expmod' . $module . 'page2right']['locked'] = 1;
            $array_key['expmod' . $module . 'page3left']['locked'] = 1;
            $array_key['expmod' . $module . 'page3right']['locked'] = 1;
        }
    }
    # Retrieve user keys and page labels
    $filename = AASTRA_TFTP_DIRECTORY . '/' . $header['mac'] . '.cfg';
    if (file_exists($filename)) {
        $array_user = Aastra_readINIfile($filename, '#', ':');
        foreach ($array_key as $key => $value) {
            if (isset($array_user[''][$key . ' type'])) {
                $array_key[$key]['type'] = $array_user[''][$key . ' type'];
                if (isset($array_user[''][$key . ' label'])) {
                    $array_key[$key]['label'] = $array_user[''][$key . ' label'];
                }
                if (isset($array_user[''][$key . ' value'])) {
                    $array_key[$key]['value'] = $array_user[''][$key . ' value'];
                }
                if (isset($array_user[''][$key . ' states'])) {
                    $array_key[$key]['states'] = $array_user[''][$key . ' states'];
                }
                if (isset($array_user[''][$key . ' locked'])) {
                    $array_key[$key]['locked'] = $array_user[''][$key . ' locked'];
                } else {
                    $array_key[$key]['locked'] = '0';
                }
            }
            if (isset($array_user[''][$key])) {
                $array_key[$key]['value'] = $array_user[''][$key];
            }
        }
    }
    # Check aastra.cfg for other defaulted keys
    $filename = AASTRA_TFTP_DIRECTORY . '/aastra.cfg';
    if (file_exists($filename)) {
        $array_user = Aastra_readINIfile($filename, '#', ':');
        foreach ($array_key as $key => $value) {
            if (isset($array_user[''][$key . ' type'])) {
                if (!in_array($key, $array_config[$header['model']]['defaulted keys'])) {
                    $array_config[$header['model']]['defaulted keys'][] = $key;
                }
            }
        }
    }
    # Return current key configuration
    return $array_key;
}
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:99,代码来源:key.php

示例5: AastraIPPhoneTextScreen

            $object = new AastraIPPhoneTextScreen();
            $object->setTitle(Aastra_get_label('Currency converter', $language));
            $object->setText(Aastra_get_label('Information not available at this time. Please try again later.', $language));
        }
        # Add remaining softkeys
        if ($nb_softkeys == 6) {
            if ($action == 'display') {
                $object->addSoftkey('4', Aastra_get_label('New Lookup', $language), $XML_SERVER . '&action=init');
            } else {
                $object->addSoftkey('4', Aastra_get_label('Back', $language), $XML_SERVER . '&action=favorites&selection=' . $selection);
            }
            $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
        } else {
            if ($action == 'display') {
                $object->addSoftkey('6', Aastra_get_label('New Lookup', $language), $XML_SERVER . '&action=init');
            } else {
                $object->addSoftkey('9', Aastra_get_label('Back', $language), $XML_SERVER . '&action=favorites&selection=' . $selection);
            }
            $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
        }
        break;
}
# Top title
if (Aastra_is_top_title_supported()) {
    $object->setTopTitle(Aastra_get_label('Currency'), '', '1');
    $object->addIcon('1', 'http://' . $AA_XML_SERVER . '/' . $AA_XMLDIRECTORY . '/icons/currency.png');
}
# Display object
$object->setDestroyOnExit();
$object->output();
exit;
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:currency.php

示例6: AastraIPPhoneTextScreen

                    $object->setTitle(Aastra_get_label('Directory', $language));
                }
            } else {
                if ($last != 1) {
                    $object->setTitle(sprintf(Aastra_get_label('Results (%s-%s)', $language), $min, $max));
                } else {
                    $object->setTitle(Aastra_get_label('Results', $language));
                }
            }
        } else {
            # Display error
            require_once 'AastraIPPhoneTextScreen.class.php';
            $object = new AastraIPPhoneTextScreen();
            $object->setDestroyOnExit();
            if ($lookup == '') {
                $object->setTitle(Aastra_get_label('Directory error', $language));
                $object->setText(Aastra_get_label('Directory list is empty. Please contact your administrator.', $language));
            } else {
                $object->setTitle(Aastra_get_label('Lookup error', $language));
                $object->setText(Aastra_get_label('Sorry no match.', $language));
            }
            # Softkey
            if ($lookup != '') {
                $object->setDoneAction($XML_SERVER . '&action=search&lookup=' . $lookup);
            }
        }
        break;
}
# Output XML object
$object->output();
exit;
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:directory_3.php

示例7: Aastra_status_config_Asterisk

function Aastra_status_config_Asterisk()
{
    global $language;
    # Read config file
    $array = Aastra_readINIfile(AASTRA_CONFIG_DIRECTORY . 'status.conf', '#', '=');
    # Do some cleanup
    foreach ($array as $key => $value) {
        if (!is_numeric($key) or $key < 1 or $key > 98) {
            unset($array[$key]);
        } else {
            if ($value['type'] != 'out' or $value['type'] != 'available' or $value['type'] != 'unavailable') {
                $array[$key]['type'] = 'available';
            }
        }
    }
    # Add available
    $array[AA_PRESENCE_AVAILABLE] = array('label' => Aastra_get_label('Available', $language), 'type' => 'available', 'mnemonic' => '_');
    # Add disconnected
    $array[AA_PRESENCE_DISCONNECTED] = array('label' => Aastra_get_label('Disconnected', $language), 'type' => 'unavailable', 'mnemonic' => Aastra_get_label('D', $language));
    # Return array
    return $array;
}
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:22,代码来源:AastraAsterisk.php

示例8: Aastra_get_label

                }
                $object->addSoftkey('4', Aastra_get_label('Back', $language), $XML_SERVER . '&zip=' . $zip);
                if ($index != count($array_rss) - 2) {
                    $object->addSoftkey('5', Aastra_get_label('Next', $language), $XML_SERVER . '&zip=' . $zip . '&index=' . ($index + 2));
                }
                $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
            } else {
                $softkey = 1;
                foreach ($array_rss as $key => $value) {
                    if ($key != '99') {
                        $object->addSoftkey($softkey, $value['title'], $value['uri'] . '&user=' . $user);
                        $softkey++;
                    }
                    $object->addSoftkey('9', Aastra_get_label('Back', $language), $XML_SERVER);
                    $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
                }
                $object->setCancelAction($XML_SERVER);
            }
        } else {
            $object->setCancelAction($XML_SERVER);
        }
    }
}
# Top title
if (Aastra_is_top_title_supported()) {
    $object->setTopTitle(Aastra_get_label('US Weather'), '', '1');
    $object->addIcon('1', 'http://' . $AA_XML_SERVER . '/' . $AA_XMLDIRECTORY . '/icons/weather.png');
}
# Display output
$object->output();
exit;
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:weather_us.php

示例9: Aastra_get_label

                        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');
                        }
                    }
                }
            } else {
                # Display error as a TextScreen
                $object = new AastraIPPhoneTextScreen();
                $object->setDestroyOnExit();
                $object->setTitle(Aastra_get_label('User Login', $language));
                $object->setText(Aastra_get_label('Wrong user credentials.', $language));
                if ($nb_softkeys) {
                    if ($nb_softkeys == 6) {
                        $object->addSoftkey('5', Aastra_get_label('Cancel', $language), 'SoftKey:Exit');
                        $object->addSoftkey('6', Aastra_get_label('Close', $language), $XML_SERVER . '&action=input');
                    } else {
                        $object->addSoftkey('9', Aastra_get_label('Cancel', $language), 'SoftKey:Exit');
                        $object->addSoftkey('10', Aastra_get_label('Close', $language), $XML_SERVER . '&action=input');
                    }
                }
            }
            break;
    }
}
# Display XML Object
$object->output();
exit;
?>
7
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:login.php

示例10: Aastra_get_label

                $object->addSoftkey('1', Aastra_get_label('Change', $language), $XML_SERVER . '&action=' . $change);
                $object->addSoftkey('2', Aastra_get_label('Deactivate', $language), $XML_SERVER . '&action=cancel');
            }
            if ($nb_softkeys == 6) {
                $object->addSoftkey('3', Aastra_get_label('My Numbers', $language), $XML_SERVER . '&action=info');
                $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
            } else {
                $object->addSoftkey('6', Aastra_get_label('My Numbers', $language), $XML_SERVER . '&action=info');
                $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
            }
        } else {
            # TextMenu for non softkey phone
            require_once 'AastraIPPhoneTextMenu.class.php';
            $object = new AastraIPPhoneTextMenu();
            $object->setDestroyOnExit();
            if ($cf == '') {
                $object->setTitle(Aastra_get_label('CFWD deactivated', $language));
                $object->addEntry(Aastra_get_label('Activate', $language), $XML_SERVER . '&action=' . $change);
            } else {
                $object->setTitle(sprintf(Aastra_get_label('CFWD set (%s)', $language), $cf));
                $object->addEntry(Aastra_get_label('Deactivate', $language), $XML_SERVER . '&action=cancel');
                $object->addEntry(Aastra_get_label('Change', $language), $XML_SERVER . '&action=' . $change);
            }
            $object->addEntry(Aastra_get_label('My numbers', $language), $XML_SERVER . '&action=info');
            $object->addEntry(Aastra_get_label('Exit', $language), 'SoftKey:Exit');
        }
        break;
}
# Display answer
$object->output();
exit;
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:cfwd.php

示例11: foreach

            foreach ($directory as $v) {
                if ($index >= ($page - 1) * $MaxLines + 1 and $index <= $page * $MaxLines) {
                    if ($v['number'] == $selection) {
                        $object->setDefaultIndex($rank);
                    }
                    if ($AA_PRESENCE_STATE) {
                        $object->addEntry('[' . $status_text[$v['status']]['mnemonic'] . ']' . $v['name'], $XML_SERVER . '&action=zoom&selection=' . $v['number'], $v['number']);
                    } else {
                        $object->addEntry($v['name'], $XML_SERVER . '&action=dial&selection=' . $v['number'], $v['number']);
                    }
                    $rank++;
                }
                $index++;
            }
            # Next Page
            if ($page != $last) {
                $object->addEntry(Aastra_get_label('Next Page', $language), $XML_SERVER . '&action=list&page=' . ($page + 1));
            }
        } else {
            # Display error
            require_once 'AastraIPPhoneTextScreen.class.php';
            $object = new AastraIPPhoneTextScreen();
            $object->setDestroyOnExit();
            $object->setTitle(Aastra_get_label('Directory error', $language));
            $object->setText(Aastra_get_label('Directory list is empty. Please contact your administrator.', $language));
        }
        break;
}
# Output XML object
$object->output();
exit;
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:directory_1.php

示例12: Aastra_get_label

                    $object->addSoftkey(8, Aastra_get_label('Next', $language), $XML_SERVER . '&action=display&page=' . ($page + 1) . '&confno=' . $confno . '&mode=' . $mode);
                }
                $object->addSoftkey('9', Aastra_get_label('Back', $language), $XML_SERVER . '&confno=' . $confno);
                $object->addSoftkey(10, Aastra_get_label('Exit', $language), 'SoftKey:Exit');
            }
        }
        # Test the refresh
        if (Aastra_is_Refresh_supported()) {
            $object->setRefresh('5', $XML_SERVER . '&action=refresh&page=' . $page . '&confno=' . $confno . '&mode=' . $mode);
            $new = $object->generate();
        } else {
            $refresh = 1;
            if ($nb_softkeys == 6) {
                $object->addSoftkey(3, Aastra_get_label('Refresh', $language), $XML_SERVER . '&action=display&page=' . $page . '&confno=' . $confno . '&mode=' . $mode);
            } else {
                $object->addSoftkey(6, Aastra_get_label('Refresh', $language), $XML_SERVER . '&action=display&page=' . $page . '&confno=' . $confno . '&mode=' . $mode);
            }
        }
        # Test refresh
        if ($refresh == 0) {
            $old = @file_get_contents(AASTRA_PATH_CACHE . $header['mac'] . '.meetme');
            if ($new != $old) {
                $refresh = 1;
            }
        }
        # Save last screen
        $stream = @fopen(AASTRA_PATH_CACHE . $header['mac'] . '.meetme', 'w');
        @fwrite($stream, $new);
        @fclose($stream);
        break;
}
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:meetme.php

示例13: WARNINGErrorHandler

function WARNINGErrorHandler($code, $string, $file, $line)
{
    global $LANGUAGE;
    if (preg_match("/Sizelimit exceeded/i", $string)) {
        display_message(Aastra_get_label('LDAP Error', $LANGUAGE), Aastra_get_label('Result size limit exceeded. Provide more letters.', $LANGUAGE), $XML_SERVER);
    } else {
        display_message(Aastra_get_label('Application error', $LANGUAGE), Aastra_get_label('Error Message', $LANGUAGE) . ": " . $string, $XML_SERVER);
    }
    exit;
}
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:10,代码来源:ldap_directory.php

示例14: AastraIPPhoneExecute

            require_once 'AastraIPPhoneExecute.class.php';
            $object = new AastraIPPhoneExecute();
            $object->setTriggerDestroyOnExit('');
            $object->addEntry('');
        } else {
            # Error message
            require_once 'AastraIPPhoneTextScreen.class.php';
            $object = new AastraIPPhoneTextScreen();
            $object->setDestroyOnExit();
            $object->setTitle(Aastra_get_label('Pickup failed', $language));
            $object->setText(Aastra_get_label('Failed to intercept the caller in the queue.', $language));
            # Softkeys
            if ($nb_softkeys == 6) {
                $object->addSoftKey('6', Aastra_get_label('Close', $language), $XML_SERVER . '&action=show_queues&queue=' . $queue);
            } else {
                $object->addSoftKey('10', Aastra_get_label('Close', $language), $XML_SERVER . '&action=show_queues&queue=' . $queue);
                $object->setCancelAction($XML_SERVER . '&action=show_queues&queue=' . $queue);
            }
        }
        break;
}
# Display XML object
if ($refresh == 1) {
    $object->output();
} else {
    # Do nothing
    require_once 'AastraIPPhoneExecute.class.php';
    $object2 = new AastraIPPhoneExecute();
    $object2->addEntry('');
    $object2->output();
}
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:queues.php

示例15: Aastra_get_userdevice_Asterisk

if ($found == 0 and $number != 'Paging' and $number != '') {
    # Translate user if needed
    $user = Aastra_get_userdevice_Asterisk($user);
    # Check if call has been parked
    $park = Aastra_check_park_Asterisk($user, $number);
    # Display orbit
    if ($park != '') {
        # Display current status
        require_once 'AastraIPPhoneStatus.class.php';
        $object = new AastraIPPhoneStatus();
        $object->setSession('Park');
        $object->setBeep();
        if (Aastra_size_display_line() > 16) {
            $object->addEntry('1', sprintf(Aastra_get_label('Call Parked at %s', $language), $park), 'alert', 5);
        } else {
            $object->addEntry('1', sprintf(Aastra_get_label('Parked at %s', $language), $park), 'alert', 5);
        }
        # Bug 3.2.1
        if (Aastra_test_phone_version('3.2.1.', '1') == 0) {
            sleep(4);
        }
        # End of search
        $found = 1;
    }
}
# No match whatsoever
if ($found == 0) {
    require_once 'AastraIPPhoneExecute.class.php';
    $object = new AastraIPPhoneExecute();
    $object->addEntry('');
}
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:onhook.php


注:本文中的Aastra_get_label函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。