X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=peppershop%2Fconfedit.php;h=fbf957247e826c1e228c92bbbd1b8e719fa1f588;hb=b6cc210659f5ed09f22de0b5985c62457ec634ac;hp=b70fd4d4196da6154e425bcf2ee6d209792699e7;hpb=0873c774b2fed0f3dc05f6aa41d3eff8f5ece57e;p=kivitendo-erp.git diff --git a/peppershop/confedit.php b/peppershop/confedit.php index b70fd4d41..fbf957247 100644 --- a/peppershop/confedit.php +++ b/peppershop/confedit.php @@ -7,24 +7,28 @@ 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 + 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; + } } include_once("error.php"); @@ -42,38 +46,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