1<?php
2/**
3 * Template Functions
4 *
5 * This file provides template specific custom functions that are
6 * not provided by the DokuWiki core.
7 * It is common practice to start each function with an underscore
8 * to make sure it won't interfere with future core functions.
9 */
10
11// must be run from within DokuWiki
12if (!defined('DOKU_INC')) die();
13
14set_include_path(__DIR__);
15include_once(__DIR__ .'/classes/kiwiki_page_menu.php');
16include_once(__DIR__ .'/classes/kiwiki_edit.php');
17include_once(__DIR__ .'/classes/kiwiki_edit_icon.php');
18include_once(__DIR__ .'/classes/kiwiki_go.php');
19include_once(__DIR__ .'/classes/kiwiki_go_bottom.php');
20require_once(__DIR__ .'/classes/kiwiki_functions.php');
21
22$https = isset($_SERVER['HTTPS']) ? "https://" : "http://";
23define( 'KIWIKI_IMAGES_URL', $https . $_SERVER["SERVER_NAME"] . "/lib/tpl/kiwiki/images/");
24define( 'KIWIKI_IMAGES_PATH', __DIR__ . "/images/");
25