includes/template.php
changeset 1081 745200a9cc2a
parent 1072 604213a07ce0
child 1101 30d8bb88572d
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
  2594     if ( !$q )
  2593     if ( !$q )
  2595       $db->_die();
  2594       $db->_die();
  2596     $messages = array();
  2595     $messages = array();
  2597     while ( $row = $db->fetchrow() )
  2596     while ( $row = $db->fetchrow() )
  2598     {
  2597     {
  2599       $messages[] = '<a href="' . makeUrlNS('Special', 'PrivateMessages/View/' . $row['message_id']) . '" title="Sent ' . enano_date('F d, Y h:i a', $row['date']) . ' by ' . $row['message_from'] . '">' . $row['subject'] . '</a>';
  2598       $messages[] = '<a href="' . makeUrlNS('Special', 'PrivateMessages/View/' . $row['message_id']) . '" title="Sent ' . enano_date(ED_DATE | ED_TIME, $row['date']) . ' by ' . $row['message_from'] . '">' . $row['subject'] . '</a>';
  2600     }
  2599     }
  2601     $ob .= implode(",\n    " , $messages)."\n";
  2600     $ob .= implode(",\n    " , $messages)."\n";
  2602     $ob .= '</div>'."\n";
  2601     $ob .= '</div>'."\n";
  2603     return $ob;
  2602     return $ob;
  2604   }
  2603   }