1<?php
2/**
3 * CAPTCHA antispam plugin - Image generator
4 *
5 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @author     Andreas Gohr <gohr@cosmocode.de>
7 */
8
9if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/');
10require_once(DOKU_INC.'inc/init.php');
11require_once(DOKU_INC.'inc/auth.php');
12session_write_close();
13require_once(DOKU_INC.'inc/template.php');
14require_once(DOKU_INC.'inc/DifferenceEngine.php');
15require_once(dirname(__FILE__).'/admin.php');
16
17if(!auth_isadmin()) die('not you my friend!');
18
19$id = cleanID($_REQUEST['id']);
20$plugin = new admin_plugin_sync();
21header('Content-Type: text/html; charset=utf-8');
22?>
23<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
24 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
25<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
26 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
27<head>
28  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
29  <title><?php echo $plugin->getLang('diff')?></title>
30  <?php tpl_metaheaders()?>
31</head>
32<body>
33    <div class="dokuwiki">
34    <?php $plugin->_diff($id);?>
35    </div>
36</body>
37
38