Index: /lib/functions.inc.php
===================================================================
--- /lib/functions.inc.php	(revision 7532)
+++ /lib/functions.inc.php	(revision 7533)
@@ -993,9 +993,14 @@
 	{
 
+		return $params[0];
+		
+		/*
+		 * Deaktiviert
 		$primary = isset($params["primary"]) ? $params['primary'] : $params[0];
 		$sanitizedVal = wpsg_sanitize($type, ...$params);
 
 		return !$sanitizedVal ? wpsg_xss($primary) : $sanitizedVal;
-
+		*/
+		
 	} // function wpsg_sinput(String $type, array|string ...$params)
 
Index: /mods/wpsg_mod_productvariants.class.php
===================================================================
--- /mods/wpsg_mod_productvariants.class.php	(revision 7532)
+++ /mods/wpsg_mod_productvariants.class.php	(revision 7533)
@@ -527,211 +527,9 @@
         } // public function getProductKeyFromRequest($product_id, $form_data)
 
-        public function produkt_ajax()
-        {
-
-	        $_REQUEST['edit_id'] = wpsg_sinput("key", $_REQUEST['edit_id']);
-
-        	if (isset($_REQUEST['cmd']) && $_REQUEST['cmd'] == 'wpsg_vp_add')
-        	{
-        		die('wpsg_vp_add');
-        		$vp_data = $this->loadVarianten($_REQUEST['edit_id']);
-
-        		$data = array(
-        				"name" => wpsg_sinput("text_field", $_REQUEST['name']),
-        				"typ" => wpsg_sinput("key", $_REQUEST['typ']),
-        				"aktiv" => "1"
-        		);
-
-        		if ($_REQUEST['typ'] == "checkbox")
-        		{
-        			$data['preis'] = "0";
-        		}
-        		else
-        		{
-        			$data['vari'] = array();
-        		}
-
-        		$vp_data[] = $data;
-
-        		$this->saveVarianten($_REQUEST['edit_id'], $vp_data);
-
-        		$this->shop->view['message'] = array(0, __("Variante erfolgreich angelegt.", "wpsg"));
-
-        		die($this->drawVarianten($_REQUEST['edit_id']));
-
-        	}
-        	else if ($_REQUEST['cmd'] == 'wpsg_var_reorder')
-        	{
-        		die('wpsg_var_reorder');
-        		parse_str($_REQUEST['wpsg_reorder'], $wpsg_reorder);
-
-        		$vp_data = $this->loadVarianten($_REQUEST['edit_id']);
-        		$vp_data_neu = array();
-
-        		foreach ($wpsg_reorder['variante'] as $order)
-        		{
-
-        			if (array_key_exists($order, $vp_data))
-        			{
-
-        				$vp_data_neu[] = $vp_data[$order];
-        				unset($vp_data[$order]);
-
-        			}
-
-        		}
-
-        		$this->saveVarianten($_REQUEST['edit_id'], $vp_data_neu);
-
-        		$this->shop->view['message'] = array(0, __('Variantenreihenfolge gespeichert.', 'wpsg'));
-
-        		die($this->drawVarianten($_REQUEST['edit_id']));
-
-        	}
-        	else if ($_REQUEST['cmd'] == 'wpsg_vari_reorder')
-        	{
-        		die('wpsg_vari_reorder');
-        		parse_str($_REQUEST['wpsg_reorder'], $wpsg_reorder);
-
-        		$vp_data = $this->loadVarianten($_REQUEST['edit_id']);
-
-        		foreach ($wpsg_reorder as $var_key => $order)
-        		{
-
-        			$var_id = preg_replace('/^variorder\_/', '', $var_key);
-
-        			wpsg_array_reorder($vp_data[$var_id]['vari'], $order);
-
-        			if (wpsg_isSizedArray($vp_data[$var_id]['lang']))
-        			{
-
-        				foreach ($vp_data[$var_id]['lang'] as $lang_key => $lang_vari)
-        				{
-
-        					wpsg_array_reorder($vp_data[$var_id]['lang'][$lang_key]['vari'], $order);
-
-        				}
-
-        			}
-
-        		}
-
-        		$this->saveVarianten($_REQUEST['edit_id'], $vp_data);
-
-        		$this->shop->view['message'] = array(0, __("Variationenreihenfolge gespeichert.", "wpsg"));
-
-        		die($this->drawVarianten($_REQUEST['edit_id']));
-
-        	}
-        	else if ($_REQUEST['cmd'] == 'wpsg_vp_refreh')
-        	{
-        		die('wpsg_vp_refreh');
-        		die($this->drawVarianten($_REQUEST['edit_id']));
-
-        	}
-        	else if ($_REQUEST['cmd'] == "wpsg_vp_del")
-        	{
-        		die('wpsg_vp_del');
-        		$vp_data = $this->loadVarianten($_REQUEST['edit_id']);
-
-        		unset($vp_data[$_REQUEST['var_id']]);
-
-        		$this->saveVarianten($_REQUEST['edit_id'], $vp_data);
-
-        		$this->shop->view['message'] = array(0, __("Variante wurde erfolgreich gelÃ¶scht.", "wpsg"));
-        		die($this->drawVarianten($_REQUEST['edit_id']));
-
-        	}
-        	else if ($_REQUEST['cmd'] == "wpsg_vp_deaktiv")
-        	{
-        		die('wpsg_vp_deaktiv');
-        		$vp_data = $this->loadVarianten($_REQUEST['edit_id']);
-
-        		if ($_REQUEST['status'] == "1")
-        		{
-
-        			$vp_data[$_REQUEST['var_id']]['aktiv'] = 1;
-        			$this->shop->view['message'] = array(0, __("Variante wurde erfolgreich aktiviert.", "wpsg"));
-
-        		}
-        		else
-        		{
-
-        			$vp_data[$_REQUEST['var_id']]['aktiv'] = 0;
-        			$this->shop->view['message'] = array(0, __("Variante wurde erfolgreich deaktiviert.", "wpsg"));
-
-        		}
-
-        		$this->saveVarianten($_REQUEST['edit_id'], $vp_data);
-        		die($this->drawVarianten($_REQUEST['edit_id']));
-
-        	}
-        	else if ($_REQUEST['cmd'] == "wpsg_vp_addVariation")
-        	{
-        		die('wpsg_vp_addVariation');
-        		$vp_data = $this->loadVarianten($_REQUEST['edit_id']);
-
-        		$vp_data[$_REQUEST['var_id']]['vari'][] = array(
-        				"name" => $_REQUEST['vari_name'],
-        				"preis" => wpsg_tf($_REQUEST['vari_preis']),
-        				"aktiv" => "1"
-        		);
-
-        		$this->shop->view['message'] = array(0, __("Variation wurde erfolgreich angelegt.", "wpsg"));
-
-        		$this->saveVarianten($_REQUEST['edit_id'], $vp_data);
-        		die($this->drawVarianten($_REQUEST['edit_id']));
-
-        	}
-        	else if ($_REQUEST['cmd'] == "wpsg_vp_vari_del")
-        	{
-        		die('wpsg_vp_vari_del');
-        		$vp_data = $this->loadVarianten($_REQUEST['edit_id']);
-
-        		unset($vp_data[$_REQUEST['var_id']]['vari'][$_REQUEST['vari_id']]);
-
-        		if (wpsg_isSizedArray($vp_data[$_REQUEST['var_id']]['lang']))
-        		{
-
-        			foreach ($vp_data[$_REQUEST['var_id']]['lang'] as $lang_key => $lang_vari)
-        			{
-
-        				unset($vp_data[$_REQUEST['var_id']]['lang'][$lang_key]['vari'][$_REQUEST['vari_id']]);
-
-        			}
-
-        		}
-
-        		$this->shop->view['message'] = array(0, __("Variation wurde erfolgreich gelÃ¶scht.", "wpsg"));
-
-        		$this->saveVarianten($_REQUEST['edit_id'], $vp_data);
-        		die($this->drawVarianten($_REQUEST['edit_id']));
-
-        	}
-        	else if ($_REQUEST['cmd'] == "wpsg_vp_vari_deaktiv")
-        	{
-        		die('wpsg_vp_vari_deaktiv');
-        		$vp_data = $this->loadVarianten($_REQUEST['edit_id']);
-
-        		if ($_REQUEST['status'] == "1")
-        		{
-
-        			$vp_data[$_REQUEST['var_id']]['vari'][$_REQUEST['vari_id']]['aktiv'] = 1;
-        			$this->shop->view['message'] = array(0, __("Variation wurde erfolgreich aktiviert.", "wpsg"));
-
-        		}
-        		else
-        		{
-
-        			$vp_data[$_REQUEST['var_id']]['vari'][$_REQUEST['vari_id']]['aktiv'] = 0;
-        			$this->shop->view['message'] = array(0, __("Variation wurde erfolgreich deaktiviert.", "wpsg"));
-
-        		}
-
-        		$this->saveVarianten($_REQUEST['edit_id'], $vp_data);
-        		die($this->drawVarianten($_REQUEST['edit_id']));
-
-        	}
-        	else if ($_REQUEST['cmd'] == 'wpsg_var_setImageOrder')
+        public function produkt_ajax() {
+
+			if (!wpsg_checkInput($_REQUEST['edit_id'], WPSG_SANITIZE_INT)) throw new \Exception(__('UngÃŒltige ID bei den Produktvarianten BE Ajax', 'wpsg'));
+        	
+        	if ($_REQUEST['cmd'] == 'wpsg_var_setImageOrder')
         	{
 				
Index: /views/mods/mod_customergroup/addedit.phtml
===================================================================
--- /views/mods/mod_customergroup/addedit.phtml	(revision 7532)
+++ /views/mods/mod_customergroup/addedit.phtml	(revision 7533)
@@ -27,4 +27,6 @@
     </nav>
 
+	<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
+	
 	<div class="wpsg_clear"></div>
 
Index: /views/mods/mod_customergroup/index.phtml
===================================================================
--- /views/mods/mod_customergroup/index.phtml	(revision 7532)
+++ /views/mods/mod_customergroup/index.phtml	(revision 7533)
@@ -47,4 +47,6 @@
 
     </nav>
+
+	<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
 
     <?php if ($this->view['pages'] > $this->get_option('wpsg_mod_kundenverwaltung_group_perpage')) { ?>
