add token

This commit is contained in:
Thibault UBUNTU 2016-11-03 12:42:19 +01:00
parent 6205f866e6
commit 3a45b0311f

View File

@ -1,13 +1,14 @@
<?php
$_SERVER['HTTP_HOST'] = 'www.toutpratique.com';
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
$_SERVER['SERVER_PORT'] = 80;
require_once(dirname(__FILE__) . '/../../../config/config.inc.php');
require_once(dirname(__FILE__) . '/../../../init.php');
require_once(dirname(__FILE__) . '/../../cmsps/classes/CmsPsPost.php');
require_once(dirname(__FILE__) . '/../../cmsps/classes/CmsPsCategory.php');
if (Tools::getValue('token', null) != 'QlUdloxwKgQSD2lRkSxDhT4ky') {
die('Forbidden');
}
$db = Db::getInstance();
// title|link|description|id|price|image link|category|type