add/remove comments
This commit is contained in:
parent
a4ff51093e
commit
04dbe33ae7
@ -218,16 +218,12 @@ MSQL;
|
||||
|
||||
public function checkParameter()
|
||||
{
|
||||
//todo add more check, maybe for methode
|
||||
$aParameter = $this->getParameter();
|
||||
// todo check accesstoken
|
||||
//fnc
|
||||
//oxid
|
||||
//
|
||||
|
||||
//simple check, should optimize
|
||||
$myConfig = Registry::getConfig();
|
||||
$sSHOPCONNECTTOKEN = $myConfig->getConfigParam("d3xrechnung_SHOPCONNECTTOKEN");
|
||||
|
||||
$sSHOPCONNECTTOKEN = md5($aParameter['OXID'].$myConfig->getConfigParam("d3xrechnung_SHOPCONNECTTOKEN"). $aParameter['OXID']);
|
||||
//dumpvar($aParameter,true);
|
||||
//dumpvar($sSHOPCONNECTTOKEN,true);
|
||||
if($aParameter['ID'] != $sSHOPCONNECTTOKEN)
|
||||
{
|
||||
return false;
|
||||
@ -237,8 +233,9 @@ MSQL;
|
||||
|
||||
public function getParameter()
|
||||
{
|
||||
//todo maybe to some sanitize
|
||||
return array(
|
||||
'SecureID' => $_GET['ID'],
|
||||
'ID' => $_GET['ID'],
|
||||
'FNC' => $_GET['FNC'],
|
||||
'OXID' => $_GET['OXID'],
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user