added skeletons for help and stats page, text adjustements

This commit is contained in:
hauke 2015-12-24 11:20:37 +01:00
parent 6b4da31a97
commit f8906282ef
8 changed files with 44 additions and 5 deletions

View file

@ -167,7 +167,7 @@ CREATE TABLE IF NOT EXISTS `site-health` (
`admin_name` varchar(255) NULL DEFAULT NULL, `admin_name` varchar(255) NULL DEFAULT NULL,
`admin_profile` varchar(255) NULL DEFAULT NULL, `admin_profile` varchar(255) NULL DEFAULT NULL,
`ssl_state` bit(1) NULL DEFAULT NULL, `ssl_state` bit(1) NULL DEFAULT NULL,
`ssl_grade` varchar(2) NULL DEFAULT NULL, `ssl_grade` varchar(3) NULL DEFAULT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `base_url` (`base_url`), KEY `base_url` (`base_url`),
KEY `health_score` (`health_score`), KEY `health_score` (`health_score`),

View file

@ -91,6 +91,12 @@ function parse_site_from_url($url)
//Performs a ping to the given site ID //Performs a ping to the given site ID
//You may need to notice the site first before you know it's ID. //You may need to notice the site first before you know it's ID.
//TODO: Probe server location using IP address or using the info the friendica server provides (preferred).
// If IP needs to be used only provide country information.
//TODO: Check SSLLabs Grade
// Check needs to be asynchronous, meaning that the check at SSLLabs will be initiated in one run while
// the results must be fetched later. It might be good to mark sites, where a check has been inititated
// f.e. using the ssl_grade field. In the next run, results of these sites could be fetched.
if(! function_exists('run_site_probe')){ if(! function_exists('run_site_probe')){
function run_site_probe($id, &$entry_out) function run_site_probe($id, &$entry_out)
{ {

10
mod/help.php Normal file
View file

@ -0,0 +1,10 @@
<?php
use Friendica\Directory\Rendering\View;
if(! function_exists('help_content')) {
function help_content(&$a) {
$view = new View('help');
$view->output();
}
}

10
mod/stats.php Normal file
View file

@ -0,0 +1,10 @@
<?php
use Friendica\Directory\Rendering\View;
if(! function_exists('stats_content')) {
function stats_content(&$a) {
$view = new View('stats');
$view->output();
}
}

View file

@ -2,7 +2,7 @@
<nav id="links"> <nav id="links">
<div class="viewport"> <div class="viewport">
<a href="/home" class="mobile">Home</a> <a href="/home" class="mobile">Home</a>
<a href="/servers">Servers</a> <a href="/servers">Public Servers</a>
<a href="/stats">Stats</a> <a href="/stats">Stats</a>
<a href="/help">Help</a> <a href="/help">Help</a>
</div> </div>

View file

@ -0,0 +1,9 @@
<div class="sites">
<div>
<h1>Help</h1>
<h2>Registering a Friendica account (with an existing server)</h2>
<h2>Setting up a Friendica server</h2>
<h2>Finding people - Getting new friends</h2>
<h2>More help</h2>
</div>
</div>

View file

@ -11,9 +11,8 @@
<p class="about"> <p class="about">
Friendica is a decentralized social network. Friendica is a decentralized social network.
And this is a directory to find people on this network. And this is a directory to find people on this network.
Vivamus condimentum tempor pellentesque. Phasellus turpis nulla, lacinia vitae quam in, If you want to create your own account on a public server, have a look
cursus semper est. Ut lobortis ex quis sodales porta. Nam rhoncus tortor lobortis auctor on our <a href="servers">Public servers listing</a>.
efficitur. Ut ac ullamcorper lorem.
</p> </p>
<div class="profiles"> <div class="profiles">

View file

@ -0,0 +1,5 @@
<div class="sites">
<div>
<h1>Stats</h1>
</div>
</div>