# Aastra_xml2array(url,get_attributes,priority,encoding) # This function converts the XML content of a URL into an array. # Aastra_secure_connection(uri,port) # This function switches the uri from http to https to secure the next HTTP GET. # # Private functions # None ################################################################################################### ################################################################################################### # INCLUDES ################################################################################################### require_once 'AastraIPPhone.php'; ################################################################################################### # CONSTANTS ################################################################################################### define('AASTRA_MAXLINES', Aastra_max_items_textmenu()); define('AASTRA_MAXSIZE', '10000'); define('AASTRA_MAXCONFIGURATIONS', '30'); if (is_dir('../config')) { define('AASTRA_CONFIG_DIRECTORY', '../config/'); } else { define('AASTRA_CONFIG_DIRECTORY', 'config/'); } if (file_exists('../language.ini')) { define('AASTRA_LANGUAGE_FILE', '../language.ini'); } else { define('AASTRA_LANGUAGE_FILE', 'language.ini'); } ################################################################################################### # GLOBAL VARIABLES (SERVER) ###################################################################################################
function _calculateMaxLines() { $this->_maxLines = Aastra_max_items_textmenu(); if (!Aastra_is_softkeys_supported()) { $this->_maxLines = $this->_maxLines - 2; } }