Featured DW Extensions
Navigate a results page with custom links for ASP/PHP/ColdFusion/JSP
Automate a dynamic grid vertically or horizontally for PHP
Add sort links to a dynamic table for ASP/PHP/ColdFusion/JSP
Navigate a details page with next/previous links for ASP/PHP
Other projects
Old-style Chicago blues in the DC metro area
For ColdFusion application development
Featured Book
PHP Object-Oriented Solutions by David Powers

Featured Book
Adobe Dreamweaver CS5 with PHP: Training from the Source by David Powers

Technical editing by Tom Muck
Member

Forcing a user login on any page in the site
Sometimes you might want to force the user to login before accessing any area of the site. You could put something like this in the application.php file, as that file is required at the top of every cartweaver page.
if(! isset($_SESSION["customerID"]) || $_SESSION["customerID"] == "0") {
include("cw2/CWIncLoginForm.php");
exit();
}
Put it right after this line, but before the setup files:
require_once("cw2/CWLibrary/CWSearch.php");
// insert the code here