aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/identity.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index 7e42e33a8..8f8a71fee 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -58,6 +58,14 @@ function create_dir_account() {
}
+function channel_total() {
+ $r = q("select channel_id from channel where true");
+ if(is_array($r))
+ return count($r);
+ return false;
+}
+
+
// Required: name, nickname, account_id