blob: 72bc2bf5a9fb95a459ad1883d1f7a42b88ae1bbd (
plain)
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
|
<?php
class DTImportarPerfil extends SpecialPage {
/**
* Constructor
*/
public function __construct( $name='ImportarPerfil' ) {
parent::__construct( $name );
}
public function doesWrites() {
return true;
}
function execute( $query ) {
$this->setHeaders();
global $wgUser;
$currentuser = $wgUser->getName();
exec('php /srv/reevo-2020/bin/wiki/ImportarPerfil/ImportarPerfil.php -f true -u '.$currentuser);
$text = wfMessage( 'importarperfil-msg', $currentuser);
$this->getOutput()->addHTML( $text );
}
}
|