header('Content-Type: application/json');
         header('Content-Disposition: attachment; filename="' . basename($file) . '"');
         header('Content-Transfer-Encoding: binary');
         header('Expires: 0');
         header('Pragma: no-cache');
         header('Content-Length: ' . filesize($file));
         readfile($file);
     } else {
         $download = 1;
         header('Content-Type: text/html');
         include 'header.php';
         if ($file_handle = fopen($file, "r")) {
             while (!feof($file_handle)) {
                 $tok = strtok(str_replace(" ", " ", fgets($file_handle)), "\"");
                 while ($tok) {
                     print make_links_blank($tok);
                     $tok = strtok("\"");
                     if ($tok) {
                         print "\"";
                     }
                 }
                 print "<BR/>";
             }
             fclose($file_handle);
         }
         include 'tailer.php';
     }
 } else {
     if ($ext == 'nc') {
         header('Content-Description: File Transfer');
         header('Content-Type: application/x-netcdf');
Beispiel #2
0
    ?>
<img src="<?php 
    echo thumb($article->file, 600, 430);
    ?>
"><?php 
}
?>
          </div>
         <div class="separador"></div>
         <div class="description">
          <h1><?php 
echo $article->title;
?>
</h1>
          <div class="overtext"><?php 
echo nl2br(make_links_blank($article->text));
?>
</div>
         </div>
       </div>
     </div>
   </div>
 </div>
<script>
$(document).ready(function() {
  var cc = $('#app').attr('data-class');
  $('#app').removeClass(cc).addClass('section-home');
  $('#app').attr('data-class', 'section-home');
  $('#app .nav .item.active').removeClass('active');
});
</script>