2013-06-12 17:15:08 +04:00
|
|
|
<?php
|
|
|
|
|
2013-06-12 18:33:09 +04:00
|
|
|
/**
|
|
|
|
* Default strings and values which differ between the enterprise and the
|
|
|
|
* community edition. Use the get methods to always get the right strings.
|
|
|
|
*/
|
|
|
|
|
2013-06-12 17:15:08 +04:00
|
|
|
class OC_Defaults {
|
|
|
|
|
|
|
|
private static $communityEntity = "ownCloud";
|
|
|
|
private static $communityName = "ownCloud";
|
|
|
|
private static $communityBaseUrl = "http://owncloud.org";
|
2013-06-12 17:44:11 +04:00
|
|
|
private static $communitySyncClientUrl = " http://owncloud.org/sync-clients/";
|
2013-06-12 18:19:28 +04:00
|
|
|
private static $communityDocBaseUrl = "http://doc.owncloud.org";
|
2013-06-12 17:15:08 +04:00
|
|
|
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";
|
2013-06-12 18:19:28 +04:00
|
|
|
private static $enterpriseDocBaseUrl = "http://doc.owncloud.com";
|
2013-06-12 17:44:11 +04:00
|
|
|
private static $enterpiseSyncClientUrl = "https://owncloud.com/products/desktop-clients";
|
2013-06-12 17:15:08 +04:00
|
|
|
private static $enterpriseSlogan = "Your Cloud, Your Data, Your Way!";
|
|
|
|
|
|
|
|
|
|
|
|
public static function getBaseUrl() {
|
|
|
|
if (OC_Util::getEditionString() === '') {
|
|
|
|
return self::$communityBaseUrl;
|
|
|
|
} else {
|
|
|
|
return self::$enterpriseBaseUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-12 17:44:11 +04:00
|
|
|
public static function getSyncClientUrl() {
|
|
|
|
if (OC_Util::getEditionString() === '') {
|
|
|
|
return self::$communitySyncClientUrl;
|
|
|
|
} else {
|
|
|
|
return self::$enterpiseSyncClientUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-12 18:19:28 +04:00
|
|
|
public static function getDocBaseUrl() {
|
|
|
|
if (OC_Util::getEditionString() === '') {
|
|
|
|
return self::$communityDocBaseUrl;
|
|
|
|
} else {
|
|
|
|
return self::$enterpriseDocBaseUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-12 17:15:08 +04:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|