Esempio n. 1
0
     * Return the full path name for a PM file.
     */
    static function file($file)
    {
        return elis::component_file('elisprogram', $file);
    }
    /**
     * The base directory for the PM libraries.
     */
    static $libdir;
    /**
     * Return the full path name for a PM library file.
     */
    static function lib($file)
    {
        return elispm::file("lib/{$file}");
    }
    /**
     * The default database object.
     */
    static $db;
}
global $CFG;
elispm::$basedir = elis::file('elisprogram');
elispm::$libdir = elis::component_file('elisprogram', 'lib');
global $DB;
elispm::$db = $DB;
$plugin = new stdClass();
include elispm::file('version.php');
elispm::$version = $plugin->version;
elispm::$release = $plugin->release;