Linux 软件免费装

Force User Login

开发者 Integer Development
更新时间 2009年1月28日 01:58
PHP版本: 2.0.2 及以上
WordPress版本: 2.1

标签

privacy login password force user login

下载

1.0 1.1 1.2

详情介绍:

This is a very small plugin that forces users to login before viewing any content. This is done by checking if the user is logged in, and if not, redirecting them to the login page. Users attempting to view blog content via RSS are also authenticated via HTTP Auth.

安装:

  1. Upload force-login.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

常见问题:

Can I change where the user is redirected after logging in?

Yes! A variable called $redirect_to (line 33) is currently set to redirect the user to the page they were trying to access. If you changed that line from $redirect_to = $_SERVER['REQUEST_URI']; to $redirect_to = '/'; it would redirect the user to the home page.