Location: PHPKode > projects > Volunteer Management OpenSource Software > vmoss_alpha02/inc/lib_stream_xml.inc
<?php
/* $Id: lib_stream_xml.inc,v 1.5 2007/10/04 05:17:59 priyanga Exp $ */

/**
 *
 * <Description goes here>
 *
 * PHP version 4 and 5
 * * LICENSE: This source file is subject to LGPL license
 * that is available through the world-wide-web at the following URI:
 * http://www.gnu.org/copyleft/lesser.html
 *
 * @package    framework
 * @subpackage stream_xml
 * @author     Janaka Wickramasinghe <hide@address.com>
 * @copyright  Lanka Software Foundation - http://www.opensource.lk
 * @license    http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
 * 
 */
 
function shn_stream_init()
{
    $file = 'download.xml';
    if(isset($_GET['filename']))
        $file = $_GET['filename'];
    //todo need a way to pass header;

    header("Content-type: text/xml");
    if(isset($_GET['download']))
        header("Content-Disposition: attachment; filename=$file");

    echo "<?xml version=\"1.0\" ?>\n";
}

function shn_stream_close()
{

}

function shn_xml_check_perms(){
        return ALLOWED;//skip authentication
}
?>
Return current item: Volunteer Management OpenSource Software