コード例 #1
0
<?php

require 'inc/head_foot.inc';
$title = "Presentations";
phead();
?>

<h2 style="text-align:center">Presentations</h2>

<ul class="pres">

  <li>
    American Astronomical Society 223rd Meeting, National Harbor, MD 
    (January 7, 2014)
    <ul>
      <li>
        <b>Chat Hull</b>, <i>"From Clouds to Cores to Envelopes to Disks: A Multi-scale 
		View of Magnetized Star Formation"</i> (talk)
        [<a href="static/presentations/044_hull_aas_223_talk.pptx">pptx</a>]        
      </li>
    </ul>
  </li>

  <li>
	University of Rochester colloquium, Rochester, NY (November 26, 2013)
	<ul>
      <li>
        <b>Chat Hull</b>, <i>"From Clouds to Cores to Envelopes to Disks: A Multi-scale 
		View of Magnetized Star Formation"</i> (talk)
        [<a href="static/presentations/043_hull_rochester_colloquium.pptx">pptx</a>]        
      </li>
コード例 #2
0
    $mimetype = str_replace("\r", "", $mimetype);
    $mimelist = explode("\n", $mimetype);
    $mlist = array();
    foreach (is_array($mimelist) ? $mimelist : array() as $key => $value) {
        $value = trim($value);
        if ($value) {
            $msg = array();
            $msg = explode(" ", $value);
            $msg_left = trim($msg[0]);
            $msg_right = trim($msg[1]);
            if ($msg_left && $msg_right) {
                $mlist[$msg_left] = $msg_right;
            }
        }
    }
    unset($mimetype, $mimelist);
    if (!array_key_exists($type, $mlist)) {
        return false;
    }
    return $mlist[$type];
}
ob_end_clean();
phead("Date: " . gmdate("D, d M Y H:i:s", $rs["postdate"]) . " GMT");
phead("Last-Modified: " . gmdate("D, d M Y H:i:s", $rs["postdate"]) . " GMT");
phead("Content-Encoding: none");
phead("Content-Disposition: attachment; filename=" . rawurlencode($rs["tmpname"]));
phead("Content-Length: " . $filesize);
phead("Accept-Ranges: bytes");
@readfile($rs["folder"] . $rs["filename"]);
@flush();
@ob_flush();