<?php $subscriptions = array( 'jack' => '2009-06-12 00:10:00', 'mary' => '2009-07-10 10:51:00', 'johhny' => '2009-07-25 14:22:50', //etc....);$current_date = date('Y-m-d H:i:s');foreach ($subscriptions as $user => $date) { if ($current_date > $date) { //subscription expired, suppose we have already open a connection to the Elxis db $database->setQuery("UPDATE #__users SET blocked='1' WHERE username='".$user."'"); $database->query(); //you could also send a notification e-mail to the user or to admin unset($subscriptions[$user]); //remove subscriber from active subscribers list }}//you should now save the updated subscribers list (the method depends on where you have save them, db, flat file, etc).?>
After adding the option to set prices for specific dates I think it would be easy to add the option to set a room as unavailable for any specific date. This could be done by setting the price to a negative number. ExampleDate: 2009-09-22, Price: -1The above means that the room is not available for September 22, 2009. I will see if it is easy to be implemented this feature and notify you.