Revision 7e28f16e
Von Holger Lindemann vor mehr als 12 Jahren hinzugefügt
peppershop/ArtikelErpToShop.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
3 |
$debug = False; |
|
4 |
|
|
2 | 5 |
$api = php_sapi_name(); |
3 | 6 |
if ( $api != "cli" ) { |
4 | 7 |
echo "<html>\n<head>\n<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>\n</head>\n<body>\n"; |
... | ... | |
21 | 24 |
|
22 | 25 |
include_once("conf$shopnr.php"); |
23 | 26 |
include_once("error.php"); |
27 |
//Fehlerinstanz |
|
28 |
$err = new error($api); |
|
29 |
|
|
24 | 30 |
include_once("dblib.php"); |
25 | 31 |
include_once("pepper.php"); |
26 | 32 |
include_once("erplib.php"); |
27 | 33 |
include_once("Picture.php"); |
28 | 34 |
|
29 |
//Fehlerinstanz |
|
30 |
$err = new error($api); |
|
31 | 35 |
|
32 | 36 |
//Bilder |
33 | 37 |
$pict = new picture($ERPftphost,$ERPftpuser,$ERPftppwd,$ERPimgdir,$SHOPftphost,$SHOPftpuser,$SHOPftppwd,$SHOPimgdir,$err); |
34 | 38 |
//$pict->original = false; |
35 | 39 |
|
36 | 40 |
//ERP-Instanz |
37 |
$erpdb = new mydb($ERPhost,$ERPdbname,$ERPuser,$ERPpass,$ERPport,'pgsql',$err); |
|
41 |
$erpdb = new mydb($ERPhost,$ERPdbname,$ERPuser,$ERPpass,$ERPport,'pgsql',$err,$debug);
|
|
38 | 42 |
if ($erpdb->db->connected_database_name == $ERPdbname) { |
39 |
$erp = new erp($erpdb,$err,$divStd,$divVerm,$auftrnr,$kdnum,$preA,$preK,$invbrne,$mwstS,$OEinsPart,$lager); |
|
43 |
$erp = new erp($erpdb,$err,$divStd,$divVerm,$auftrnr,$kdnum,$preA,$preK,$invbrne,$mwstS,$OEinsPart,$lager,$pricegroup,$ERPusrID);
|
|
40 | 44 |
} else { |
41 | 45 |
$err->out('Keine Verbindung zur ERP',true); |
42 | 46 |
exit(); |
Auch abrufbar als: Unified diff
Diverse Verbesserungen u.a. Debugging