Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

DSGVO für osC. 2.3.4


YePix

Recommended Posts

catalog/saved_data.php
 

<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  ******************************************************************

  saved_data.php - DSGVO
  http://pl-systeme.de
  
  TIPS & TRICKS FOR osCommerce 2.3.xx under: 
  https://www.pl-systeme.de/surfcms.php?pg=1
  
  2.3.4-1 Demoshop:
  https://www.pl-systeme.de/product_info.php?cPath=23&products_id=1
  
  Bootstrap-Responsive Demoshop:
  https://www.pl-systeme.de/product_info.php?cPath=24&products_id=2
  
  ******************************************************************

  Copyright (c) 2010 osCommerce
  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot();
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DSGVO);

  $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_DSGVO));

$pls_countries_query = tep_db_query("select ci.customers_id as customers_id, countries_id, countries_name from " . TABLE_CUSTOMERS . " ci, " . TABLE_COUNTRIES . " where customers_id = '" . (int)$customer_id . "'");
$countries = tep_db_fetch_array($pls_countries_query);

$pls_reviews_query = tep_db_query("select count(*) as number_of_reviews from " . TABLE_REVIEWS . " where customers_id = '" . (int)$customer_id . "'");
$reviews = tep_db_fetch_array($pls_reviews_query);

$pls_orders_query = tep_db_query("select count(*) as number_of_orders from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "'");
$orders = tep_db_fetch_array($pls_orders_query);

$pls_basket_query = tep_db_query("select b.products_id, b.customers_basket_quantity, b.customers_basket_date_added, p.products_model, pd.products_name from customers_basket b left join products p on b.products_id = p.products_id left join products_description pd on b.products_id = pd.products_id where customers_id = '" . (int)$customer_id  . "'");

$pls_account_query = tep_db_query("select customers_email_address, customers_telephone, customers_fax, customers_newsletter, customers_dob from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
$account = tep_db_fetch_array($pls_account_query);
$newsletter = $account['customers_newsletter'];
if ($newsletter == '1') {
   $newsletter_text = ENTRY_NEWSLETTER_YES;
   } else {
   $newsletter_text = ENTRY_NEWSLETTER_NO;
}

$pls_customers_info_query = tep_db_query("select customers_info_id, customers_info_date_of_last_logon, customers_info_number_of_logons, customers_info_date_account_created, customers_info_date_account_last_modified, global_product_notifications from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "'");
$customers_info = tep_db_fetch_array($pls_customers_info_query);
$notifications = $customers_info['global_product_notifications'];
if ($notifications == '1') {
   $notifications_text = ENTRY_NOTIFICATIONS_YES;
   } else {
   $notifications_text = ENTRY_NOTIFICATIONS_NO;
}

$pls_anrede_gender_query = tep_db_query("SELECT customers_gender FROM " . TABLE_CUSTOMERS . " WHERE customers_id = '" . $customer_id . "'");
$pls_anrede_gender = tep_db_fetch_array($pls_anrede_gender_query);
$gender = $pls_anrede_gender['customers_gender'];
if ($gender == 'm') {
   $gender_text = MALE;
   } else {
   $gender_text = FEMALE;
}

$pls_tax_info_query = tep_db_query("SELECT products_id, products_tax_class_id FROM " . TABLE_PRODUCTS . " WHERE products_status = '1' and products_id = '" . (int)$_GET['products_id'] ."'");
$pls_tax_info = tep_db_fetch_array($pls_tax_info_query);
$taxinfo = $pls_tax_info['products_tax_class_id'];

if (DISPLAY_PRICE_WITH_TAX == 'true') {
   $taxinfo_text = TAX_INFO;
   } else {
   $taxinfo_text = TAX_INFO_OFF;
}

		HEADING_IPRECORDED_1;
		$ip_iprecorded = YOUR_IP_IPRECORDED;
		$isp_iprecorded = YOUR_ISP_IPRECORDED;
 		$ip = $_SERVER["REMOTE_ADDR"];
		$client = gethostbyaddr($_SERVER["REMOTE_ADDR"]);
		$str = preg_split("/\./", $client);
		$i = count($str);
		$x = $i - 1;
		$n = $i - 2;
		$isp = $str[$n] . "." . $str[$x];
         
$pls_separator = '<br><img src="images/separator_pixel.gif" alt="" height="1" width="100%" align="middle" border="0" />';
$pls_separator_no_break = '<img src="images/separator_pixel.gif" alt="" height="1" width="100%" align="middle" border="0" />';

  require(DIR_WS_INCLUDES . 'template_top.php');
?>
<script  type="text/javascript" language="javascript">
function printPage()
{
if (window.print) {
jetztdrucken = confirm('Seite drucken ?');
if (jetztdrucken) window.print();
   }
}
</script>
<div class="pls_alert-SiteContainer">
<div class="pls_CartModuleHtgr"><div class="pls_margin">
<?php echo TEXT_GDPR; ?>   
</div></div>
<div class="page-header pls_margin">
  <h3><?php echo HEADING_TITLE; ?></h3>
</div>

<div class="pls_margin pls_panel">
<?php 
$addresses_query = tep_db_query("select address_book_id, customers_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' order by firstname, lastname");
$addresses = tep_db_fetch_array($addresses_query);



echo '<h3>' . CATEGORY_PERSONAL . '</h3><br>' .
ENTRY_GENDER . '&nbsp;' . $gender_text . $pls_separator . 
ENTRY_FIRST_NAME_TEXT . '&nbsp;' . stripslashes($addresses['firstname'] . $pls_separator . 
ENTRY_LAST_NAME_TEXT . '&nbsp;' . $addresses['lastname'] . $pls_separator . 
ENTRY_DATE_OF_BIRTH . '&nbsp;' . tep_date_long ($account['customers_dob']) . $pls_separator . 
TEXT_CUSTOMMER_NR . '&nbsp;' . stripslashes($countries['customers_id']) . $pls_separator . 
ENTRY_STREET_ADDRESS_TEXT . '&nbsp;' . $addresses['street_address'] . $pls_separator . 
ENTRY_POST_CODE_TEXT . '&nbsp;/&nbsp;' . ENTRY_CITY_TEXT . '&nbsp;' . $addresses['postcode'] . '&nbsp;' . $addresses['city'] . $pls_separator .
ENTRY_COUNTRY . '&nbsp;' . $countries['countries_name'] . $pls_separator . 
ENTRY_STATE . '&nbsp;' . $addresses['entry_state']) . $pls_separator .
'';?><br>
</div><div class="pls_margin pls_panel">
<?php echo '<h3>' . CATEGORY_CONTACT . '</h3><br>' .
ENTRY_EMAIL_ADDRESS . '&nbsp;' . stripslashes($account['customers_email_address']) . $pls_separator .
ENTRY_TELEPHONE_NUMBER . '&nbsp;' . stripslashes($account['customers_telephone']) . $pls_separator .
ENTRY_FAX_NUMBER . '&nbsp;' . stripslashes($account['customers_fax']) . $pls_separator .
ENTRY_COMPANY . '&nbsp;' . stripslashes($addresses['entry_company']) . $pls_separator .
'';?><br>
</div><div class="pls_margin pls_panel">
<?php echo '<h3>' . CATEGORY_SITEINFO . '</h3><br>' .
ENTRY_NEWSLETTER . '&nbsp;' . $newsletter_text . $pls_separator .
ENTRY_TEXT_TOTAL_NOTIFICATIONS . '&nbsp;' . $notifications_text . $pls_separator .
ENTRY_TEXT_ACCOUNT_CREATED . '&nbsp;' . tep_date_long ($customers_info['customers_info_date_account_created']) . $pls_separator .
ENTRY_TEXT_AGREED_CONDITIONS . '&nbsp;' . tep_date_long ($customers_info['customers_info_date_account_created']) . '&nbsp;' . TIME_FORMAT_TEXT_WHAT . '&nbsp;' . tep_time_long ($customers_info['customers_info_date_account_created']) . '&nbsp;' . TIME_FORMAT_TEXT_CLOCK . $pls_separator .
ENTRY_TEXT_ACCOUNT_LAST_MODIFIED . '&nbsp;' . tep_date_long ($customers_info['customers_info_date_account_last_modified']) . '&nbsp;' . TIME_FORMAT_TEXT_WHAT . '&nbsp;' . tep_time_short ($customers_info['customers_info_date_account_last_modified']) . '&nbsp;' . TIME_FORMAT_TEXT_CLOCK . $pls_separator .
ENTRY_TEXT_LAST_LOGIN . '&nbsp;' . tep_date_long ($customers_info['customers_info_date_of_last_logon']) . $pls_separator .
ENTRY_TEXT_LOGIN_TOTAL . '&nbsp;' . $customers_info['customers_info_number_of_logons'] . $pls_separator .
ENTRY_TEXT_REVIEWS_TOTAL . '&nbsp;' . $reviews['number_of_reviews'] . $pls_separator .
'';?>
<?php 
echo ENTRY_TEXT_ORDERS_TOTAL . '&nbsp;' . $orders['number_of_orders'] . '<br><br>';?>


<?php echo $pls_separator_no_break;?>

</div><div class="pls_margin pls_panel">
<?php echo '<h3>' . CATEGORY_TEMPORERY . '</h3><br>';?>
<?php echo TEXT_CUSTOMMER_IP . '&nbsp;' . $ip_iprecorded . ': ' . $ip . '&nbsp; <font color="#d10000"><strong>|</strong></font> &nbsp;' . $isp_iprecorded . ': ' . $client . $pls_separator;?> 

<?php if ($cart->count_contents() > 0) {
echo '<br><br>' . ENTRY_TEXT_CART_TOTAL . '&nbsp;' . $cart->count_contents() . '&nbsp;' . ENTRY_TEXT_CART_PRODUCTS . '&nbsp;' . $currencies->format($cart->show_total()) . $taxinfo_text . '<br><br>';
while ( $basket = tep_db_fetch_array($pls_basket_query)){
echo $basket['customers_basket_quantity'] . ' x ' . $basket['products_name'] . '<br>';}
}else{ 
echo TEXT_NO_ITEMS_IN_CART;
}?>
</div>
<div class="noprint">
<div class="pls_margin pls_panel">
<div class="buttonSet"><div align="center">
<?php echo tep_draw_button(IMAGE_BUTTON_VIEW_ACCOUNT, 'fa fa-vcard-o', tep_href_link(FILENAME_ACCOUNT));?>
</div></div>
<br>
<div class="buttonSet"><div align="center">
<a href="javascript:printPage()"><?php echo tep_draw_button(IMAGE_BUTTON_PRINT_PAGE, 'fa fa-print', null, null, "Print", 'btn-reviews btn-block btn-lg');?>
</div></div>
</div>
</div>

</div>
<p>

<?php
  require(DIR_WS_INCLUDES . 'template_bottom.php');
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>


*************************************************

catalog/includes/languages/german/saved_data.php
 

<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  ******************************************************************

  saved_data.php - DSGVO
  http://pl-systeme.de
  
  TIPS & TRICKS FOR osCommerce 2.3.xx under: 
  https://www.pl-systeme.de/surfcms.php?pg=1
  
  2.3.4-1 Demoshop:
  https://www.pl-systeme.de/product_info.php?cPath=23&products_id=1
  
  Bootstrap-Responsive Demoshop:
  https://www.pl-systeme.de/product_info.php?cPath=24&products_id=2
  
  ******************************************************************

  Copyright (c) 2010 osCommerce
  Released under the GNU General Public License
*/

define('HEADING_TITLE', 'Ihre bei uns gespeicherten Daten');
define('NAVBAR_TITLE', 'GDPR');

define('TEXT_CUSTOMMER_IP', 'Ihre IP-Adresse:');
define('TEXT_CUSTOMMER_IP_NO_SAVE', 'IP wird zur Zeit nicht gespeichert:');

define('CATEGORY_SITEINFO', 'Ihre Systeminformationen');
define('ENTRY_TEXT_ACCOUNT_CREATED', 'Kundenkonto eröffnet am:');
define('ENTRY_TEXT_AGREED_CONDITIONS', 'Kontoeröffnung mit Bestätigung von Datenschutz, Widerruf und AGB am:');

define('ENTRY_TEXT_LAST_AGREED_WITHDRAWAL', 'Letzte Widerrufsnutzung mit Widerrufsbelehrung am:');

define('ENTRY_TEXT_ACCOUNT_LAST_MODIFIED', 'Letzte Änderung Ihrer Kontodaten am:');
define('ENTRY_TEXT_LAST_LOGIN', 'Ihre letzte Anmeldung:');
define('ENTRY_TEXT_LOGIN_TOTAL', 'Anmeldungen total:');
define('ENTRY_TEXT_REVIEWS_TOTAL', 'Ihre geschriebenen Bewertungen:');
define('ENTRY_TEXT_ORDERS_TOTAL', 'Anzahl Ihrer bisherigen Bestellungen:');

define('ENTRY_TEXT_POINTS_TOTAL', 'Anzahl Ihrer Bonuspunkte:');
define('ENTRY_TEXT_POINTS_EXPIRES', 'Ablaufdatum:');

define('CATEGORY_TEMPORERY', 'Vorübergehend gespeichert');
define('ENTRY_TEXT_CART_TOTAL', 'Ihr Warenkorb:');
define('ENTRY_TEXT_CART_PRODUCTS', 'Artikel, im Gesamtwert von:');
define('TEXT_NO_ITEMS_IN_CART', 'Ihr Warenkorb ist leer');

define('ENTRY_TEXT_WISHLIST_TOTAL', 'Ihre Merkliste:');
define('ENTRY_TEXT_WISHLIST_PRODUCTS', 'Artikel, im Gesamtwert von:');
define('TEXT_WISHLIST_NO_ITEMS', 'Ihre Merkliste ist leer');

define('ENTRY_TEXT_TOTAL_NOTIFICATIONS', 'Produktnews:');
define('ENTRY_NOTIFICATIONS_YES', 'Abboniert');
define('ENTRY_NOTIFICATIONS_NO', 'Nicht abboniert');

define('SAVED_DATA_TEXT_MAIN_TITLE', 'Letzten hier ansehen ');

define('TEXT_ORDER_PRODUCTS', 'Artikel:');
define('TEXT_ORDER_COST', 'Summe:');
define('TEXT_ORDER_DATE', 'Bestelldatum:');
define('TEXT_ORDER_SHIPPED_TO', 'Lieferanschrift:');
define('TEXT_ORDER_NUMBER', 'Bestellnummer:');
define('TEXT_NO_PURCHASES', 'Sie haben noch keine Bestellungen getätigt.');


define('IMAGE_BUTTON_VIEW_ACCOUNT', 'zum Kundenkonto');
define('IMAGE_BUTTON_PRINT_PAGE', 'Seite drucken');

define('TEXT_GDPR', '
Die Datenschutz-Grundverordnung (DSGVO) (Verordnung (EU) 2016/679) ist eine Verordnung, mit der das Europäische Parlament, der Rat der Europäischen Union und die Europäische Kommission den Datenschutz für alle Personen in der Europäischen Union stärken und vereinheitlichen wollen (EU).
Die Datenschutz-Grundverordnung besagt, dass Sie Ihre persönlichen Informationen, die wir besitzen, überprüfen können. Wenn Sie EU-Bürger sind, können Sie die Löschung einiger dieser Daten beantragen.
');


?>


 

*************************************************

INSTALL:

Ein Bild namens: separator_pixel.gif
Erstellen und in das catalog/images/ einspielen.

###############################################
catalog/includes/filenames.php

einfügen:

define('FILENAME_DSGVO', 'saved_data.php');
###############################################
stylesheet.css

am ende der Datei einfügen:

.pls_alert-SiteContainer{background-color:#FFFFFF;border:solid 1px #CCCCCC;padding:8px;border-radius:4px 4px 0px 0px;}
.pls_CartModuleHtgr{border:1px solid #FF6600;-moz-box-shadow: 2px 2px 3 #CCCCCC;-webkit-box-shadow: 2px 2px 0 #333333;box-shadow: 5px 2px 5 #000000;border-radius:4px 4px 0px 0px;background:#FFCC99 url() 100% 100% repeat-x;color:#000000;}
.pls_margin{margin:10px;}
.pls_panel{padding:20px;border:solid 1px #ccc;}


###############################################
catalog/includes/languages/german.php

einfügen:

define('TIME_FORMAT_LONG', '%H:%M:%S');
define('TIME_FORMAT_SHORT', '%H:%M');
define('TIME_FORMAT_TEXT_WHAT', 'um');
define('TIME_FORMAT_TEXT_CLOCK', 'Uhr');

define('ENTRY_FIRST_NAME_TEXT', 'Ihr Vorname:');
define('ENTRY_LAST_NAME_TEXT', 'Ihr Nachname:');
define('TEXT_CUSTOMMER_NR', 'Kundennummer:');
define('ENTRY_STREET_ADDRESS_TEXT', 'Strasse und Hausnummer:');
define('ENTRY_POST_CODE_TEXT', 'Postleitzahl: / Ort:');
define('ENTRY_FIRST_NAME_TEXT', 'Ihr Vorname:');
define('ENTRY_FIRST_NAME_TEXT', 'Ihr Vorname:');
define('HEADING_IPRECORDED_1','HINWEIS! Die folgende IP Adresse und ISP wurde für Sicherheitszwecke aufgezeichnet.');
define('YOUR_IP_IPRECORDED', 'IP');
define('YOUR_ISP_IPRECORDED', 'ISP');

###############################################
catalog/includes/functions/general.php

finden:

    if (@date('Y', mktime($hour, $minute, $second, $month, $day, $year)) == $year) {
      return date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, $year));
    } else {
      return preg_replace('/2037$/', $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037)));
    }
  }

danach einfügen:

// Output a raw time string in the selected locale time format
// $raw_date needs to be in this format: HH:MM:SS
  function tep_time_long($raw_date) {
    if ( ($raw_date == '0000-00-00 00:00:00') || ($raw_date == '') ) return false;

    $hour = (int)substr($raw_date, 11, 2);
    $minute = (int)substr($raw_date, 14, 2);
    $second = (int)substr($raw_date, 17, 2);

    return strftime(TIME_FORMAT_LONG, mktime($hour,$minute,$second));
  }

// Output a raw time string in the selected locale time format
// $raw_date needs to be in this format: HH:MM
  function tep_time_short($raw_date) {
    if ( ($raw_date == '0000-00-00 00:00:00') || ($raw_date == '') ) return false;

    $hour = (int)substr($raw_date, 11, 2);
    $minute = (int)substr($raw_date, 14, 2);

    return strftime(TIME_FORMAT_SHORT, mktime($hour,$minute));
  }

 

Edited by Yepi
Link to comment
Share on other sites

×
×
  • Create New...