summaryrefslogtreecommitdiff
path: root/lib/tpl
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-09-09 11:36:03 +0200
committerchris <chris@jalakai.co.uk>2006-09-09 11:36:03 +0200
commitc6ea345da89cfdb4479d7e472e4dcfab8547ff2c (patch)
tree4a8a94376fa344840923bc6c4eeccc778ad745a1 /lib/tpl
parent78ba70a7d736de2f87cfe1b3e9a4022d65977d57 (diff)
downloadrpg-c6ea345da89cfdb4479d7e472e4dcfab8547ff2c.tar.gz
rpg-c6ea345da89cfdb4479d7e472e4dcfab8547ff2c.tar.bz2
minor update to default template
- main.php & detail.php add check for being run by DokuWiki, die() if not. darcs-hash:20060909093603-9b6ab-0f8e31e246adba8adc888dbba1f924ff0e455d63.gz
Diffstat (limited to 'lib/tpl')
-rw-r--r--lib/tpl/default/detail.php8
-rw-r--r--lib/tpl/default/main.php8
2 files changed, 12 insertions, 4 deletions
diff --git a/lib/tpl/default/detail.php b/lib/tpl/default/detail.php
index 2330e2005..d62031fb8 100644
--- a/lib/tpl/default/detail.php
+++ b/lib/tpl/default/detail.php
@@ -1,5 +1,3 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
/**
* DokuWiki Image Detail Template
@@ -12,7 +10,13 @@
* @link http://wiki.splitbrain.org/wiki:tpl:templates
* @author Andreas Gohr <andi@splitbrain.org>
*/
+
+// must be run from within DokuWiki
+if (!defined('DOKU_INC')) die();
+
?>
+<!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="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
diff --git a/lib/tpl/default/main.php b/lib/tpl/default/main.php
index c7364f6a6..ca48aff56 100644
--- a/lib/tpl/default/main.php
+++ b/lib/tpl/default/main.php
@@ -1,5 +1,3 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
/**
* DokuWiki Default Template
@@ -13,7 +11,13 @@
* @link http://wiki.splitbrain.org/wiki:tpl:templates
* @author Andreas Gohr <andi@splitbrain.org>
*/
+
+// must be run from within DokuWiki
+if (!defined('DOKU_INC')) die();
+
?>
+<!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>