index.php
changeset 21 663fcf528726
parent 16 64e0d3d4cf14
child 28 dd2edcdc6c03
equal deleted inserted replaced
20:40105681f495 21:663fcf528726
     1 <?php
     1 <?php
     2 /**
     2 /**
     3  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     3  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * @Version 1.0 release candidate 3 (Druid)
     4  * @Version 1.0 (Banshee)
     5  * Copyright (C) 2006-2007 Dan Fuhry
     5  * Copyright (C) 2006-2007 Dan Fuhry
     6  *
     6  *
     7  * 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
     8  * 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.
     9  *
     9  *
    49     default:
    49     default:
    50       die_friendly('Invalid action', '<p>The action "'.$_GET['do'].'" is not defined. Return to <a href="'.makeUrl($paths->page).'">viewing this page\'s text</a>.</p>');
    50       die_friendly('Invalid action', '<p>The action "'.$_GET['do'].'" is not defined. Return to <a href="'.makeUrl($paths->page).'">viewing this page\'s text</a>.</p>');
    51       break;
    51       break;
    52     case 'view':
    52     case 'view':
    53       // echo PageUtils::getpage($paths->page, true, ( (isset($_GET['oldid'])) ? $_GET['oldid'] : false ));
    53       // echo PageUtils::getpage($paths->page, true, ( (isset($_GET['oldid'])) ? $_GET['oldid'] : false ));
    54       $page = new PageProcessor( $paths->cpage['urlname_nons'], $paths->namespace );
    54       $rev_id = ( (isset($_GET['oldid'])) ? intval($_GET['oldid']) : 0 );
       
    55       $page = new PageProcessor( $paths->cpage['urlname_nons'], $paths->namespace, $rev_id );
    55       $page->send_headers = true;
    56       $page->send_headers = true;
    56       $page->send();
    57       $page->send();
    57       break;
    58       break;
    58     case 'comments':
    59     case 'comments':
    59       $template->header();
    60       $template->header();