[ Index ]
 

Code source de WikiNi 0.4.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/actions/ -> footer.php (source)

   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          }
  48          else
  49          {
  50              if ($owner = $this->GetPageOwner())
  51              {
  52                  echo "Propri&eacute;taire : ",$this->Format($owner);
  53              }
  54              else
  55              {
  56                  echo "Pas de propri&eacute;taire ";
  57                  echo ($this->GetUser() ? "(<a href=\"".$this->href("claim")."\">Appropriation</a>)" : "");
  58              }
  59              echo " :: \n";
  60          }
  61      }
  62  ?>
  63  <a href="<?php echo $this->href("referrers") ?>" title="Cliquez pour voir les URLs faisant r&eacute;f&eacute;rence &agrave; cette page.">
  64  R&eacute;f&eacute;rences</a> ::
  65  Recherche : <input name="phrase" size="15" class="searchbox" />
  66  <?php echo  $this->FormClose(); ?>
  67  </div>
  68  
  69  
  70  <div class="copyright">
  71  <a href="http://validator.w3.org/check/referer">XHTML 1.0 valide ?</a> ::
  72  <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS valide ?</a> ::
  73  -- Fonctionne avec <?php echo $this->Link("WikiNi:PagePrincipale", "", "WikiNi ".$this->GetWikiNiVersion()) . "\n"; ?>
  74  </div>
  75  
  76  
  77  <?php
  78      if ($this->GetConfigValue("debug")=="yes")
  79      {
  80          echo "<span class=\"debug\"><b>Query log :</b><br />\n";
  81          $t_SQL=0;
  82          foreach ($this->queryLog as $query)
  83          {
  84              echo $query["query"]." (".round($query["time"],4).")<br />\n";
  85              $t_SQL = $t_SQL + $query["time"];
  86          }
  87          echo "</span>\n";
  88  
  89          echo "<span class=\"debug\">".round($t_SQL, 4)." s (total SQL time)</span><br />\n";
  90          
  91          list($g2_usec, $g2_sec) = explode(" ",microtime());
  92          define ("t_end", (float)$g2_usec + (float)$g2_sec);
  93          echo "<span class=\"debug\"><b>".round(t_end-t_start, 4)." s (total time)</b></span><br />\n";
  94  
  95          echo "<span class=\"debug\">SQL time represent : ".round((($t_SQL/(t_end-t_start))*100),2)."% of total time</span>\n";
  96      }
  97  ?> 
  98  
  99  
 100  </body>
 101  </html>


Généré le : Mon Nov 26 12:05:46 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics