Ejemplo n.º 1
0
// $enc = $encPO;
//if($enc == 'y')
//{
$opf = $orgprefObj->getDetails('*', " AND iOrganizationID={$curORGID} ");
if ($opf[0]['eSecureImportPO'] == 'Yes') {
    $enc = 'y';
}
$encKey = $opf[0]['vEncryptionKey'];
$encAlgo = $opf[0]['eCryptAlgo'];
$orgdt = $orgObj->select($curORGID);
$code[] = $orgdt[0]['vOrganizationCode'] . $orgdt[0]['iOrganizationID'];
$code[] = $orgdt[0]['dCreatedDate'];
//}
$itmhd = "";
if (isset($encobj) && $encobj != '') {
    $encobj->setkey($encKey);
    $encobj->setAlgo($encAlgo);
    $encobj->setMode('');
    $iv = $encobj->setiv($code);
    // echo $iv; exit;
    $itmhd = $encobj->mencrypt('###items###');
} else {
    $itmhd = '###items###';
}
// echo $encobj->mdecrypt($itmhd);
// echo $itmhd; // exit;
$enc = $_POST['enctyp'];
if ($enc != 'y') {
    $enc = 'n';
}
//$file = SPATH_ROOT."/export_2010-05-07_13_49_54.csv";