Skip to content

Commit

Permalink
Updated for 4.01 and fixed issue with setCookie
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Chatfield <[email protected]>
  • Loading branch information
danielchatfield committed Apr 16, 2012
1 parent f3f672d commit 780b55b
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 15 deletions.
Binary file modified Thumbs.db
Binary file not shown.
2 changes: 1 addition & 1 deletion _classes/lavaPrivateBlogAccessLogsPage.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
class lavaPrivateBlogAccessLogsPage extends lavaAdvancedTablePage
class lavaPrivateBlogAccessLogsPage extends lavaTablePage
{

}
Expand Down
1 change: 1 addition & 0 deletions lava/_classes/lavaMiscFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function versionMatch( $ver1, $ver2 = null ) {
return false;//this is a beta plugin so we should assume run update hooks all the time
}
if( $ver1 == $ver2 ) {
return false;
return true;
}
return false;
Expand Down
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Private Blog
Plugin URI: http://www.volcanicpixels.com/password-protect-wordpress-plugin/
Description: Private Blog is a wordpress plugin which allows you to password protect all of your wordpress blog including all posts and feeds with a single password.
Version: 4.0
Version: 4.01
Author: Daniel Chatfield
Author URI: http://www.volcanicpixels.com
License: GPLv2
Expand All @@ -14,7 +14,7 @@
include( dirname( __FILE__ ) ."/lava/lava.php" );

$pluginName = "Private Blog";
$pluginVersion = "4.0";
$pluginVersion = "4.01";

$thePlugin = lava::newPlugin( __FILE__, $pluginName, $pluginVersion );
$pluginSlug = $thePlugin->_slug();
Expand Down
4 changes: 3 additions & 1 deletion pluginCallbacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ function setCookie() {
if( $expire != 0) {
$expire = time() + $expire;
}
setcookie( $this->_slug( "loggedin" ), $loginNonce, $expire, COOKIEPATH, COOKIE_DOMAIN );
if( !headers_sent() ) {
setcookie( $this->_slug( "loggedin" ), $loginNonce, $expire, COOKIEPATH, COOKIE_DOMAIN );
}
}

function isLoggedIn( $current ) {
Expand Down
22 changes: 12 additions & 10 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://www.spiders-design.co.uk/donate/
Tags: password,protect,password protect,wordpress,blog, security
Requires at least: 3.3.1
Tested up to: 3.3.1
Stable tag: 3.9.1
Stable tag: 4.01

This plugin password protects your wordpress blog with a single password.

Expand All @@ -18,10 +18,7 @@ No user accounts - just a single password.
Easy to use admin panel.
Internationalized to make translations easy.

Custom Logo [premium only]<br />
Custom Message [premium only]<br />
Multiple Passwords [premium only]<br />
Logging [premium only]
Customize the login page (with more skins added all the time)


Please review and vote that it works.
Expand All @@ -38,19 +35,20 @@ This section describes how to install the plugin and get it working.

3. Activate the plugin through the 'Plugins' menu in WordPress

1. Edit the configuration by clicking on 'password protect' under settings
1. Edit the configuration by clicking on 'Private Blog' under settings

== Frequently Asked Questions ==

Q. I have made a contribution - how do I unlock the premium features.

A. The features are unlocked automatically after I process the payment. Please allow 48 hrs for this before contacting me.

== Screenshots ==

1. Wordpress style login form with a customizable logo.
1. Customizable login form

2. Easy to use admin panel can be accessed by clicking on 'Password Protect' under settings on the wordpress admin dashboard.

2. Change the CSS styles for the login page to get the look and feel right

== Changelog ==
= 1.0 =

Expand Down Expand Up @@ -122,4 +120,8 @@ A. The features are unlocked automatically after I process the payment. Please a

= 3.9 =

* Links can now be in the message (by typing in the html)
* Links can now be in the message (by typing in the html)

= 4.0 =

* Complete rewrite
Binary file modified screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion vendor.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function privateKey() {
}

function getInstallId() {
return md5( AUTH_SALT . get_home_url() );
return md5( AUTH_SALT . get_home_url() . $this->_slug() );
}

function getVendorUrl( $append = "" ) {
Expand Down

0 comments on commit 780b55b

Please sign in to comment.