| Current Path : /var/www/html/ |
| Current File : /var/www/html/techjoomla_hotmail_api.php |
<?php
/**
* @version SVN: <svn_id>
* @package Invitex
* @author Techjoomla <extensions@techjoomla.com>
* @copyright Copyright (c) 2009-2017 TechJoomla. All rights reserved.
* @license GNU General Public License version 2 or later.
*/
define('_JEXEC', 1);
if (file_exists(dirname(__FILE__) . '/defines.php'))
{
include_once dirname(__FILE__) . '/defines.php';
}
if (!defined('_JDEFINES'))
{
define('JPATH_BASE', dirname(__FILE__));
require_once JPATH_BASE . '/includes/defines.php';
}
require_once JPATH_BASE . '/includes/framework.php';
$app = JFactory::getApplication('site');
$app->initialise();
require_once JPATH_SITE . '/components/com_invitex/helper.php';
$invhelperObj = new cominvitexHelper;
$itemid = $invhelperObj->getitemid('index.php?option=com_invitex&view=invites');
$app->redirect(
JRoute::_('index.php?option=com_invitex&controller=invites&task=get_access_token&code=' . $_REQUEST['code'] . '&Itemid=' . $itemid, false)
);