// } if ($action == "upload_0") { require_once "DataBase/Priceset.php"; require_once "DataBase/Customer.php"; require_once "DataBase/Product.php"; require_once "DataBase/Price.php"; require_once "DataBase/Category.php"; $priceset = new Priceset(); $customer = new Customer(); $product = new Product(); $price = new Price(); $category = new Category(); $priceset->export("mysql_export/priceset.csv"); $customer->export("mysql_export/customer.csv"); $product->export("mysql_export/product.csv"); $price->export("mysql_export/price.csv"); $category->export("mysql_export/category.csv"); // upload all db-files "mysql_export" $handle = popen("/var/www/ursprung/bin/upload.sh", "r"); pclose($handle); $main_box->add(new NTKLabel("", "Schritt erfolgreich"), 200, -1, "color: #00ff00; background-color: #dfe7f3;"); $button_next = new NTKButton("button_next", "Weiter", "location.replace('websync.php?action=upload_1');"); $main_box->add($button_next, 500); } elseif ($action == "upload_1") { $iframe = new NTKIFrame("upload_frame", "http://www.natuerlich-grobi.de/db_import.php", "width: 300px; height: 200px; background-color: #dfe7f3;"); $main_box->add($spacer, True, True, "background-color: #dfe7f3;"); $main_box->add(new NTKLabel("", "Serverausgabe (dauert etwas):"), False, False, "font-style: bold; background-color: #dfe7f3;"); $main_box->add($iframe, False, False, "background-color: #dfe7f3;"); $main_box->add($spacer, True, True, "background-color: #dfe7f3;"); } elseif ($action == "download_0") { $iframe = new NTKIFrame("download_frame", "http://www.natuerlich-grobi.de/db_export.php", "width: 300px; height: 200px; background-color: #dfe7f3;");