home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
groupoffice-com-2.01
/
modules
/
wiki
/
action
/
edit.php
< prev
next >
Wrap
PHP Script
|
2004-03-08
|
720b
|
33 lines
<?php
// $Id: edit.php,v 1.1 2004/01/12 22:14:04 comsubvie Exp $
require('parse/html.php');
require(TemplateDir . '/edit.php');
// Edit a page (possibly an archive version).
function action_edit()
{
global $page, $pagestore, $ParseEngine, $version;
$pg = $pagestore->page($page);
$pg->read();
if(!$pg->mutable)
{ die(ACTION_ErrorPageLocked); }
$archive = 0;
if($version != '')
{
$pg->version = $version;
$pg->read();
$archive = 1;
}
template_edit(array('page' => $page,
'text' => $pg->text,
'timestamp' => $pg->time,
'nextver' => $pg->version + 1,
'archive' => $archive));
}
?>