* @author Riccardo Govoni */ // must be run from within DokuWiki if (!defined('DOKU_INC')) die(); /* Creates the URL of the current page, used for Digg, delicious and google bookmarks */ function selfURL() { $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); } // verify if the given action is enabled function is_action_enabled($type) { $ctype = $type; if($type == 'history') $ctype='revisions'; return actionOK($ctype); } // changes the display style of the given action group, depending on the config file function action_group_status($groupname) { if (tpl_getConf('btl_default_' . $groupname . '_actions_status') == "closed") { echo " style='display:none;'" ; } } // include functions that provide sidebar functionality @require_once(dirname(__FILE__).'/tplfn_sidebar.php'); // include translations of the template strings @require_once(dirname(__FILE__).'/lang/'.tpl_getConf('btl_language').'/settings.php'); ?> <?php tpl_pagetitle()?> [<?php echo strip_tags($conf['title'])?>]