PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Documentation Wiki

Enabling a Disabled Site


PostNuke 0760 and above contain a useful feature: it lets you switch off your site (disable your site) so that visitors just get a page reporting that the site has been disabled, together with whatever message you choose to post on that page.

You can access this feature by going to the System tab of the Adminsitration Panel, and then choosing Settings. A few lines down the page, you will find a checkbox beside "Switch site off". If you put a checkmark beside this option (and optionally type a message in the edit box marked "Reason for disabling access to site") and then click on the "Save settings" button at the bottom of the page, your site will no longer be accessible to visitors.

If you stay logged in (for instance, if you put a checkmark beside the "Remember me" option when you logged in), you have no problem. When you surf in to your site, you'll see the home page as usual, and can get to the administration panel by clicking on Administration in the side menu.

But if you disable the site (following the procedure explained above) and then you LOG OUT of your site, you're going to be a bit stuck to get back in. Even if you attempt to go straight to the administration panel or to the log-in page directly (via mysitename.com/admin.php or mysitename.com/user.php) you will still be locked out.

  1. DON'T PANIC! :) Instead, go and download the latest version of the PostNuke Swiss Army Knife.
  2. Open the .ZIP or .tgz file (psak102.zip, for example, if you downloaded the .ZIP version) and extract the contents onto your computer (your desktop for instance). Look in the unpacked "utilities" directory and locate the file called "psak.php".
  3. Upload that file into the root directory of your web site. It should be located in the same directory as your site's "config.php" file.
  4. Invoke "psak.php". For instance, from your web browser, enter the URL mysitename.com/psak.php (where "mysitename.com" should be replaced by the domain name of your web site).
  5. In the page that displays, choose "Switch site on" from the menu.
  6. Another page displays, saying, "Site On > This function will switch your PN site on after switching it off in the settings and logging out." Click on the "Submit" button. Your site will now be re-enabled. DON'T STOP READING.
  7. Before doing anything else, go and delete that "psak.php" file from your web site. Leaving it there will leave your site in an unsecure state. It's a great tool, but don't leave it on your web site where someone else might get access to it.


(reproduced from http://community.postnuke.com/module-Forum-viewtopic-topic-42811.htm)

Back to the Knowledge Base

CategoryKnowledgeBase
XML Revisions of $tag
Page history :: Last Editor [ Chestnut ] :: Owner [ markwest ] ::
Valid XHTML :: Valid CSS :: Powered by pnWikka 1.0 (A wiki fork from WikkaWiki)
 

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke