Example #1
0
$P = Aastra_getvar_safe('P', '1');
$user = Aastra_getvar_safe('user');
# Retrieve phone information
$header = Aastra_decode_HTTP_header();
if ($user == '') {
    $user = $header['mac'];
}
# Keep return URI
$XML_SERVER .= '?user='******'biorhytm', 'user='******'1.4.2.', 0);
Aastra_test_php_function('imagecreate', Aastra_get_label('PHP-GD extension not installed.', $language));
$nb_softkeys = Aastra_number_softkeys_supported();
# Nothing entered
if ($bdate == '') {
    $date = Aastra_get_user_context($user, 'biorhytm');
    $object = new AastraIPPhoneInputScreen();
    $object->setTitle(Aastra_get_label('Biorhythms', $language));
    $object->setPrompt(Aastra_get_label('Birth Date (MM/DD/YYYY)', $language));
    $object->setParameter('bdate');
    $object->setType('dateUS');
    $object->setURL($XML_SERVER);
    $object->setDefault($date);
    $object->setDestroyOnExit();
    if ($nb_softkeys == 10) {
        $object->addSoftkey('10', Aastra_get_label('Exit', $language), "SoftKey:Exit");
    }
Example #2
0
#############################################################################
# Retrieve parameters
$user = $_GET['user'];
$action = $_GET['action'];
$value = $_GET['value'];
$page = $_GET['page'];
$score = $_GET['score'];
if ($page == '') {
    $page = 1;
}
# Trace
Aastra_trace_call('Yahtzee', 'user='******', action=' . $action . ', value=' . $value);
# Test User Agent
Aastra_test_phone_version('2.2.0.', 0);
Aastra_test_phone_model(array('Aastra55i', 'Aastra57i', 'Aastra57iCT', 'Aastra8000i'), True, 0);
Aastra_test_php_function('imagecreate', 'PHP-GD extension not installed.');
# Get Language
$language = Aastra_get_language();
# Retrieve phone information
$header = Aastra_decode_HTTP_header();
if ($user == '') {
    $user = $header['mac'];
}
# Keep return URI
$XML_SERVER .= '?user=' . $user;
# Number of softkeys
$nb_softkeys = Aastra_number_softkeys_supported($header);
# Get user context
$yahtzee = get_user_context($user);
# Init XML object
switch ($action) {