From b5676fcfd98983fbf5a24ab62d55800347367c98 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sat, 24 Jan 2009 19:40:33 +0100 Subject: adjusted and moved style.ini viewer to represent style.ini of current template (not just default template) darcs-hash:20090124184033-f7d6d-b8d5aab351089866fecbb07f3fb3516f753bb077.gz --- lib/tpl/default/index.php | 53 ------------------------------------ lib/tpl/index.html | 12 --------- lib/tpl/index.php | 68 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 65 deletions(-) delete mode 100644 lib/tpl/default/index.php delete mode 100644 lib/tpl/index.html create mode 100644 lib/tpl/index.php (limited to 'lib/tpl') diff --git a/lib/tpl/default/index.php b/lib/tpl/default/index.php deleted file mode 100644 index d9d850bd9..000000000 --- a/lib/tpl/default/index.php +++ /dev/null @@ -1,53 +0,0 @@ - - */ -?> - - - - - Template Replacements - - - -'; -foreach($ini['replacements'] as $key => $val){ - echo ''; - echo ''.htmlspecialchars($key).''; - echo ''.htmlspecialchars($val).''; - echo ''; - if(preg_match('/^#[0-f]{3,6}$/i',$val)){ - echo '
'; - } - echo ''; - echo ''; -} -echo ''; -?> - - diff --git a/lib/tpl/index.html b/lib/tpl/index.html deleted file mode 100644 index d614603ac..000000000 --- a/lib/tpl/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - -nothing here... - - - - - diff --git a/lib/tpl/index.php b/lib/tpl/index.php new file mode 100644 index 000000000..a55081738 --- /dev/null +++ b/lib/tpl/index.php @@ -0,0 +1,68 @@ + + * @author Anika Henke + */ +?> + + + + + Template Replacements + + + +'; + echo "".htmlspecialchars($conf['template'])."'s style.ini"; + foreach($ini['replacements'] as $key => $val){ + echo ''; + echo ''.htmlspecialchars($key).''; + echo ''.htmlspecialchars($val).''; + echo ''; + if(preg_match('/^#[0-f]{3,6}$/i',$val)){ + echo '
 
'; + } + echo ''; + echo ''; + } + echo ''; +} else { + echo "

Non-existent template: ".htmlspecialchars($conf['template'])."

"; +} +?> + + -- cgit v1.2.3