Ejemplo n.º 1
0
    echo ' CHECKED';
}
?>
 value="1" /></dd>
                <dt><?php 
echo get_backend_setting('UserJobDesc3');
?>
:</dt>
                <dd><input type="checkbox" class="radio" name="autouserjob3"<?php 
if ($schedule->autouserjob3) {
    echo ' CHECKED';
}
?>
 value="1" /></dd>
                <dt><?php 
echo get_backend_setting('UserJobDesc4');
?>
:</dt>
                <dd><input type="checkbox" class="radio" name="autouserjob4"<?php 
if ($schedule->autouserjob4) {
    echo ' CHECKED';
}
?>
 value="1" /></dd>
                <dt><?php 
echo t('Inactive');
?>
:</dt>
                <dd><input type="checkbox" class="radio" name="inactive"<?php 
if ($schedule->inactive) {
    echo ' CHECKED';
Ejemplo n.º 2
0
    case 'mp3':
        $mime = 'audio/mpeg';
        break;
    case 'ogg':
        $mime = 'application/ogg';
        break;
    case 'm4a':
        $mime = 'audio/mp4a-latm';
        break;
    default:
        $mime = 'application/octet-stream';
}
header('Content-Type: ' . $mime);
// Send the filename
header('Content-Disposition: filename="' . $fname . '"');
// Base music path
$basepath = setting('MusicLocation', hostname);
// Local file?
if (file_exists("{$basepath}/{$path}/{$fname}")) {
    header('Content-Length: ' . filesize("{$basepath}/{$path}/{$fname}"));
    readfile("{$basepath}/{$path}/{$fname}");
} else {
    $Master_Host = setting('MasterServerIP');
    $port = _or(get_backend_setting('BackendStatusPort', $Master_Host), get_backend_setting('BackendStatusPort'));
    if (stripos($Master_Host, ':') !== false) {
        $Master_Host = '[' . $Master_Host . ']';
    }
    readfile("http://{$Master_Host}:{$port}/{$xml_command}?Id=" . $xml_id);
}
// Nothing else to do
exit;
Ejemplo n.º 3
0
    <td class="x-commands commands" rowspan="2"><?php 
    if ($show->is_recording) {
        echo '<a href="', root_url, 'tv/detail/', $show->chanid, '/', $show->recstartts, '">', t('Still Recording: Edit'), "</a>\n        ";
    }
    if ($show->can_delete) {
        ?>
<a onclick="javascript:confirm_delete(<?php 
        echo $row + $offset;
        ?>
, false)"
            title="<?php 
        echo html_entities(t('Delete $1', preg_replace('/: $/', '', $show->title . ': ' . $show->subtitle)));
        ?>
"
            ><?php 
        if (get_backend_setting('AutoExpireInsteadOfDelete') > 0 && $show->recgroup == 'Deleted') {
            echo t('Delete Forever');
        } else {
            echo t('Delete');
        }
        ?>
</a>
        <a onclick="javascript:confirm_delete(<?php 
        echo $row + $offset;
        ?>
, true)"
            title="<?php 
        echo html_entities(t('Delete and allow rerecord: $1', preg_replace('/: $/', '', $show->title . ': ' . $show->subtitle)));
        ?>
"
            ><?php