includes/namespaces/default.php
changeset 1081 745200a9cc2a
parent 1042 13ad9c1cb7d4
child 1105 0e46639fd408
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
   396     if ( $this->revision_id )
   395     if ( $this->revision_id )
   397     {
   396     {
   398       echo '<div class="info-box" style="margin-left: 0; margin-top: 5px;">
   397       echo '<div class="info-box" style="margin-left: 0; margin-top: 5px;">
   399               <b>' . $lang->get('page_msg_archived_title') . '</b><br />
   398               <b>' . $lang->get('page_msg_archived_title') . '</b><br />
   400               ' . $lang->get('page_msg_archived_body', array(
   399               ' . $lang->get('page_msg_archived_body', array(
   401                   'archive_date' => enano_date('F d, Y', $this->revision_time),
   400                   'archive_date' => enano_date(ED_DATE, $this->revision_time),
   402                   'archive_time' => enano_date('h:i a', $this->revision_time),
   401                   'archive_time' => enano_date(ED_TIME, $this->revision_time),
   403                   'current_link' => makeUrlNS($this->namespace, $this->page_id),
   402                   'current_link' => makeUrlNS($this->namespace, $this->page_id),
   404                   'restore_link' => makeUrlNS($this->namespace, $this->page_id, 'do=edit&amp;revid='.$this->revision_id),
   403                   'restore_link' => makeUrlNS($this->namespace, $this->page_id, 'do=edit&amp;revid='.$this->revision_id),
   405                   'restore_onclick' => 'ajaxEditor(\''.$this->revision_id.'\'); return false;',
   404                   'restore_onclick' => 'ajaxEditor(\''.$this->revision_id.'\'); return false;',
   406                 )) . '
   405                 )) . '
   407             </div>';
   406             </div>';
   578       }
   577       }
   579       if ( $db->numrows() > 0 )
   578       if ( $db->numrows() > 0 )
   580       {
   579       {
   581         $r = $db->fetchrow();
   580         $r = $db->fetchrow();
   582         $standard_404 .= '<p>' . $lang->get('page_msg_404_was_deleted', array(
   581         $standard_404 .= '<p>' . $lang->get('page_msg_404_was_deleted', array(
   583                   'delete_time' => enano_date('d M Y h:i a', $r['time_id']),
   582                   'delete_time' => enano_date(ED_DATE | ED_TIME, $r['time_id']),
   584                   'delete_reason' => htmlspecialchars($r['edit_summary']),
   583                   'delete_reason' => htmlspecialchars($r['edit_summary']),
   585                   'rollback_flags' => 'href="'.makeUrl($paths->page, 'do=rollback&amp;id='.$r['log_id']).'" onclick="ajaxRollback(\''.$r['log_id'].'\'); return false;"'
   584                   'rollback_flags' => 'href="'.makeUrl($paths->page, 'do=rollback&amp;id='.$r['log_id']).'" onclick="ajaxRollback(\''.$r['log_id'].'\'); return false;"'
   586                 ))
   585                 ))
   587               . '</p>';
   586               . '</p>';
   588         if ( $session->user_level >= USER_LEVEL_ADMIN )
   587         if ( $session->user_level >= USER_LEVEL_ADMIN )