bebeboutik/modules/treepodia/api/set_account_code.php

14 lines
334 B
PHP
Raw Normal View History

2016-01-04 12:49:26 +01:00
<?php
include(dirname(__FILE__).'/../../../config/config.inc.php');
$token = Tools::getValue('token');
$realToken = Configuration::get('TREEPODIA_TOKEN');
if ($token AND $token === $realToken)
{
Configuration::updateValue('TREEPODIA_ACCOUNT_CODE', $_POST['account-code']);
die ($_POST['account-code']);
}
else
die ('Bad token');