diff --git a/home.html b/home.html new file mode 100644 index 0000000000..83fe0f3ccf --- /dev/null +++ b/home.html @@ -0,0 +1,11 @@ +mistpark network logo +

+Bring your privacy back home - where it belongs. +

+

+Share your life with your friends and family - privately, securely. +

+

+Join the mistpark "dispersed" social network. +

+
diff --git a/images/mistpark-net.jpg b/images/mistpark-net.jpg new file mode 100644 index 0000000000..c3be16b815 Binary files /dev/null and b/images/mistpark-net.jpg differ diff --git a/include/auth.php b/include/auth.php index 78e2bb8e04..b856379f11 100644 --- a/include/auth.php +++ b/include/auth.php @@ -42,6 +42,8 @@ else { unset($_SESSION['visitor_id']); unset($_SESSION['administrator']); unset($_SESSION['cid']); + unset($_SESSION['theme']); + $encrypted = hash('whirlpool',trim($_POST['password'])); if((x($_POST,'auth-params')) && $_POST['auth-params'] == 'login') { diff --git a/include/nav.php b/include/nav.php index 4833ed7db5..94fbf36bb6 100644 --- a/include/nav.php +++ b/include/nav.php @@ -40,3 +40,4 @@ if(x($_SESSION['uid'])) { } $a->page['nav'] .= "\r\n\r\n"; + $a->page['nav'] .= ''; diff --git a/mod/contacts.php b/mod/contacts.php index 2469e0c6fc..45f792d30f 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -72,6 +72,7 @@ function contacts_post(&$a) { function contacts_content(&$a) { + $o .= ''; if(! local_user()) { notice( t('Permission denied.') . EOL); return; diff --git a/mod/directory.php b/mod/directory.php index 9cce167605..4e36576733 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -4,6 +4,7 @@ function directory_init(&$a) { } function directory_content(&$a) { + $o .= ''; $search = ((x($_GET,'search')) ? notags(trim($_GET['search'])) : ''); diff --git a/mod/home.php b/mod/home.php index 3a1aa212a1..4406576a34 100644 --- a/mod/home.php +++ b/mod/home.php @@ -15,6 +15,8 @@ function home_content(&$a) { $a->page['footer'] .= "
Powered by mistpark
"; $o .= '

Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '

'; + if(file_exists('home.html')) + $o .= file_get_contents('home.html'); $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); return $o; diff --git a/mod/message.php b/mod/message.php index 2048cff1fd..6119e894fe 100644 --- a/mod/message.php +++ b/mod/message.php @@ -82,6 +82,7 @@ function message_post(&$a) { } function message_content(&$a) { + $o .= ''; if(! local_user()) { notice( t('Permission denied.') . EOL); diff --git a/mod/network.php b/mod/network.php index afe44dabf5..c5845f63c8 100644 --- a/mod/network.php +++ b/mod/network.php @@ -19,6 +19,8 @@ function network_content(&$a, $update = false) { $group = 0; if(! $update) { + $o .= ''; + // pull out the group here because the updater might have different args if($a->argc > 1) { $group = intval($a->argv[1]); diff --git a/mod/notifications.php b/mod/notifications.php index 6422b3b008..96f50d90be 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -57,6 +57,7 @@ function notifications_content(&$a) { } $o = ''; + $o .= ''; if(($a->argc > 1) && ($a->argv[1] == 'all')) $sql_extra = ''; diff --git a/mod/profile.php b/mod/profile.php index c42291d963..6923b09232 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -89,6 +89,7 @@ function profile_content(&$a, $update = false) { $a->profile['profile_uid'] = $_SESSION['profile_uid']; } else { + $o .= ''; // set the uid so we can pick it up during update $_SESSION['profile_uid'] = $a->profile['uid']; } diff --git a/mod/profiles.php b/mod/profiles.php index 5ee9a3e965..c9dc4c80c7 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -157,6 +157,7 @@ function profiles_post(&$a) { function profiles_content(&$a) { + $o .= ''; if(! local_user()) { notice( t('Permission denied.') . EOL); return; diff --git a/mod/settings.php b/mod/settings.php index fbeee77685..2e14fcee5f 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -155,6 +155,7 @@ function settings_post(&$a) { if(! function_exists('settings_content')) { function settings_content(&$a) { + $o .= ''; if(! local_user()) { notice( t('Permission denied.') . EOL ); @@ -229,9 +230,9 @@ function settings_content(&$a) { '$basepath' => $a->get_hostname(), '$baseurl' => $a->get_baseurl())); - $o = file_get_contents('view/settings.tpl'); + $stpl = file_get_contents('view/settings.tpl'); - $o = replace_macros($o,array( + $o .= replace_macros($stpl,array( '$baseurl' => $a->get_baseurl(), '$uid' => $_SESSION['uid'], '$username' => $username, diff --git a/view/default.php b/view/default.php index 47adf4a769..2d45d946a8 100644 --- a/view/default.php +++ b/view/default.php @@ -6,7 +6,7 @@
- +
diff --git a/view/directory_header.tpl b/view/directory_header.tpl index c4217ac488..ba39236f2f 100644 --- a/view/directory_header.tpl +++ b/view/directory_header.tpl @@ -1,6 +1,6 @@

Site Directory

- + $finding diff --git a/view/profile.php b/view/profile.php index e2c190da00..a07a452202 100644 --- a/view/profile.php +++ b/view/profile.php @@ -6,7 +6,7 @@
- +