<?php
/*
###################################################################################
  Bigware Shop 2.3
  Release Datum: 01.01.2007
  
  Bigware Shop
  http://www.bigware.de

  Copyright (c) 2015 Bigware LTD
  (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
  (c) 2015	Bigware LTD

  Copyrightvermerke duerfen nicht entfernt werden.
  ------------------------------------------------------------------------
  Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
  der GNU General Public License, wie von der Free Software Foundation
  veroeffentlicht, weitergeben und/oder modifizieren, entweder gemaess Version 2 
  der Lizenz oder (nach Ihrer Option) jeder spaeteren Version.
  Die Veroeffentlichung dieses Programms erfolgt in der Hoffnung, dass es Ihnen
  von Nutzen sein wird, aber OHNE IRGENDEINE GARANTIE, sogar ohne die
  implizite Garantie der MARKTREIFE oder der VERWENDBARKEIT FUER EINEN
  BESTIMMTEN ZWECK. Details finden Sie in der GNU General Public License.
  
  Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
  Programm erhalten haben. Falls nicht, schreiben Sie an die Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

  Infos:
  ------------------------------------------------------------------------
  Der Bigware Shop wurde vor vielen Jahren bereits aus dem bekannten Shopsystem osCommerce
  weiter- und neuentwickelt.
  Der Bigware Shop legt im hohen Masse Wert auf Bedienerfreundlichkeit, beinhaltet eine leichte
  Installation, viele neue professionelle Werkzeuge und zeichnet sich aus durch eine gro�e 
  Community, die bei Problemen weiterhelfen kann.
  
  Der Bigware Shop ist auf jedem System lauffaehig, welches eine PHP Umgebung
  (ab PHP 4.1.3) und mySQL zur Verfuegung stellt und auf Linux basiert.
 
  Hilfe erhalten Sie im Forum auf www.bigware.de
  
  -----------------------------------------------------------------------
  
 ##################################################################################




*/
?>
<?php
  require('load_this/load_bigware_11.php');
  $action = (isset($_GET['action']) ? $_GET['action'] : '');
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="load_this/style.css">
<script language="javascript" src="load_this/menu.js"></script>
<script type="text/javascript" language="JavaScript">
<!--//
function validateFenster() {
	  var win = window.open("einlesen_fenster_unten.php","Progress","toolbar=no,width=650,height=100,directories=no,status=no,scrollbars=no,resize=no,menubar=no");
	  }
