/** * This function is used to register the user from twitter * * @return bool */ function twitterRegister() { $sess = $_SESSION['twitter_user_info']->name; $me = $_POST['email']; include 'classes/Core/CUserRegistration.php'; $objUser = new Core_CUserRegistration(); $objUser->twitterRegister($me, $sess); }