Redesign prototype merge #18
|
@ -28,10 +28,12 @@ function servers_content(&$a) {
|
|||
Gotcha. Gotcha.
You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon. You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
Gotcha. Gotcha.
|
||||
$r = q("SELECT * FROM `site-health` WHERE `reg_policy`='REGISTER_OPEN' AND `ssl_state` = 1");
|
||||
if(count($r)) {
|
||||
foreach($r as $rr) {
|
||||
if (isset($sites[$rr['base_url']])) {
|
||||
You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon. You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
Gotcha. Gotcha.
|
||||
$sites_with_health[$rr['base_url']] = (($sites[$rr['base_url']] / 100) + 10) * intval($rr['health_score']);
|
||||
$site_healths[$rr['base_url']] = $rr;
|
||||
}
|
||||
}
|
||||
}
|
||||
You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon. You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
Gotcha. Gotcha.
|
||||
|
||||
arsort($sites_with_health);
|
||||
$total = 0;
|
||||
|
@ -105,7 +107,7 @@ function servers_content(&$a) {
|
|||
You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon. You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
Gotcha. Gotcha.
You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon. You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
Gotcha. Gotcha.
|
||||
}
|
||||
|
||||
//In case we asked for a surprise, pick a random one from the top 10! :D
|
||||
if($a->argv[1] == 'surprise'){
|
||||
You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon. You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
Gotcha. Gotcha.
|
||||
if($a->argc > 1 && $a->argv[1] == 'surprise'){
|
||||
You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon. You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
Gotcha. Gotcha.
|
||||
$max = min(count($public_sites), 10);
|
||||
$i = mt_rand(0, $max-1);
|
||||
$surpriseSite = $public_sites[$i];
|
||||
|
|
|||
You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon. You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
Gotcha. Gotcha.
You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon. You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
Gotcha. Gotcha.
|
|
@ -1,6 +1,6 @@
|
|||
<form action="/search" method="get" class="search-form">
|
||||
<div class="search-wrapper">
|
||||
<input class="search-field" type="text" name="query" placeholder="Search your friends" tabindex="1" value="<?php echo $query; ?>" />
|
||||
<input class="search-field" type="text" name="query" placeholder="Search your friends" tabindex="1" value="<?php echo isset($query)? $query : ''; ?>" />
|
||||
<input class="reset" type="reset" value="" tabindex="3" />
|
||||
<input class="search" type="submit" value="Search" tabindex="2" />
|
||||
</div>
|
||||
|
|
You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.