From 249dc4d70914b8577a67a175f5815c54187c0c64 Mon Sep 17 00:00:00 2001 From: Holger Lindemann Date: Tue, 19 Jun 2012 14:32:27 +0200 Subject: [PATCH] Variablen vorbelegen --- peppershop/confedit.php | 590 +++++++++++++++++++++------------------- 1 file changed, 304 insertions(+), 286 deletions(-) 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