<?php
/**
 * mitrocops
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 *
/*
 *
 * @author    mitrocops
 * @category content_management
 * @package reviewsadv
 * @copyright Copyright mitrocops
 * @license   mitrocops
 */

include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../../init.php');


$name = "reviewsadv";
$token = Tools::getValue('token');

include_once(dirname(__FILE__).'/reviewsadv.php');
$obj_main = new reviewsadv();

$_token = $obj_main->getokencron();


if($_token == $token){

    include_once(dirname(__FILE__).'/classes/reviewsadvhelp.class.php');
    $obj = new reviewsadvhelp();

    $obj->generateGoogleReviews();


} else {
    echo 'Error: Access denien! Invalid token!';
}


