From: Holger Lindemann Date: Tue, 19 Jun 2012 12:32:27 +0000 (+0200) Subject: Variablen vorbelegen X-Git-Tag: release-3.0.0beta1~317^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=249dc4d70914b8577a67a175f5815c54187c0c64;p=kivitendo-erp.git Variablen vorbelegen --- diff --git a/peppershop/confedit.php b/peppershop/confedit.php index b70fd4d41..c4d3e5589 100644 --- a/peppershop/confedit.php +++ b/peppershop/confedit.php @@ -7,24 +7,24 @@ if (!isset($_SERVER['PHP_AUTH_USER'])) { exit; } 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; - } + //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; + } } include_once("error.php"); @@ -42,38 +42,38 @@ function lager($sel,$db) { $sql = "select w.description as lager,b.description as platz,b.id from "; $sql .= "bin b left join warehouse w on w.id=b.warehouse_id "; $sql .= "order by b.warehouse_id,b.id"; - $bin=$db->getall($sql); + $bin=$db->getall($sql); echo "\t