aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-02 16:21:15 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-12-02 16:21:15 -0800
commitc29f622b90a58a783787b27736cd9738e6be50c2 (patch)
tree451c3c0858a4e1e13e77552e324ea2d684707cb4
parent25caeee8547df73a7162dc6de30a030fa0bceea8 (diff)
downloadvolse-hubzilla-c29f622b90a58a783787b27736cd9738e6be50c2.tar.gz
volse-hubzilla-c29f622b90a58a783787b27736cd9738e6be50c2.tar.bz2
volse-hubzilla-c29f622b90a58a783787b27736cd9738e6be50c2.zip
introduce STD_VERSION and get_std_version() [in include/plugin.php], we begin with 0.11.1 since it is an incompatible interface change to 0.11.
-rwxr-xr-xboot.php9
-rwxr-xr-xinclude/plugin.php11
-rw-r--r--version.inc2
3 files changed, 17 insertions, 5 deletions
diff --git a/boot.php b/boot.php
index 8d99c300e..38eb5bbf4 100755
--- a/boot.php
+++ b/boot.php
@@ -48,6 +48,7 @@ require_once('include/AccessList.php');
define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'H');
+define ( 'STD_VERSION', '0.11.1' );
define ( 'ZOT_REVISION', 1 );
define ( 'DB_UPDATE_VERSION', 1160 );
@@ -65,10 +66,10 @@ define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
//define ( 'NULL_DATE', '0000-00-00 00:00:00' );
define ( 'TEMPLATE_BUILD_PATH', 'store/[data]/smarty3' );
-define ( 'DIRECTORY_MODE_NORMAL', 0x0000); // This is technically DIRECTORY_MODE_TERTIARY, but it's the default, hence 0x0000
-define ( 'DIRECTORY_MODE_PRIMARY', 0x0001);
-define ( 'DIRECTORY_MODE_SECONDARY', 0x0002);
-define ( 'DIRECTORY_MODE_STANDALONE', 0x0100);
+define ( 'DIRECTORY_MODE_NORMAL', 0x0000); // A directory client
+define ( 'DIRECTORY_MODE_PRIMARY', 0x0001); // There can only be *one* primary directory server in a directory_realm.
+define ( 'DIRECTORY_MODE_SECONDARY', 0x0002); // All other mirror directory servers
+define ( 'DIRECTORY_MODE_STANDALONE', 0x0100); // A detached (off the grid) hub with itself as directory server.
// We will look for upstream directories whenever me make contact
// with other sites, but if this is a new installation and isn't
diff --git a/include/plugin.php b/include/plugin.php
index 8749f3fbf..1d4caac0f 100755
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -616,3 +616,14 @@ function get_markup_template($s, $root = '') {
$template = $t->get_markup_template($s, $root);
return $template;
}
+
+// return the standardised version. Since we can't easily compare
+// before the STD_VERSION definition was applied, we have to treat
+// all prior release versions the same. You can dig through them
+// with other means (such as RED_VERSION) if necessary.
+
+function get_std_version() {
+ if(defined('STD_VERSION'))
+ return STD_VERSION;
+ return '0.0.0';
+}
diff --git a/version.inc b/version.inc
index 9819f1c95..71564ad0d 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2015-12-01.1233
+2015-12-02.1234