<?php /* * Copyright (C) 2002-2013 AfterLogic Corp. (www.afterlogic.com) * Distributed under the terms of the license described in LICENSE * */ // remove the following line for real use exit('remove this line'); // Example of logging into WebMail account using email and password for incorporating into another web application (SSO) // utilizing API include_once __DIR__.'../libraries/afterlogic/api.php'; if (class_exists('CApi') && CApi::IsValid()) { header('Location: ../?sso&hash='.CApi::GenerateSsoToken('*****@*****.**', 'password')); } else { echo 'AfterLogic API isn\'t available'; }