* This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 *
 * @version $Id$
 * @author Matthew McNaney <mcnaney at gmail dot com>
 * @package
 * @license http://opensource.org/licenses/gpl-3.0.html
 */
if (!PHPWS_Settings::get('properties', 'roommate_only')) {
    if (PHPWS_Core::atHome()) {
        PHPWS_Core::initModClass('properties', 'User.php');
        $user = new Properties\User();
        $user->searchPanel();
        $user->propertyListing();
    }
    if (isset($_SESSION['Contact_User'])) {
        $_SESSION['Contact_User']->loginMenu();
    } else {
        require_once PHPWS_SOURCE_DIR . 'mod/properties/class/Contact_User.php';
        $form = \Properties\Contact_User::contactForm();
        $tpl = $form->getTemplate();
        $content = PHPWS_Template::process($tpl, 'properties', 'clogin.tpl');
        Layout::add($content, 'properties', 'contact_login');
    }
}
purgeProperties();
function purgeProperties()
{