includes/namespaces/file.php
changeset 1081 745200a9cc2a
parent 953 323c4cd1aa37
child 1114 4f4d63a281cd
equal deleted inserted replaced
1080:6358f769ecb1 1081:745200a9cc2a
     1 <?php
     1 <?php
     2 
     2 
     3 /*
     3 /*
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     5  * Version 1.1.6 (Caoineag beta 1)
     5  * Copyright (C) 2006-2009 Dan Fuhry
     6  * Copyright (C) 2006-2008 Dan Fuhry
       
     7  *
     6  *
     8  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     7  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     9  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
     8  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    10  *
     9  *
    11  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
    10  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
    68             <br />';
    67             <br />';
    69       return $html;
    68       return $html;
    70     }
    69     }
    71     $r = $db->fetchrow();
    70     $r = $db->fetchrow();
    72     $mimetype = $r['mimetype'];
    71     $mimetype = $r['mimetype'];
    73     $datestring = enano_date('F d, Y h:i a', (int)$r['time_id']);
    72     $datestring = enano_date(ED_DATE | ED_TIME, (int)$r['time_id']);
    74     $html .= '<div class="mdg-comment" style="margin-left: 0;">
    73     $html .= '<div class="mdg-comment" style="margin-left: 0;">
    75             <h3>' . $lang->get('onpage_filebox_heading') . '</h3>
    74             <h3>' . $lang->get('onpage_filebox_heading') . '</h3>
    76             <p>' . $lang->get('onpage_filebox_lbl_type') . ' '.$r['mimetype'].'<br />';
    75             <p>' . $lang->get('onpage_filebox_lbl_type') . ' '.$r['mimetype'].'<br />';
    77     
    76     
    78     $size = $r['size'] . ' ' . $lang->get('etc_unit_bytes');
    77     $size = $r['size'] . ' ' . $lang->get('etc_unit_bytes');