//-->
</script>
</head>
<body  marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php require(FOLDER_RELATIV_INCLUDES . 'load_bigware_9.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td width="<?php echo FRAME_WIDTH; ?>" valign="top">
</td>
<!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageGeneralsign"><?php echo ABOVE_TITLE; ?></td>
            <td class="pageGeneralsign" align="right"><?php echo go_fetch_dividing_up('tranparentes.gif', ABOVE_PICTURE_WIDTH, ABOVE_PICTURE_HEIGHT); ?></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td>
<?php	
	
	if ($abgeschickt != "ja"){
			$query = go_db_query("SELECT * FROM preisportale WHERE id = '1'");
			$werte = go_db_fetch_array($query);

			
			                $link_preissuchmaschine = $werte["link_preissuchmaschine"];
			                $link_preisroboter = $werte["link_preisroboter"];
			                $link_geizhals = $werte["link_geizhals"];
			                $link_kelkoo = $werte["link_kelkoo"];
			                $link_preisauskunft = $werte["link_preisauskunft"];
			                $aktiv_preissuchmaschine = $werte["aktiv_preissuchmaschine"];
			                $aktiv_preisroboter = $werte["aktiv_preisroboter"];
							$preisroboter_status = $werte["preisroboter_status"];
							$preisroboter_lieferzeit_nicht_da = $werte["preisroboter_lieferzeit_nicht_da"];
							$preisroboter_normale_lieferzeit = $werte["preisroboter_normale_lieferzeit"];
							$preisroboter_status_lieferzeit = $werte["preisroboter_status_lieferzeit"];
							$preisroboter_versandkostenfrei = $werte["preisroboter_versandkostenfrei"];
							$aktiv_geizhals = $werte["aktiv_geizhals"];
			                $aktiv_kelkoo = $werte["aktiv_kelkoo"];
			                $aktiv_preisauskunft = $werte["aktiv_preisauskunft"];
			                $inhalt_htaccess_generieren = $werte["inhalt_htaccess_generieren"];
			                $google_feedname = $werte["google_feedname"];
			                $google_ftp_enable = $werte["google_ftp_enable"];
			                $google_ftp_host = $werte["google_ftp_host"];
			                $google_ft_username = $werte["google_ft_username"];
			                $google_ftp_password = $werte["google_ftp_password"];
			                $google_currency_type = $werte["google_currency_type"];
			                $google_default_language = $werte["google_default_language"];
			                $google_destination_file = $werte["google_destination_file"];
                

		                
		
		
	
	
	}
	elseif ($abgeschickt == "ja"){
	?>
	<p><font size="2" color="#FF0000" face="Arial"><? echo TEXT_DATES_UPDATED ?> 
	</font></p>
	<?php
	
	if ($google_ftp_enable == 'checked'){ $google_ftp_enable_save = '1'; }else{ $google_ftp_enable_save = '0'; }
			$query8 = "UPDATE preisportale SET link_preissuchmaschine = '$link_preissuchmaschine', link_preisroboter = '$link_preisroboter', link_geizhals = '$link_geizhals', link_kelkoo = '$link_kelkoo', link_preisauskunft = '$link_preisauskunft', aktiv_preissuchmaschine = '$aktiv_preissuchmaschine', aktiv_preisroboter = '$aktiv_preisroboter', aktiv_geizhals = '$aktiv_geizhals', aktiv_kelkoo = '$aktiv_kelkoo', aktiv_preisauskunft = '$aktiv_preisauskunft', google_feedname = '$google_feedname', google_ftp_enable = '$google_ftp_enable', google_ftp_enable = '$google_ftp_enable_save', google_ftp_host = '$google_ftp_host', google_ft_username = '$google_ft_username', google_ftp_password = '$google_ftp_password', google_currency_type = '$google_currency_type', google_default_language = '$google_default_language', google_destination_file ='$google_destination_file' WHERE id = '1'";		
			$result8 = go_db_query($query8);          	               	
	
			$query = go_db_query("SELECT * FROM preisportale WHERE id = '1'");
			$werte = go_db_fetch_array($query);

			
			                $link_preissuchmaschine = $werte["link_preissuchmaschine"];
			                $link_preisroboter = $werte["link_preisroboter"];
			                $link_geizhals = $werte["link_geizhals"];
			                $link_kelkoo = $werte["link_kelkoo"];
			                $link_preisauskunft = $werte["link_preisauskunft"];
			                $aktiv_preissuchmaschine = $werte["aktiv_preissuchmaschine"];
			                $aktiv_preisroboter = $werte["aktiv_preisroboter"];
							$preisroboter_status = $werte["preisroboter_status"];
							$preisroboter_lieferzeit_nicht_da = $werte["preisroboter_lieferzeit_nicht_da"];
							$preisroboter_normale_lieferzeit = $werte["preisroboter_normale_lieferzeit"];
							$preisroboter_status_lieferzeit = $werte["preisroboter_status_lieferzeit"];
							$preisroboter_versandkostenfrei = $werte["preisroboter_versandkostenfrei"];
			                $aktiv_geizhals = $werte["aktiv_geizhals"];
			                $aktiv_kelkoo = $werte["aktiv_kelkoo"];
			                $aktiv_preisauskunft = $werte["aktiv_preisauskunft"];
			                $inhalt_htaccess_generieren = $werte["inhalt_htaccess_generieren"];
			                $google_feedname = $werte["google_feedname"];
			                $google_ftp_enable = $werte["google_ftp_enable"];
			                $google_ftp_host = $werte["google_ftp_host"];
			                $google_ft_username = $werte["google_ft_username"];
			                $google_ftp_password = $werte["google_ftp_password"];
			                $google_currency_type = $werte["google_currency_type"];
			                $google_default_language = $werte["google_default_language"];
			                $google_destination_file = $werte["google_destination_file"];

	
	
	}
?>
<p><b><font face="Arial" size="2" color="#666666"><? echo _TEXT_SETUP_PRICEPORTAL ?></font></b></p>
<form method="POST" action="main_bigware_98.php">
<font face="Arial">
<input type="hidden" value="ja" name="abgeschickt">
  </font>
  <table border="0" cellpadding="5" cellspacing="1" style="border-collapse: collapse" width="100%" id="AutoNumber1">
    <tr class=infoFrameInside>
      <td valign="top" width="80%" class="TbInsideData">
      
      
      <br>
      <fieldset>
			<legend><? echo go_picture(FOLDER_RELATIV_PICTURES . 'icon_arrow_right.gif'); ?><? echo TEXT_PROVIDER_1 ?></legend>
      <br>
      
      <input type="text" value="<? echo HTTP_CATALOG_SERVER . FOLDER_RELATIV_CATALOG; ?>main_bigware_59.php?action=preissuchmaschine" name="link_preissuchmaschine" size="50"><br>
      <?php echo TEXT_ACTIVATION ?></font>
      <input type="checkbox" name="aktiv_preissuchmaschine" value="checked" <?php echo $aktiv_preissuchmaschine; ?>>
			<a target="_blank" href="<? echo HTTP_CATALOG_SERVER . FOLDER_RELATIV_CATALOG; ?>main_bigware_59.php?action=preissuchmaschine"><? echo TEXT_LINK_CALL ?></a><br>
      <br>
      </fieldset>
      
      
      <br><br>
      <fieldset>
			<legend><? echo go_picture(FOLDER_RELATIV_PICTURES . 'icon_arrow_right.gif'); ?><? echo TEXT_PROVIDER_2 ?></legend>
      <br>
      <input type="text" value="<? echo HTTP_CATALOG_SERVER . FOLDER_RELATIV_CATALOG; ?>main_bigware_59.php?action=preisroboter" name="link_preisroboter" size="50"><br>
      <?php echo TEXT_ACTIVATION ?>
      <input type="checkbox" name="aktiv_preisroboter" value="checked" <?php echo $aktiv_preisroboter; ?>>
      <a target="_blank" href="<? echo HTTP_CATALOG_SERVER . FOLDER_RELATIV_CATALOG; ?>main_bigware_59.php?action=preisroboter"><? echo TEXT_LINK_CALL ?></a><br>
      <br>
      </fieldset>
           
      <br><br>

      <fieldset>
			<legend><? echo go_picture(FOLDER_RELATIV_PICTURES . 'icon_arrow_right.gif'); ?><? echo TEXT_PROVIDER_3 ?></legend>
      <br>
      <input type="text" value="<? echo HTTP_CATALOG_SERVER . FOLDER_RELATIV_CATALOG; ?>main_bigware_59.php?action=geizhals" name="link_geizhals" size="50"><br>
      <?php echo TEXT_ACTIVATION ?>
      <input type="checkbox" name="aktiv_geizhals" value="checked" <?php echo $aktiv_geizhals; ?>>
      <a target="_blank" href="<? echo HTTP_CATALOG_SERVER . FOLDER_RELATIV_CATALOG; ?>main_bigware_59.php?action=geizhals"><? echo TEXT_LINK_CALL ?></a><br>
      <br>
      </fieldset>
      
      
      <br><br>
      <fieldset>
			<legend><? echo go_picture(FOLDER_RELATIV_PICTURES . 'icon_arrow_right.gif'); ?><? echo TEXT_PROVIDER_4 ?></legend>
      <br>
      <input type="text" value="<? echo HTTP_CATALOG_SERVER . FOLDER_RELATIV_CATALOG; ?>main_bigware_59.php?action=kelkoo" name="link_kelkoo" size="50"><br>
      <?php echo TEXT_ACTIVATION ?>
      <input type="checkbox" name="aktiv_kelkoo" value="checked" <?php echo $aktiv_kelkoo; ?>>
      <a target="_blank" href="<? echo HTTP_CATALOG_SERVER . FOLDER_RELATIV_CATALOG; ?>main_bigware_59.php?action=kelkoo"><? echo TEXT_LINK_CALL ?></a><br>
     <br>
     </fieldset>
     
     
     <br><br>
      <fieldset>
			<legend><? echo go_picture(FOLDER_RELATIV_PICTURES . 'icon_arrow_right.gif'); ?><? echo TEXT_PROVIDER_5 ?></legend>
			<br>
      <input type="text" value="<? if ($google_feedname == ''){ echo TEXT_DATA_FEED_NOT_CONFIGURATE; }else{ echo HTTP_CATALOG_SERVER . FOLDER_RELATIV_CATALOG . 'main_bigware_59.php?action=google'; }?>" name="link_google" size="50"><br>
      <a target="_blank" href="<? if ($google_feedname == ''){ echo TEXT_DATA_FEED_NOT_CONFIGURATE; }else{ echo HTTP_CATALOG_SERVER . FOLDER_RELATIV_CATALOG . 'main_bigware_59.php?action=google'; }?>"><? echo TEXT_LINK_CALL ?> <? if ($google_feedname == ''){ echo '=> ' . TEXT_DATA_FEED_NOT_CONFIGURATE; }?></a><br>
			<br>
			<?php echo TEXT_DATA_FEED_NOT_CONFIGURATE_EXPLAIN; ?>
				<table border="0" style="border-collapse: collapse" width="100%">
					<tr class=infoFrameInside>
						<td class="smallText" colspan="3"><?php echo go_fetch_dividing_up('tranparentes.gif', '1', '10'); ?></td>
					</tr>	
					<tr class=infoFrameInside>
						<td class="smallText"><? echo GOOGLE_FTP_ACTIVATION ?></td>
						<td colspan="2" valign="top"><input type="checkbox" name="google_ftp_enable" value="checked" <?php if ($google_ftp_enable == '1'){ echo ' checked'; } ?>></td>
					</tr>
					<tr class=infoFrameInside>
						<td>&nbsp;&nbsp;&nbsp;&nbsp; </td>
						<td class="smallText"><? echo GOOGLE_FTP_HOST ?></td>
						<td><input type="text" name="google_ftp_host" value="<? echo $google_ftp_host; ?>" size="25"></td>
					</tr>
					<tr class=infoFrameInside>
						<td class="smallText" colspan="3"><?php echo go_fetch_dividing_up('tranparentes.gif', '1', '10'); ?></td>
					</tr>	
					<tr class=infoFrameInside>
						<td>&nbsp;&nbsp;&nbsp;&nbsp; </td>
						<td class="smallText"><? echo GOOGLE_FTP_USERNAME ?></td>
						<td><input type="text" name="google_ft_username" value="<? echo $google_ft_username; ?>" size="25"></td>
					</tr>
					<tr class=infoFrameInside>
						<td class="smallText" colspan="3"><?php echo go_fetch_dividing_up('tranparentes.gif', '1', '10'); ?></td>
					</tr>	
					<tr class=infoFrameInside>
						<td>&nbsp;&nbsp;&nbsp;&nbsp; </td>
						<td class="smallText"><? echo GOOGLE_FTP_PASSWORD ?></td>
						<td><input type="text" name="google_ftp_password" value="<? echo $google_ftp_password; ?>" size="25"></td>
					</tr>
					<tr class=infoFrameInside>
						<td class="smallText" colspan="3"><?php echo go_fetch_dividing_up('tranparentes.gif', '1', '10'); ?></td>
					</tr>		
					<tr class=infoFrameInside>
						<td class="smallText"><? echo GOOGLE_CURRENCY_TYPE ?></td>
						<td colspan="2">
							<select name="google_currency_type" size="1">
							<option value="USD"<?php if ($google_currency_type == 'USD') { echo  ' selected';}?>>USD</option>
							<option value="EUR"<?php if ($google_currency_type == 'EUR') { echo ' selected';}?>>EUR</option>
							<option value="GBP"<?php if ($google_currency_type == 'GBP') { echo ' selected';}?>>GBP</option>
							</select>
						</td>
					</tr>
					<tr class=infoFrameInside>
						<td class="smallText" colspan="3"><?php echo go_fetch_dividing_up('tranparentes.gif', '1', '10'); ?></td>
					</tr>		
					<tr class=infoFrameInside>
						<td class="smallText"><? echo GOOGLE_DEFAULT_LANGUAGE ?></td>
						<td colspan="2">
							<?php
							  $languages_array = array();
							  $languages = go_get_languages();
							  for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
							    $languages_array[] = array('id' => $languages[$i]['id'],
							                               'text' => $languages[$i]['name']);
							  }
							?> 
				      <?php echo go_fetch_pull_down_menu('google_default_language', $languages_array, $google_default_language); ?>
				    </td>
					</tr>
					<tr class=infoFrameInside>
						<td class="smallText" colspan="3"><?php echo go_fetch_dividing_up('tranparentes.gif', '1', '10'); ?></td>
					</tr>	
					<tr class=infoFrameInside>
						<td class="smallText"><? echo GOOGLE_DESTINATION_FILE ?></td>
						<td colspan="2"><input type="text" name="google_feedname" value="<? echo $google_feedname; ?>" size="25"></td>
					</tr>
					<tr class=infoFrameInside>
						<td class="smallText" colspan="3"><?php echo go_fetch_dividing_up('tranparentes.gif', '1', '10'); ?></td>
					</tr>	
				</table>
				</fieldset>
      </td>
      <td valign="top" width="20%" class="TbInsideData">
      <p><? echo TEXT_URL_EXPLANATION ?></p>
      <p><br>

      </td>
    </tr>
  </table>
  <p><? echo go_picture_submit('button_update.gif', PICTURE_UPDATE); ?><br>
