bebeboutik-scripts/find_token.php
2017-12-18 17:14:31 +01:00

15 lines
477 B
PHP

<?php
$_SERVER['HTTP_PORT'] = 80;
$_SERVER['HTTP_HOST'] = $_SERVER['SERVER_NAME'] = 'www.bebeboutik.com';
include dirname(__FILE__).'/www/config/config.inc.php';
define('_PS_BASE_URL_', 'http://www.bebeboutik.com');
foreach(Db::getInstance()->ExecuteS('
SELECT `id_employee`
FROM `'._DB_PREFIX_.'employee`
') as $row) {
echo Tools::getAdminToken('AdminImport'.(int) Tab::getIdFromClassName('AdminImport').(int) $row['id_employee'])."\t".$row['id_employee'];
echo "\n";
}