Beispiel #1
0
$resolution = (int) trim(@$_REQUEST['res']);
$user = trim(@$_REQUEST['user']);
$sidnum = trim(@$_REQUEST['cidnum']);
$local_file = trim(@$_REQUEST['file']);
if ($user != '') {
    $user_id = get_user_id($user);
}
# check if user is known to GS
#
if ($user_id < 1) {
    gs_log(GS_LOG_NOTICE, "User \"{$user}\" unknown");
    die_not_allowed('You are not allowed to send a fax.');
}
# get email address and PIN
#
$email = gs_user_email_address_get($user);
$pin = gs_user_pin_get($user);
# use default fax TSI if not provided in http request
#
if ($tsi == '') {
    $fax_tsis_global = explode(',', gs_get_conf('GS_FAX_TSI'));
    if (array_key_exists(0, $fax_tsis_global) && $fax_tsis_global[0] != '') {
        $tsi = $fax_tsis_global[0];
    } else {
        $tsi = '0';
    }
}
# if no local file is specified check if ist's provided in http request
#
if ($local_file == '' && is_array($_FILES) && array_key_exists('file', $_FILES) && $_FILES['file']['error'] == 0 && $_FILES['file']['size'] > 0) {
    $local_file = $_FILES['file']['tmp_name'];
        }
        echo '</select>';
        echo '</td>', "\n";
    }
    /*
    echo '<td>';
    echo '<select name="vm-', $src, '" />', "\n";
    echo '<option value="1"', ( $vm[$src .'_active'] ? ' selected="selected"' : ''), '>', __('An'), '</option>', "\n";
    echo '<option value="0"', (!$vm[$src .'_active'] ? ' selected="selected"' : ''), '>', __('Aus'), '</option>', "\n";
    echo '</select>';
    echo '</td>', "\n";
    */
    echo '</tr>', "\n";
}
$email_notify = (int) gs_user_email_notify_get($_SESSION['sudo_user']['name']);
$email_address = gs_user_email_address_get($_SESSION['sudo_user']['name']);
?>

<tr>
	<td colspan="3">&nbsp;</td>
	<td>
		<?php 
echo __('nach');
?>
		<input type="text" name="timeout" value="<?php 
echo $timeout;
?>
" size="3" maxlength="3" class="r" <?php 
echo $disabled;
?>
/>&nbsp;s