aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-24 22:23:17 -0700
committerfriendica <info@friendica.com>2012-06-24 22:23:17 -0700
commitad6c82bdea11e4c35284e18608f78ad4c355405d (patch)
tree7a22b5eaea49ac5e20da2493f0d6ce388f949300 /include/plugin.php
parentc464bc494c51bd871c2cf01a441ea2c4f8defc65 (diff)
downloadvolse-hubzilla-ad6c82bdea11e4c35284e18608f78ad4c355405d.tar.gz
volse-hubzilla-ad6c82bdea11e4c35284e18608f78ad4c355405d.tar.bz2
volse-hubzilla-ad6c82bdea11e4c35284e18608f78ad4c355405d.zip
implement "follow" service limits
Diffstat (limited to 'include/plugin.php')
-rw-r--r--include/plugin.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/plugin.php b/include/plugin.php
index 3b6faa072..89715485e 100644
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -353,4 +353,17 @@ function service_class_allows($uid,$property,$usage = false) {
return true;
return (((intval($usage)) < intval($arr[$property])) ? true : false);
}
-} \ No newline at end of file
+}
+
+function upgrade_link() {
+ $l = get_config('service_class','upgrade_link');
+ $t = sprintf('<a href="%s">' . t('Click here to upgrade.') . '</div>', $l);
+ if($l)
+ return $t;
+ return '';
+}
+
+function upgrade_message() {
+ $x = upgrade_link();
+ return t('This action exceeds the limits set by your subscription plan.') . (($x) ? ' ' . $x : '') ;
+}