-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdiff.php
37 lines (33 loc) · 1.18 KB
/
diff.php
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
30
31
32
33
34
35
36
<?php
/**
* CAPTCHA antispam plugin - Image generator
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Andreas Gohr <[email protected]>
*/
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/');
require_once(DOKU_INC.'inc/init.php');
require_once(DOKU_INC.'inc/auth.php');
session_write_close();
require_once(DOKU_INC.'inc/template.php');
require_once(DOKU_INC.'inc/DifferenceEngine.php');
require_once(dirname(__FILE__).'/admin.php');
if(!auth_isadmin()) die('not you my friend!');
$id = cleanID($_REQUEST['id']);
$plugin = new admin_plugin_sync();
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $plugin->getLang('diff')?></title>
<?php tpl_metaheaders()?>
</head>
<body>
<div class="dokuwiki">
<?php $plugin->_diff($id);?>
</div>
</body>