It's not working for some reason..
Rule:
case "Subscribed":
$comparisons[0] = array(FALSE, "".$startDate ."", 3, "".date('Y-m-d') ."");
$comparisons[1] = array(TRUE, "".$endDate ."", 3, "".date('Y-m-d') ."");
break;
Test page:
http://intuitorsports.com/test-security.php
<?php
$startDate = '2014-9-31';
$endDate = '2014-10-5';
?>
<?php
if (!WA_Auth_RulePasses("Subscribed")){
WA_Auth_RestrictAccess("purchase.php");
}
?>
Next the failure takes you to a purchase page that also fails:
It should have stayed on the test page as the date range is valid.
http://intuitorsports.com/purchase.php?accesscheck=%2Ftest-security.php%3F
This page does not load properly due to the cart code that reformats the form tag.
for instance if you go to the purchase page without the URL query string it works fine. IF accessed due to a redirect as shown in the link above it fails at the re-writen form action tag
The page loads and stops at this point:
<form name="eCart1_1_ATC_2" method="POST" action="/purchase.php