Index: /controller/wpsg_BasketController.class.php
===================================================================
--- /controller/wpsg_BasketController.class.php	(revision 7398)
+++ /controller/wpsg_BasketController.class.php	(revision 7400)
@@ -375,4 +375,16 @@
 		public function template_redirect()
 		{
+			
+			if (isset($_REQUEST['wpsg_cron'])) {
+				
+				// ersetzt den direkten Aufruf der cron.php
+				
+				$this->shop->callMods('cron');
+				$this->shop->update_option('wpsg_lastCron', time());
+				
+				exit;
+				
+			}
+			
 			 
 			if (isset($_REQUEST['wpsg_form_data']))
Index: on.php
===================================================================
--- /cron.php	(revision 7398)
+++ 	(revision )
@@ -1,22 +1,0 @@
-<?php
-
-	/**
-	 * Cron Script fÃŒr wpShopGermany
-	 */
-
-	error_reporting(E_ERROR);
-	ini_set("display_errors", "1");
-	 
-	define('WPSG_CRON', true);
-
-	#require_once(dirname(__FILE__).'/../../../wp-load.php');
-	require_once(ABSPATH.'/wp-load.php');
-
-	date_default_timezone_set("Europe/Berlin");
- 	
-	require_once(plugin_dir_path(__FILE__).'/wpshopgermany.php');
-	
-	$GLOBALS['wpsg_sc']->callMods('cron');
-	$GLOBALS['wpsg_sc']->update_option('wpsg_lastCron', time());
-	
-?>
Index: /mods/wpsg_mod_export.class.php
===================================================================
--- /mods/wpsg_mod_export.class.php	(revision 7398)
+++ /mods/wpsg_mod_export.class.php	(revision 7400)
@@ -1652,5 +1652,5 @@
 			/* Kundenvariablen */
 			$kv = $this->shop->loadPflichtFeldDaten();
-			if (is_array($kv) && sizeof($kv) > 0 && sizeof($kv['custom']) > 0)
+			if (is_array($kv) && sizeof($kv) > 0 && is_array($kv['custom']) && sizeof($kv['custom']) > 0)
 			{
 				
@@ -2119,5 +2119,5 @@
 				case 'produkt_gtin': $return = $produkt['gtin']; break;
 				
-				case 'kunde_id': $return = $kunde['id']; break;
+				case 'kunde_id': $return = @$kunde['id']; break;
 				case 'kunde_nr': $return = $kunde['knr']; break;
 				
@@ -2136,6 +2136,6 @@
 				case 'kunde_fax': $return = $oCustomer->getFax(); break;
 				
-                case 'kunde_email': $return = $kunde['email']; break;		
-				case 'kunde_ustid': $return = $kunde['ustidnr']; break;
+                case 'kunde_email': $return = @$kunde['email']; break;		
+				case 'kunde_ustid': $return = @$kunde['ustidnr']; break;
 				case 'kunde_geb': 
 
Index: /views/mods/mod_downloadplus/settings_edit.phtml
===================================================================
--- /views/mods/mod_downloadplus/settings_edit.phtml	(revision 7398)
+++ /views/mods/mod_downloadplus/settings_edit.phtml	(revision 7400)
@@ -183,10 +183,10 @@
 				<?php echo __('Eintrag in der Crontab:', 'wpsg'); ?>:<br /><br />
 				<span style="font-weight:bold; font-family:monospace;">
-					*/5   *   *   *  *    /usr/bin/php <?php echo WPSG_PATH.DIRECTORY_SEPARATOR; ?>cron.php
+					*/5   *   *   *  *    wget -q --spider <?php site_url().'/?wpsg_cron=1'; ?>
 				</span>
 			</p>
 			<p>
 				<?php echo __('HTTP Aufruf des Cron Scriptes:', 'wpsg'); ?><br /><br />
-				<a href="<?php echo WPSG_PLUGIN_URL; ?>/<?php echo WPSG_FOLDERNAME; ?>/cron.php" target="_blank"><?php echo WPSG_PLUGIN_URL.WPSG_FOLDERNAME; ?>/cron.php</a>
+				<a href="<?php echo site_url(); ?>/?wpsg_cron=1" target="_blank"><?php echo site_url(); ?>/?wpsg_cron=1</a>
 			</p>
 
Index: /views/mods/mod_export/profil.phtml
===================================================================
--- /views/mods/mod_export/profil.phtml	(revision 7398)
+++ /views/mods/mod_export/profil.phtml	(revision 7400)
@@ -90,6 +90,5 @@
                 <?php echo wpsg_drawForm_Text(__('Pfad', 'wpsg'), $this->view['profil']['cron_path'], 'cron_path', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>                
                 <?php echo wpsg_drawForm_Text(__('Letzte AusfÃŒhrung', 'wpsg'), (($this->view['profil']['cron_lastrun'] == '0000-00-00')?__('Noch nie', 'wpsg'):wpsg_formatTimestamp($this->view['profil']['cron_lastrun'], true)), false, array('noP' => false)); ?>
-                <?php echo wpsg_drawForm_Text(__('Cron Pfad', 'wpsg'), WPSG_PATH.DIRECTORY_SEPARATOR.'cron.php', false, array('noP' => false)); ?>
-                <?php echo wpsg_drawForm_Text(__('Cron URL', 'wpsg'), '<a href="'.WPSG_PLUGIN_URL.WPSG_FOLDERNAME.'/cron.php">'.WPSG_PLUGIN_URL.WPSG_FOLDERNAME.'/cron.php</a>', false, array('noP' => false)); ?>
+				<?php echo wpsg_drawForm_Text(__('Cron URL', 'wpsg'), '<a href="'.site_url().'/?wpsg_cron=1">'.site_url().'/?wpsg_cron=1</a>', false, array('noP' => false)); ?>
                 
                 <?php if ($this->view['profil']['export_type'] === wpsg_mod_export::TYPE_ORDER) { ?>
