/
main.php
124 lines (105 loc) · 4.91 KB
/
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
// must be run from within DokuWiki
$monobook;
if (!defined('DOKU_INC')) die();
if (file_exists(DOKU_PLUGIN.'displaywikipage/code.php')) include_once(DOKU_PLUGIN.'displaywikipage/code.php');
if (isset($DOKU_TPL)==FALSE) $DOKU_TPL = DOKU_TPL; if (isset($DOKU_TPLINC)==FALSE) $DOKU_TPLINC = DOKU_TPLINC;
if (file_exists(DOKU_PLUGIN.'displaywikipage/code.php')) include_once(DOKU_PLUGIN.'displaywikipage/code.php');
if (file_exists(DOKU_PLUGIN.'referrers/code.php')) include_once(DOKU_PLUGIN.'referrers/code.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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']?>">
<!--##################################################HTML HEADER-->
<head>
<?php
if (function_exists('re_log_referrers')) re_log_referrers();
@include (dirname(__FILE__).'/string_fn.php');
@include(dirname(__FILE__).'/user/pref.php');
@include(dirname(__FILE__).'/context.php');
/*make page title*/
echo '<title>'; tpl_pagetitle(); echo ' - ' . strip_tags($conf['title']) . "</title>\n";
//Add meta headers
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
tpl_metaheaders();
//add a page icon
echo '<link rel="shortcut icon" href="<' . DOKU_TPL . 'images/favicon.ico" />' . "\n";
//add googleanalytics support
if (function_exists('ga_google_analytics_code')) ga_google_analytics_code();
if (file_exists(DOKU_PLUGIN.'googleanalytics/code.php')) include_once(DOKU_PLUGIN.'googleanalytics/code.php');
if (function_exists('ga_google_analytics_code')) ga_google_analytics_code();
//don't show edit buttons if user is not logged in
if ($conf['useacl'] ) {
if(! $_SERVER['REMOTE_USER']) {
echo '<style type="text/css">';
echo '<!--';
echo '.secedit {display:none;}';
echo '-->';
echo '</style>';
}
}
?>
</head>
<body>
<div id="pagewidth" >
<div id="header" >
<div id="headerLinks" class="horizontalNavigation">
<ul >
<li ><?php tpl_pagelink($myDefaultPageAbout); ?> </li>
<li ><?php tpl_actionlink('index'); ?></li>
<li ><?php tpl_actionlink('login'); ?></li>
<li ><?php tpl_actionlink('subscription'); ?> </li>
<li ><?php tpl_actionlink('admin'); ?> </li>
<li ><?php tpl_actionlink('profile'); ?> </li>
</ul>
</div>
<div class="headerPagename">
[[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true))?>]]
</div>
<div class="headerLogo">
<?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>
</div>
<div class="clearfix"> </div>
</div>
<div id="wrapper" class="clearfix" >
<div id="twocols" class="clearfix">
<div id="maincol" >
<!-- start content -->
<?php html_msgarea()?>
<?php if ($conf['breadcrumbs']) { ?><div id="catlinks"><p class="catlinks"><?php tpl_breadcrumbs(); ?></p></div><?php } ?>
<div id="qsearch__out" class="ajax_qsearch JSpopup"></div>
<?php if ($_REQUEST['mbdo'] == 'cite')
@include(dirname(__FILE__).'/do_cite.php');
else if ($_REQUEST['mbdo'] == 'detail')
@include(dirname(__FILE__).'/do_detail.php');
else if ($_REQUEST['mbdo'] == 'media')
@include(dirname(__FILE__).'/do_media.php');
else
tpl_content();
?>
<br/>
<?php if ($conf['youarehere']) { ?><div id="catlinks"><p class="catlinks"><?php tpl_youarehere(); ?></p></div><?php } ?>
<!-- end content -->
</div>
<div id="rightcol" >
<h2>Edit</h2>
<?php writeMBPortlet($monobook['content_actions'], 'p-cactions', $lang['monobook_bar_views'], 'ca', '1'); ?>
</div>
</div>
<div id="leftcol" >
<?php writeMBPortlet($monobook['navigation'], 'p-x-navigation', $lang['monobook_bar_navigation'], 'n'); ?>
<?php writeMBPortlet($monobook['personal'], 'p-personal', $lang['monobook_bar_personnaltools'], 'pt'); ?>
</div>
</div>
<div id="footer" class="horizontalNavigation">
<ul id="footer-list">
<li id="lastmod"><?php tpl_pageinfo()?></li>
<li id="usermod"><?php tpl_userinfo()?><br />
</li>
</ul>
</div>
</div>
<?php flush()?>
<!--some cleanup for dokuwiki indexer-->
<a href="<?php echo DOKU_BASE.DOKU_SCRIPT;?>?do=recent" accesskey="r" style="visibility:hidden;" rel="nofollow"> </a> <?php tpl_indexerWebBug(); ?>
</body>
</html>