aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2013-12-16 12:51:35 +0100
committermarijus <mario@localhost.localdomain>2013-12-16 12:51:35 +0100
commit5512d6aa1df61e0cdab31a2758d3a865ddfbc280 (patch)
tree1f2d763c495ad5192456d54036eb3dcc8fafb595 /boot.php
parentc3c7a068332ae08aea5eeb8eaf820e34c9cf210b (diff)
parenta7a775a718ef92c9bd623849baab1e386071d70b (diff)
downloadvolse-hubzilla-5512d6aa1df61e0cdab31a2758d3a865ddfbc280.tar.gz
volse-hubzilla-5512d6aa1df61e0cdab31a2758d3a865ddfbc280.tar.bz2
volse-hubzilla-5512d6aa1df61e0cdab31a2758d3a865ddfbc280.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 4134ce3fa..9c0fb8919 100755
--- a/boot.php
+++ b/boot.php
@@ -205,6 +205,7 @@ define ( 'PAGE_DIRECTORY_CHANNEL', 0x0008 ); // system channel used for director
define ( 'PAGE_PREMIUM', 0x0010 );
define ( 'PAGE_ADULT', 0x0020 );
+define ( 'PAGE_SYSTEM', 0x1000 );
define ( 'PAGE_REMOVED', 0x8000 );
@@ -367,6 +368,7 @@ define ( 'XCHAN_FLAGS_HIDDEN', 0x0001);
define ( 'XCHAN_FLAGS_ORPHAN', 0x0002);
define ( 'XCHAN_FLAGS_CENSORED', 0x0004);
define ( 'XCHAN_FLAGS_SELFCENSORED', 0x0008);
+define ( 'XCHAN_FLAGS_SYSTEM', 0x0010);
define ( 'XCHAN_FLAGS_DELETED', 0x1000);
/*
* Traficlights for Administration of HubLoc
@@ -478,8 +480,10 @@ define ( 'ACCOUNT_PENDING', 0x0010 );
* Account roles
*/
-define ( 'ACCOUNT_ROLE_ADMIN', 0x1000 );
define ( 'ACCOUNT_ROLE_ALLOWCODE', 0x0001 );
+define ( 'ACCOUNT_ROLE_SYSTEM', 0x0002 );
+
+define ( 'ACCOUNT_ROLE_ADMIN', 0x1000 );
/**
* Item visibility
@@ -1388,7 +1392,14 @@ function fix_system_urls($oldurl,$newurl) {
dbesc($rr['xchan_hash']),
dbesc($oldurl)
);
-
+
+
+ $z = q("update profile set photo = '%s', thumb = '%s' where uid = %d",
+ dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_l'])),
+ dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_m'])),
+ intval($rr['channel_id'])
+ );
+
proc_run('php', 'include/notifier.php', 'refresh_all', $rr['channel_id']);
}