bebeboutik/modules/treepodia/api/set_account_code.php
Srv Bebeboutik 6c0978166c add modules
2016-01-04 12:49:26 +01:00

14 lines
334 B
PHP
Executable File

<?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');