aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-01 15:51:45 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-01 15:51:45 -0800
commitb62614bbd48151837e29ab56a53e683d2f4dcb01 (patch)
tree0766bf0e7d27fb0a4ca7603e7447f4afbd2b1799 /mod
parenta8cdbd44e8ab393cf24f2f36746c3382c1e63327 (diff)
downloadvolse-hubzilla-b62614bbd48151837e29ab56a53e683d2f4dcb01.tar.gz
volse-hubzilla-b62614bbd48151837e29ab56a53e683d2f4dcb01.tar.bz2
volse-hubzilla-b62614bbd48151837e29ab56a53e683d2f4dcb01.zip
improve /locs page with some field notes and the ability to do a forced sync
Diffstat (limited to 'mod')
-rw-r--r--mod/locs.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/locs.php b/mod/locs.php
index 3c6a5da67..9f66e3263 100644
--- a/mod/locs.php
+++ b/mod/locs.php
@@ -35,6 +35,7 @@ function locs_post(&$a) {
}
}
+
if($_REQUEST['drop']) {
$hubloc_id = intval($_REQUEST['drop']);
@@ -85,6 +86,13 @@ function locs_content(&$a) {
$channel = $a->get_channel();
+ if($_REQUEST['sync']) {
+ proc_run('php','include/notifier.php','location',$channel['channel_id']);
+ info( t('Syncing locations') . EOL);
+ goaway(z_root() . '/locs');
+ }
+
+
$r = q("select * from hubloc where hubloc_hash = '%s'",
dbesc($channel['channel_hash'])
);
@@ -106,6 +114,10 @@ function locs_content(&$a) {
'$mkprm' => t('Primary Location'),
'$drop' => t('Drop location'),
'$submit' => t('Submit'),
+ '$sync' => t('Sync now'),
+ '$sync_text' => t('Please wait several minutes between consecutive operations.'),
+ '$drop_text' => t('When possible, drop a location by logging into that website/hub and removing your channel.'),
+ '$last_resort' => t('Use this form to drop the location if the hub is no longer operating.'),
'$hubs' => $r
));