Пример #1
0
/**
 * Get the repository version from the GIT hash or SVN revision
 *
 * @return int Revision number
 */
function getReposVersion()
{
    $gitDir = FLUX_ROOT . '/.git';
    $svnDir = FLUX_ROOT . '/.svn';
    if (is_dir($gitDir)) {
        return git_hash();
    } else {
        if (is_dir($svnDir)) {
            return svn_version();
        }
    }
}
Пример #2
0
<?php

require_once 'Flux/Config.php';
require_once 'Flux/Error.php';
require_once 'Flux/Connection.php';
require_once 'Flux/LoginServer.php';
require_once 'Flux/CharServer.php';
require_once 'Flux/MapServer.php';
require_once 'Flux/Athena.php';
require_once 'Flux/LoginAthenaGroup.php';
require_once 'Flux/Addon.php';
require_once 'functions/svn_version.php';
// Get the SVN revision of the top-level directory (FLUX_ROOT).
define('FLUX_SVNVERSION', svn_version());
/**
 * The Flux class contains methods related to the application on the larger
 * scale. For the most part, it handles application initialization such as
 * parsing the configuration files and whatnot.
 */
class Flux
{
    /**
     * Current version.
     */
    const VERSION = '1.0.0';
    /**
     * Top-level revision.
     */
    const SVNVERSION = FLUX_SVNVERSION;
    /**
     * Application-specific configuration object.