diff options
author | Simon Rettberg | 2017-10-11 13:19:19 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-10-11 13:19:19 +0200 |
commit | df6fdbdb110ea28de4f5b9f540e01313ec217407 (patch) | |
tree | 9ea97c240fb2e154a90a1e6d191885a1bad9ebb2 /modules-available/dnbd3/inc/dnbd3.inc.php | |
parent | [dnbd3] More progress, manage location restrictions for proxies (diff) | |
download | slx-admin-df6fdbdb110ea28de4f5b9f540e01313ec217407.tar.gz slx-admin-df6fdbdb110ea28de4f5b9f540e01313ec217407.tar.xz slx-admin-df6fdbdb110ea28de4f5b9f540e01313ec217407.zip |
[dnbd3] Fix CIDR generation for proxies, add baseconfig hook for clients
Diffstat (limited to 'modules-available/dnbd3/inc/dnbd3.inc.php')
-rw-r--r-- | modules-available/dnbd3/inc/dnbd3.inc.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules-available/dnbd3/inc/dnbd3.inc.php b/modules-available/dnbd3/inc/dnbd3.inc.php new file mode 100644 index 00000000..905bdc68 --- /dev/null +++ b/modules-available/dnbd3/inc/dnbd3.inc.php @@ -0,0 +1,17 @@ +<?php + +class Dnbd3 { + + const PROP_ENABLED = 'dnbd3.enabled'; + + public static function isEnabled() + { + return Property::get(self::PROP_ENABLED, 0) ? true : false; + } + + public static function setEnabled($bool) + { + Property::set(self::PROP_ENABLED, $bool ? 1 : 0); + } + +}
\ No newline at end of file |