$blog_settings->put('planet_timezone', $default_tz, "string"); $blog_settings->put('planet_maint', '0', "boolean"); $blog_settings->put('auto_feed_disabling', '0', "boolean"); $blog_settings->put('internal_links', '1', "boolean"); $blog_settings->put('allow_feed_modification', '1', "boolean"); $blog_settings->put('allow_post_modification', '1', "boolean"); $blog_settings->put('allow_tagging_everything', '1', "boolean"); $blog_settings->put('accept_public_tagged_feed', '0', "boolean"); $blog_settings->put('accept_user_tagged_feed', '1', "boolean"); $blog_settings->put('allow_uncensored_feed', '1', "boolean"); $blog_settings->put('show_similar_posts', '1', "boolean"); $blog_settings->put('planet_shaarli', '1', "boolean"); $blog_settings->put('planet_joined_community', '0', "boolean"); if ($p_comm) { // user enabled the checkbox joinBilboplanetCommunity($planet_url, $p_title, $p_desc, $u_fullname, $u_email); } # Create planet salt : $base_string = sha1(time() . $u_fullname . $u_email . $u_pwd . '~' . microtime(TRUE) . $default_tz); $salt = substr($base_string, rand(0, strlen($base_string)), 32); $blog_settings->put('planet_salt', $salt, "string"); $step = 1; } catch (Exception $e) { $err = $e->getMessage(); } } if (!isset($step)) { $step = 0; } header('Content-Type: text/html; charset=UTF-8'); ?>
<td>' . T_('Subscription page content') . '</td> <td> <div style="display:none;"> <textarea id="list_subscription_content" name="subscription_content" >' . $subscription_content . '</textarea> </div> <div class="button br3px"> <input type="button" class="preview field" name="preview" onclick="javascript:call_preview(\'list_subscription_content\')" value="' . T_('Preview') . '" /> </div> </td> </tr>'; } else { $output .= '<td>' . T_('Disabled') . '</td>'; } $output .= '</tr> </table>'; print $output; break; case "join": $url = $blog_settings->get('planet_url'); $title = $blog_settings->get('planet_title'); $desc = $blog_settings->get('planet_desc'); $author = $blog_settings->get('author'); $mail = $blog_settings->get('author_mail'); $text = joinBilboplanetCommunity($url, $title, $desc, $author, $mail); print $text; break; } } else { $output = T_("Nothing to do"); print '<div class="flash_warning">' . $output . '</div>'; }