summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-06-12 15:15:08 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-06-12 15:15:08 +0200
commitb29e01d5cf4b1d149373e4b70e83510d7e7cd50f (patch)
treeb1041186b97b317f7ab9c03e4f7b0c236aca3de6 /lib
parent918906f04287f12e10c812f719d205a0f2cd6a7b (diff)
downloadnextcloud-server-b29e01d5cf4b1d149373e4b70e83510d7e7cd50f.tar.gz
nextcloud-server-b29e01d5cf4b1d149373e4b70e83510d7e7cd50f.zip
keep all strings in one place to make it easier to change them
Diffstat (limited to 'lib')
-rw-r--r--lib/defaults.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/lib/defaults.php b/lib/defaults.php
new file mode 100644
index 00000000000..59f8d976fe9
--- /dev/null
+++ b/lib/defaults.php
@@ -0,0 +1,49 @@
+<?php
+
+class OC_Defaults {
+
+ private static $communityEntity = "ownCloud";
+ private static $communityName = "ownCloud";
+ private static $communityBaseUrl = "http://owncloud.org";
+ private static $communitySlogan = "web services under your control";
+
+ private static $enterpriseEntity = "ownCloud Inc.";
+ private static $enterpriseName = "ownCloud Enterprise Edition";
+ private static $enterpriseBaseUrl = "https://owncloud.com";
+ private static $enterpriseSlogan = "Your Cloud, Your Data, Your Way!";
+
+
+ public static function getBaseUrl() {
+ if (OC_Util::getEditionString() === '') {
+ return self::$communityBaseUrl;
+ } else {
+ return self::$enterpriseBaseUrl;
+ }
+ }
+
+ public static function getName() {
+ if (OC_Util::getEditionString() === '') {
+ return self::$communityName;
+ } else {
+ return self::$enterpriseName;
+ }
+ }
+
+ public static function getEntity() {
+ if (OC_Util::getEditionString() === '') {
+ return self::$communityEntity;
+ } else {
+ return self::$enterpriseEntity;
+ }
+ }
+
+ public static function getSlogan() {
+ $l = OC_L10N::get('core');
+ if (OC_Util::getEditionString() === '') {
+ return $l->t(self::$communitySlogan);
+ } else {
+ return self::$enterpriseSlogan;
+ }
+ }
+
+} \ No newline at end of file