diff options
Diffstat (limited to 'mod/admin.php')
-rw-r--r-- | mod/admin.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/admin.php b/mod/admin.php index 749b94de2..33b42d264 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -457,6 +457,29 @@ function admin_page_site(&$a) { } function admin_page_hubloc_post(&$a){ check_form_security_token_redirectOnErr('/admin/hubloc', 'admin_hubloc'); + + //prepare for ping + logger('POST input: '. print_r($_POST,true), LOGGER_DEBUG); + + if ( $_POST['hublocid']) { + $hublocid = $_POST['hublocid']; + logger('hublocid is not empty: ' . $hublocid , LOGGER_DEBUG); + $hublocurl = q("SELECT hubloc_url FROM hubloc WHERE hubloc_id = %d ", + intval($hublocid) + ); + logger('hubloc_url : ' . print_r($hublocurl, true) , LOGGER_DEBUG); + } + + //if ( $_POST'' == "check" ) { + // //todo + //} + + //perform ping + //handle results and set the hubloc flags in db to make results visible + + //in case of repair store new pub key for tested hubloc (all channel with this hubloc) in db + //after repair set hubloc flags to 0 + goaway($a->get_baseurl(true) . '/admin/hubloc' ); return; } |