-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLabNotebook_body.php
More file actions
29 lines (25 loc) · 896 Bytes
/
LabNotebook_body.php
File metadata and controls
29 lines (25 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
if (!defined('MEDIAWIKI')) { exit; }
$wgExtensionCredits['specialpage'][] = array(
'path' => __FILE__,
'name' => 'LabNotebook',
'version' => '0.3',
'author' => array('Yardena Cohen','Bill Flanagan'),
'url' => 'https://openwetware.org/',
'descriptionmsg' => "labnotebook-desc",
'license-name' => 'GPL3'
);
class NewNotebook extends SpecialPage {
function __construct() {
parent::__construct( 'NewNotebook' );
}
function execute( $par ) {
$request = $this->getRequest();
$output = $this->getOutput();
$this->setHeaders();
$param = $request->getText( 'param' ); # Get request data from, e.g.
$output->addModules( 'ext.LabNotebook.oneclick' );
$output->addHTML(file_get_contents(__DIR__.'/includes/create.html'));
$output->addWikiTextAsContent('[[category:OWWLabNotebookV1]]');
}
}