Subversion Repositories Applications.projet

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 ddelon 1
 
2
 
3
<div class="footer">
4
<?php
5
/* footer.php
6
Copyright (c) 2002, Hendrik Mans <hendrik@mans.de>
7
Copyright 2002, 2003, 2004 David DELON
8
Copyright 2002, 2003 Charles NEPOTE
9
Copyright 2002, 2003  Patrick PAUL
10
Copyright  2003  Eric DELORD
11
All rights reserved.
12
Redistribution and use in source and binary forms, with or without
13
modification, are permitted provided that the following conditions
14
are met:
15
1. Redistributions of source code must retain the above copyright
16
notice, this list of conditions and the following disclaimer.
17
2. Redistributions in binary form must reproduce the above copyright
18
notice, this list of conditions and the following disclaimer in the
19
documentation and/or other materials provided with the distribution.
20
3. The name of the author may not be used to endorse or promote products
21
derived from this software without specific prior written permission.
22
 
23
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
*/
34
echo  $this->FormOpen("", "RechercheTexte", "get");
35
echo  $this->HasAccess("write") ? "<a href=\"".$this->href("edit")."\" title=\"Cliquez pour &eacute;diter cette page.\">&Eacute;diter cette page</a> ::\n" : "";
36
echo  $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Cliquez pour voir les derni&egrave;res modifications sur cette page.\">".$this->GetPageTime()."</a> ::\n" : "";
37
	// if this page exists
38
	if ($this->page)
39
	{
40
		// if owner is current user
41
		if ($this->UserIsOwner())
42
		{
43
			echo
44
			"Propri&eacute;taire&nbsp;: vous :: \n",
45
			"<a href=\"",$this->href("acls")."\" title=\"Cliquez pour &eacute;diter les permissions de cette page.\">&Eacute;diter permissions</a> :: \n",
46
			"<a href=\"",$this->href("deletepage")."\">Supprimer</a> :: \n",
47
			"<a href=\"",$this->href("filemanager")."\">Fichiers &amp; images</a> :: \n";//Gestion de l'action ATTACH
48
		}
49
		else
50
		{
51
			if ($owner = $this->GetPageOwner())
52
			{
53
				echo "Propri&eacute;taire : ",$this->Format($owner);
54
			}
55
			else
56
			{
57
				echo "Pas de propri&eacute;taire ";
58
				echo ($this->GetUser() ? "(<a href=\"".$this->href("claim")."\">Appropriation</a>)" : "");
59
			}
60
			echo " :: \n";
61
		}
62
	}
63
?>
64
<a href="<?php echo $this->href("referrers") ?>" title="Cliquez pour voir les URLs faisant r&eacute;f&eacute;rence &agrave; cette page.">
65
R&eacute;f&eacute;rences</a> ::
66
Recherche : <input name="phrase" size="15" class="searchbox" />
67
<?php echo  $this->FormClose(); ?>
68
</div>
69
 
70
 
71
<div class="copyright">
72
<a href="http://validator.w3.org/check/referer">XHTML 1.0 valide ?</a> ::
73
<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS valide ?</a> ::
74
-- Fonctionne avec <?php echo $this->Link("WikiNi:PagePrincipale", "", "WikiNi ".$this->GetWikiNiVersion()) . "\n"; ?>
75
</div>
76
 
77
 
78
<?php
79
	if ($this->GetConfigValue("debug")=="yes")
80
	{
81
		echo "<span class=\"debug\"><b>Query log :</b><br />\n";
82
		$t_SQL=0;
83
        foreach ($this->queryLog as $query)
84
		{
85
			echo $query["query"]." (".round($query["time"],4).")<br />\n";
86
			$t_SQL = $t_SQL + $query["time"];
87
		}
88
		echo "</span>\n";
89
 
90
		echo "<span class=\"debug\">".round($t_SQL, 4)." s (total SQL time)</span><br />\n";
91
 
92
		list($g2_usec, $g2_sec) = explode(" ",microtime());
93
		define ("t_end", (float)$g2_usec + (float)$g2_sec);
94
		echo "<span class=\"debug\"><b>".round(t_end-t_start, 4)." s (total time)</b></span><br />\n";
95
 
96
		echo "<span class=\"debug\">SQL time represent : ".round((($t_SQL/(t_end-t_start))*100),2)."% of total time</span>\n";
97
	}
98
?>
99
 
100
<?
101
$menu_page=$this->config["menu_page"];
102
if (isset($menu_page) and ($menu_page!="")) echo '</td></tr></table>';
103
?>
104
</body>
105
</html>