&nbsp;</p>
</form>

<form method="POST" action="googlefeeder.php">
<input type="hidden" value="ja" name="google_feed_send_true">
  <table border="0" cellpadding="5" cellspacing="1" style="border-collapse: collapse" width="100%" id="AutoNumber1">
    <tr class=infoFrameInside>
      <td valign="top" width="100%" class="TbInsideData">
      <fieldset>
			<legend><? echo TEXT_PROVIDER_5 ?></legend><br><br>
      	<?php
				if (!is_writeable(FOLDER_ABSOLUT_FORMER . 'feeds')){ 
				 echo GOOGLE_FEED_DIR_NOT_WRITEABLE;
				}
				else{
					echo GOOGLE_UPDATE . '<br><br>';
					echo go_picture_submit('button_update.gif', PICTURE_UPDATE);
				}
      	?>
				<br>      	<br>
      	</fieldset>

      </td>
    </tr>
  </table>
  <p><br>
&nbsp;</p>
</form>

            </td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><table border="0" cellpadding="0" cellspacing="2">
              <tr>
                <td colspan="2"><?php echo go_fetch_dividing_up('tranparentes.gif', '1', '10'); ?></td>
              </tr>
<!-- body_text_eof //-->
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(FOLDER_RELATIV_INCLUDES . 'load_bigware_7.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php 
require(FOLDER_RELATIV_INCLUDES . 'load_bigware_6.php'); 
?>