add token
This commit is contained in:
parent
6205f866e6
commit
3a45b0311f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user