@@ -69,9 +69,9 @@ Third, you could redirect any url match to the main page wp-activate.php, but th
...
@@ -69,9 +69,9 @@ Third, you could redirect any url match to the main page wp-activate.php, but th
// at any rate using url matching was dumb - adding wp-activate.php to any url bypassed the login auth - so a redirect to main site may help - provided the main site isn't also private.
// at any rate using url matching was dumb - adding wp-activate.php to any url bypassed the login auth - so a redirect to main site may help - provided the main site isn't also private.
// if( strpos($_SERVER['REQUEST_URI'], 'wp-activate.php') && !is_main_site()) { //DO NOT DO THIS!
// if( strpos($_SERVER['REQUEST_URI'], 'wp-activate.php') && !is_main_site()) { //DO NOT DO THIS!
So, better may be PHP_SELF since we can wait for script to execute before deciding to auth_redirect it.
So, better may be PHP_SELF since we can wait for script to execute before deciding to auth_redirect it.
@@ -86,7 +86,7 @@ Finally, changing the hook to fire at send_headers rather than template_redirect
...
@@ -86,7 +86,7 @@ Finally, changing the hook to fire at send_headers rather than template_redirect
So, I have the private functions the way I actually use them on my private sites/networks. I also do many activations as the SiteAdmin manually using other plugins.
So, I have the private functions the way I actually use them on my private sites/networks. I also do many activations as the SiteAdmin manually using other plugins.
Therefore, the code in this revision may make blogs more private, but somewhat more inconvenient to activate, both features I desire.
Therefore, the code in this revision may make blogs more private, but somewhat more inconvenient to activate, both features I desire.
We'll see how the feedback trickles in on this issue.
We'll see how the feedback trickles in on this issue.
*/
*/
...
@@ -95,12 +95,12 @@ class DS_More_Privacy_Options {
...
@@ -95,12 +95,12 @@ class DS_More_Privacy_Options {
@@ -335,7 +336,7 @@ class DS_More_Privacy_Options {
...
@@ -335,7 +336,7 @@ class DS_More_Privacy_Options {
<labelclass="checkbox"for="blog-private-3">
<labelclass="checkbox"for="blog-private-3">
<inputid="blog-private-3"type="radio"name="blog_public"value="-3"<?phpchecked('-3',get_option('blog_public'));?>/><?php_e('Visible only to administrators of this site',$this->l10n_prefix);?>
<inputid="blog-private-3"type="radio"name="blog_public"value="-3"<?phpchecked('-3',get_option('blog_public'));?>/><?php_e('Visible only to administrators of this site',$this->l10n_prefix);?>
<p><ahref="<?phpif(!is_user_logged_in()){echowp_login_url();}else{echonetwork_home_url();}?>"><?phpecho__('Click',$this->l10n_prefix).'</a>'.__(' to continue',$this->l10n_prefix);?>.</p>
<p><ahref="<?phpif(!is_user_logged_in()){echowp_login_url();}else{echonetwork_home_url();}?>"><?phpecho__('Click',$this->l10n_prefix).'</a>'.__(' to continue',$this->l10n_prefix);?>.</p>
...
@@ -464,19 +465,19 @@ class DS_More_Privacy_Options {
...
@@ -464,19 +465,19 @@ class DS_More_Privacy_Options {
</div>
</div>
</body>
</body>
</html>
</html>
<?php
<?php
exit();
exit();
}else{
}else{
if(is_feed()){
if(is_feed()){
$this->ds_feed_login();
$this->ds_feed_login();
}else{
}else{
auth_redirect();
auth_redirect();
}
}
}
}
}
}
}
}
functionregistered_members_login_message(){
functionregistered_members_login_message(){
global$current_site;
global$current_site;
echo'<p>';
echo'<p>';
...
@@ -489,11 +490,11 @@ class DS_More_Privacy_Options {
...
@@ -489,11 +490,11 @@ class DS_More_Privacy_Options {
}
}
echo'</p><br/>';
echo'</p><br/>';
}
}
functionregistered_members_header_title(){
functionregistered_members_header_title(){
return__('Visible only to registered users of this site',$this->l10n_prefix);
return__('Visible only to registered users of this site',$this->l10n_prefix);
}
}
functionregistered_members_header_link(){
functionregistered_members_header_link(){
return__('Visible only to registered users of this site',$this->l10n_prefix);
return__('Visible only to registered users of this site',$this->l10n_prefix);
}
}
...
@@ -512,7 +513,7 @@ class DS_More_Privacy_Options {
...
@@ -512,7 +513,7 @@ class DS_More_Privacy_Options {