15 |
jpm |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
if (!defined("WIKINI_VERSION"))
|
|
|
4 |
{
|
|
|
5 |
die ("accès direct interdit");
|
|
|
6 |
}
|
|
|
7 |
$plugin_output_new = preg_replace ('/<link.*style>/ms',
|
|
|
8 |
'<!-- STYLE_DEBUT -->
|
|
|
9 |
<link rel="stylesheet" type="text/css" media="screen" href="tools/ppdg_style/wakka.basic.css" />
|
|
|
10 |
<style type="text/css" media="all">
|
|
|
11 |
<!--
|
|
|
12 |
@import url(tools/ppdg_style/'.$imported_style.'.css);
|
|
|
13 |
-->
|
|
|
14 |
</style>
|
|
|
15 |
<!-- STYLE_FIN -->',
|
|
|
16 |
$plugin_output_new);
|
|
|
17 |
|
|
|
18 |
$user = $this->GetUser();
|
|
|
19 |
if ($user) {
|
|
|
20 |
$plugin_output_new = preg_replace ('/<!-- STYLE_FIN -->/',
|
|
|
21 |
'<style type="text/css" media="all"> @import "tools/ppdg_style/wakka.admin.css";</style>
|
|
|
22 |
<!-- STYLE_FIN -->',
|
|
|
23 |
$plugin_output_new);
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
$plugin_output_new = preg_replace ('/<!-- STYLE_FIN -->/',
|
|
|
27 |
'<link rel="stylesheet" type="text/css" media="print" href="tools/ppdg_style/wakka.print.css" />
|
|
|
28 |
<!-- STYLE_FIN -->',
|
|
|
29 |
$plugin_output_new);
|
|
|
30 |
|
|
|
31 |
$plugin_output_new = preg_replace('/<body (onload="[^"]"|).*$/ms',
|
|
|
32 |
'<body $1'.$body_attr.'>
|
|
|
33 |
<!-- ENTETE_DEBUT -->
|
|
|
34 |
<div id="entete">
|
|
|
35 |
<div id="logo">
|
|
|
36 |
<a href="/"><img src="bibliotheque/images/graphisme/logo.jpg" alt="Logo de la Carrière la Pierre du Pont du Gard Authentique."/></a>
|
|
|
37 |
</div>
|
|
|
38 |
<div style="display: none;"><a href="'.$page_addr.'/resetstyle" accesskey="7"></a></div>
|
|
|
39 |
<div id="site_titre">
|
|
|
40 |
<h1>La pierre du pont du gard authentique</h1>
|
|
|
41 |
</div>
|
|
|
42 |
<!-- PAGE_NOM -->
|
|
|
43 |
<!-- RECHERCHE -->
|
|
|
44 |
<!-- COMMUN -->
|
|
|
45 |
<!-- ENTETE_FIN -->
|
|
|
46 |
<!-- NAVIGATION -->
|
|
|
47 |
<!-- ADMIN -->',
|
|
|
48 |
$plugin_output_new);
|
|
|
49 |
|
|
|
50 |
if ($user) {
|
|
|
51 |
$plugin_output_new = preg_replace ('/<!-- PAGE_NOM -->/',
|
|
|
52 |
'<h1 class="page_name">
|
|
|
53 |
<a href="'.$page_search.'">'.$page_name.'</a>
|
|
|
54 |
</h1>',
|
|
|
55 |
$plugin_output_new);
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
$plugin_output_new = preg_replace ('/<!-- RECHERCHE -->/',
|
|
|
59 |
$this->FormOpen('', 'RechercheTexte', 'get').
|
|
|
60 |
'<p id="moteur_recherche">
|
|
|
61 |
<input id="phrase" name="phrase" type="text" size="15" value="Rechercher" onclick="javascrip:this.value=\'\';" />
|
|
|
62 |
<input id="ok" name="ok" type="submit" value="OK" />
|
|
|
63 |
</p>'.
|
|
|
64 |
$this->FormClose(),
|
|
|
65 |
$plugin_output_new);
|
|
|
66 |
|
|
|
67 |
$plugin_output_new = preg_replace ('/<!-- COMMUN -->/',
|
|
|
68 |
'<div id="commun">
|
|
|
69 |
<p>
|
|
|
70 |
<a href="wakka.php?wiki=PlanDuSite">Plan du Site</a>
|
|
|
71 |
<a id="aller_menu" href="#menu">Aller au menu</a>
|
|
|
72 |
<a id="aller_contenu" href="#corps">Aller au contenu</a>
|
|
|
73 |
</p>
|
|
|
74 |
</div>',
|
|
|
75 |
$plugin_output_new);
|
|
|
76 |
|
|
|
77 |
$plugin_output_new = preg_replace ('/<!-- ENTETE_FIN -->/',
|
|
|
78 |
"</div>\n<!-- ENTETE_FIN -->\n",
|
|
|
79 |
$plugin_output_new);
|
|
|
80 |
?>
|