[ Index ]
 

Code source de IMP H3 (4.1.5)

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/config/ -> motd.php.dist (source)

   1  <!-- This file contains any "Message Of The Day" Type information -->
   2  <!-- It will be included below the log-in form on the login page. -->
   3  
   4  <?php
   5  /**
   6   * $Horde: imp/config/motd.php.dist,v 1.8.6.2 2005/10/18 12:13:29 jan Exp $
   7   *
   8   * Example code for switching between HTTP and HTTPS.
   9   * Contributed by: James <james@james-web.net>
  10   * To use, unncomment and modify these variables:
  11   *
  12   * $SERVER_SSL_PORT - Port on which your SSL server listens (Usually 443)
  13   * $SERVER_HTTP_PORT - Port on which your HTTP server listens (Usually 80)
  14   * $SERVER_SSL_URL - Full URL to your HTTPS server and Horde directory
  15   * $SERVER_HTTP_URL - Full URL to your HTTP server and Horde directory
  16   */
  17  
  18  // $SERVER_SSL_PORT = 443;
  19  // $SERVER_HTTP_PORT = 80;
  20  // $SERVER_SSL_URL = 'https://www.example.com';
  21  // $SERVER_HTTP_URL = 'http://www.example.com';
  22  // 
  23  // $port = $_SERVER['SERVER_PORT'];
  24  // 
  25  // echo '<br /><div align="center" class="light">';
  26  // 
  27  // switch ($port) {
  28  //     case $SERVER_SSL_PORT:
  29  //         echo _("You are currently using Secure HTTPS<br />");
  30  //         break;
  31  // 
  32  //     case $SERVER_HTTP_PORT:
  33  //         echo _("You are currently using Standard HTTP<br />");
  34  //         break;
  35  // }
  36  // 
  37  // echo '<a class="small" href="' . $SERVER_HTTP_URL . '" target="_parent">' . _("Click here for Standard HTTP") . '</a> - <a class="small" href="' . $SERVER_SSL_URL . '" target="_parent">' . _("Click here for Secure HTTPS") . '</a></div>';
  38  
  39  ?>
  40  <br />
  41  <table width="100%"><tr><td align="center"><?php echo Horde::img('horde-power1.png', _("Powered by Horde"), '', $registry->getImageDir('horde')) ?></td></tr></table>


Généré le : Thu Nov 29 12:30:07 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics