[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/includes/ -> version.php (source)

   1  <?php
   2  /**
   3  * @version $Id: version.php 8141 2007-07-21 09:18:29Z rmuilwijk $
   4  * @package Joomla
   5  * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
   6  * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
   7  * Joomla! is free software. This version may have been modified pursuant
   8  * to the GNU General Public License, and as distributed it includes or
   9  * is derivative of works licensed under the GNU General Public License or
  10  * other free or open source software licenses.
  11  * See COPYRIGHT.php for copyright notices and details.
  12  */
  13  
  14  // no direct access
  15  defined( '_VALID_MOS' ) or die( 'Restricted access' );
  16  
  17  /**
  18   * Version information
  19   * @package Joomla
  20   */
  21  class joomlaVersion {
  22      /** @var string Product */
  23      var $PRODUCT     = 'Joomla!';
  24      /** @var int Main Release Level */
  25      var $RELEASE     = '1.0';
  26      /** @var string Development Status */
  27      var $DEV_STATUS = 'Stable';
  28      /** @var int Sub Release Level */
  29      var $DEV_LEVEL     = '13';
  30      /** @var int build Number */
  31      var $BUILD         = '$Revision: 8141 $';
  32      /** @var string Codename */
  33      var $CODENAME     = 'Sunglow';
  34      /** @var string Date */
  35      var $RELDATE     = '21 July 2007';
  36      /** @var string Time */
  37      var $RELTIME     = '16:00';
  38      /** @var string Timezone */
  39      var $RELTZ         = 'UTC';
  40      /** @var string Copyright Text */
  41      var $COPYRIGHT     = "Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.";
  42      /** @var string URL */
  43      var $URL         = '<a href="http://www.joomla.org">Joomla!</a> is Free Software released under the GNU/GPL License.';
  44      /** @var string Whether site is a production = 1 or demo site = 0: 1 is default */
  45      var $SITE         = 1;
  46      /** @var string Whether site has restricted functionality mostly used for demo sites: 0 is default */
  47      var $RESTRICT    = 0;
  48      /** @var string Whether site is still in development phase (disables checks for /installation folder) - should be set to 0 for package release: 0 is default */
  49      var $SVN        = 0;
  50  
  51  
  52      /**
  53       * @return string Long format version
  54       */
  55  	function getLongVersion() {
  56          return $this->PRODUCT .' '. $this->RELEASE .'.'. $this->DEV_LEVEL .' '
  57              . $this->DEV_STATUS
  58              .' [ '.$this->CODENAME .' ] '. $this->RELDATE .' '
  59              . $this->RELTIME .' '. $this->RELTZ;
  60      }
  61  
  62      /**
  63       * @return string Short version format
  64       */
  65  	function getShortVersion() {
  66          return $this->RELEASE .'.'. $this->DEV_LEVEL;
  67      }
  68  
  69      /**
  70       * @return string Version suffix for help files
  71       */
  72  	function getHelpVersion() {
  73          if ($this->RELEASE > '1.0') {
  74              return '.' . str_replace( '.', '', $this->RELEASE );
  75          } else {
  76              return '';
  77          }
  78      }
  79  }
  80  $_VERSION = new joomlaVersion();
  81  
  82  $version = $_VERSION->PRODUCT .' '. $_VERSION->RELEASE .'.'. $_VERSION->DEV_LEVEL .' '
  83  . $_VERSION->DEV_STATUS
  84  .' [ '.$_VERSION->CODENAME .' ] '. $_VERSION->RELDATE .' '
  85  . $_VERSION->RELTIME .' '. $_VERSION->RELTZ;
  86  ?>


Généré le : Wed Nov 21 14:43:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics