aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-18 00:44:42 -0700
committerfriendica <info@friendica.com>2014-05-18 00:44:42 -0700
commit070e7cc376ec6465d61a63aa4954969cf9cb9e6e (patch)
treebab835e5c02bbddc617a24cf6551b05c221d8f99
parent29e6f51ab8a12c222a131443066d19c913f94a08 (diff)
downloadvolse-hubzilla-070e7cc376ec6465d61a63aa4954969cf9cb9e6e.tar.gz
volse-hubzilla-070e7cc376ec6465d61a63aa4954969cf9cb9e6e.tar.bz2
volse-hubzilla-070e7cc376ec6465d61a63aa4954969cf9cb9e6e.zip
more app infrastructure
-rw-r--r--include/apps.php53
-rw-r--r--version.inc2
2 files changed, 50 insertions, 5 deletions
diff --git a/include/apps.php b/include/apps.php
index 181079f2f..58af045f1 100644
--- a/include/apps.php
+++ b/include/apps.php
@@ -104,12 +104,57 @@ function parse_app_description($f) {
function translate_system_apps(&$arr) {
- $apps = array( 'Matrix' => t('Matrix'), 'Channel Home' => t('Channel Home'), 'Profile' => t('Profile'),
- 'Photos' => t('Photos'), 'Events' => t('Events'), 'Directory' => t('Directory'), 'Help' => t('Help')
-
+ $apps = array( 'Matrix' => t('Matrix'),
+ 'Channel Home' => t('Channel Home'),
+ 'Profile' => t('Profile'),
+ 'Photos' => t('Photos'),
+ 'Events' => t('Events'),
+ 'Directory' => t('Directory'),
+ 'Help' => t('Help')
);
if(array_key_exists($arr['name'],$apps))
$arr['name'] = $apps[$arr['name']];
-} \ No newline at end of file
+}
+
+function app_render($app) {
+
+
+
+
+
+}
+
+
+function app_install($uid,$app) {
+
+
+
+}
+
+
+function app_installed($uid,$app) {
+
+ $r = q("select id from app where app_id = '%s' and app_version = '%s' and app_channel = %d limit 1",
+ dbesc((array_key_exists('guid',$app)) ? $app['guid'] : ''),
+ dbesc((array_key_exists('version',$app)) ? $app['version'] : ''),
+ intval($uid)
+ );
+ return(($r) ? true : false);
+
+}
+
+
+function app_list($uid) {
+ $r = q("select * from app where app_channel = %d order by app_name asc",
+ intval($uid)
+ );
+ return($r);
+}
+
+
+function app_decode($s) {
+ $x = base64_decode($s);
+ return json_decode($x,true);
+}
diff --git a/version.inc b/version.inc
index 3f746cef1..934b9cd3c 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2014-05-17.678
+2014-05-18.679