Revision 7c4272de
Von Holger Lindemann vor mehr als 12 Jahren hinzugefügt
peppershop/confedit.php | ||
---|---|---|
} else {
|
||
if (!$_POST) {
|
||
//Je Shop ein Conf-File == Multishop
|
||
$Shop=$_GET["Shop"];
|
||
if ($Shop != "" and file_exists ("conf$Shop.php")) {
|
||
require "conf$Shop.php";
|
||
$out = "Konfiguration für Shop $Shop gelesen";
|
||
} else {
|
||
//Singleshop oder noch kein Shop definiert
|
||
require "conf.php";
|
||
$out = "Standard-Konfiguration gelesen";
|
||
}
|
||
if ($_SERVER['PHP_AUTH_USER']<>$ERPftpuser || $_SERVER['PHP_AUTH_PW']<>$ERPftppwd) {
|
||
Header("WWW-Authenticate: Basic realm='My Realm'");
|
||
Header("HTTP/1.0 401 Unauthorized");
|
||
echo "Sie müssen sich autentifizieren\n";
|
||
exit;
|
||
}
|
||
echo $out;
|
||
if( isset($_GET["Shop"]) ) {
|
||
$Shop = $_GET["Shop"];
|
||
} else {
|
||
$Shop = '';
|
||
};
|
||
if ( $Shop != "" and file_exists ('conf'.$Shop.'.php') ) {
|
||
require 'conf'.$Shop.'.php';
|
||
$out = "Konfiguration für Shop $Shop gelesen";
|
||
} else {
|
||
//Singleshop oder noch kein Shop definiert
|
||
require "conf.php";
|
||
$out = "Standard-Konfiguration gelesen";
|
||
}
|
||
if ( $_SERVER['PHP_AUTH_USER']<>$ERPftpuser || $_SERVER['PHP_AUTH_PW']<>$ERPftppwd ) {
|
||
Header("WWW-Authenticate: Basic realm='My Realm'");
|
||
Header("HTTP/1.0 401 Unauthorized");
|
||
echo "Sie müssen sich autentifizieren\n";
|
||
exit;
|
||
}
|
||
echo $out;
|
||
}
|
||
}
|
||
|
||
... | ... | |
if ($bg) fputs($f,'$'.$key.'["TAX"]=\''. $var['TAX'].'\';'.$lf);
|
||
}
|
||
|
||
if ($_POST["ok"]=="sichern") {
|
||
if ( isset($_POST["ok"]) ) {
|
||
foreach ($_POST as $key=>$val) {
|
||
${$key} = $val;
|
||
}
|
||
... | ... | |
echo "Keine Verbindung zum Shop<br>";
|
||
$dbM=false;
|
||
};
|
||
if ($_POST["ok"]=="sichern") {
|
||
if ( isset($_POST["ok"]) ) {
|
||
$lf = "\n";
|
||
$f = @fopen("conf$Shop.php","w");
|
||
$f = @fopen('conf'.$Shop.'.php','w');
|
||
if ($f) {
|
||
$v="1.5";
|
||
$d=date("Y/m/d H:i:s");
|
Auch abrufbar als: Unified diff
Kleinigkeiten