]> git.mxchange.org Git - friendica.git/commitdiff
added diagnostics tools to the admin side panel
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 2 Feb 2015 17:26:38 +0000 (18:26 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 2 Feb 2015 17:26:38 +0000 (18:26 +0100)
mod/admin.php
view/templates/admin_aside.tpl

index bf74d3ef3c64f67853ba54de37de80a9f06e8920..4f27b6e6a61cdacae368c396f211e6e3acb06240 100644 (file)
@@ -121,6 +121,8 @@ function admin_content(&$a) {
        }
 
        $aside['logs'] = Array($a->get_baseurl(true)."/admin/logs/", t("Logs"), "logs");
+       $aside['diagnostics_probe'] = Array($a->get_baseurl(true).'/probe/', 'probe addresse', 'probe');
+       $aside['diagnostics_webfinger'] = Array($a->get_baseurl(true).'/webfinger/', 'check webfinger', 'webfinger');
 
        $t = get_markup_template("admin_aside.tpl");
        $a->page['aside'] .= replace_macros( $t, array(
@@ -128,6 +130,7 @@ function admin_content(&$a) {
                        '$admtxt' => t('Admin'),
                        '$plugadmtxt' => t('Plugin Features'),
                        '$logtxt' => t('Logs'),
+                       '$diagnosticstxt' => t('diagnostics'),
                        '$h_pending' => t('User registrations waiting for confirmation'),
                        '$admurl'=> $a->get_baseurl(true)."/admin/"
        ));
index a9d26a89f04d0237da40fb249eb276d0e8d7928d..e98ee5584d73cb5f95b6076e121a411ae27afac3 100644 (file)
@@ -40,3 +40,8 @@
        <li class='admin link button {{$admin.logs.2}}'><a href='{{$admin.logs.0}}'>{{$admin.logs.1}}</a></li>
 </ul>
 
+<h4>{{$diagnosticstxt}}</h4>
+<ul class'admin linklist'>
+       <li class='admin link {{$admin.diagnostics_probe.2}}'><a href="{{$admin.diagnostics_probe.0}}">{{$admin.diagnostics_probe.1}}</a></li>
+       <li class='admin link {{$admin.diagnostics_webfinger.2}}'><a href="{{$admin.diagnostics_webfinger.0}}">{{$admin.diagnostics_webfinger.1}}</a></li>
+</ul>