PDF rausgenommen

This commit is contained in:
aschwarz
2023-01-23 11:03:31 +01:00
parent 82d562a322
commit a6523903eb
28078 changed files with 4247552 additions and 2 deletions

View File

@ -0,0 +1,15 @@
<?php
/* ----------------------------------------------------------------------
$Id: deu.php,v 1.1 2007/06/07 17:29:24 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_BREADCRUMB_NAME', 'Breadcrumb');
define('PLUGIN_EVENT_BREADCRUMB_DESC', 'Breadcrumb builder for easy navigation.');

View File

@ -0,0 +1,15 @@
<?php
/* ----------------------------------------------------------------------
$Id: eng.php,v 1.1 2007/06/07 17:29:24 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_BREADCRUMB_NAME', 'Breadcrumb');
define('PLUGIN_EVENT_BREADCRUMB_DESC', 'Breadcrumb builder for easy navigation.');

View File

@ -0,0 +1,118 @@
<?php
/* ----------------------------------------------------------------------
$Id: oos_event_breadcrumb.php,v 1.1 2007/06/07 17:29:24 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2004 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
class oos_event_breadcrumb {
var $name;
var $description;
var $uninstallable;
var $depends;
var $preceeds;
var $author;
var $version;
var $requirements;
/**
* class constructor
*/
public function __construct() {
$this->name = PLUGIN_EVENT_BREADCRUMB_NAME;
$this->description = PLUGIN_EVENT_BREADCRUMB_DESC;
$this->uninstallable = FALSE;
$this->author = 'MyOOS Development Team';
$this->version = '2.0';
$this->requirements = array(
'oos' => '1.7.0',
'smarty' => '2.6.9',
'adodb' => '4.62',
'php' => '5.9.0'
);
}
function create_plugin_instance() {
global $oBreadcrumb, $session, $aLang, $sCanonical, $aCategoryPath;
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$aContents = oos_get_content();
// include the breadcrumb class and start the breadcrumb trail
include_once MYOOS_INCLUDE_PATH . '/includes/classes/class_breadcrumb.php';
$oBreadcrumb = new breadcrumb();
$oBreadcrumb->add($aLang['header_title_top'], oos_href_link($aContents['home']));
$nPage = isset($_GET['page']) ? intval( $_GET['page'] ) : 1;
// add category names or the manufacturer name to the breadcrumb trail
if (isset($aCategoryPath) && (count($aCategoryPath) > 0)) {
$nLanguageID = isset($_SESSION['language_id']) ? intval( $_SESSION['language_id'] ) : DEFAULT_LANGUAGE_ID;
$n = count($aCategoryPath);
for ($i = 0, $n; $i < $n; $i++) {
$categories_descriptiontable = $oostable['categories_description'];
$categories_sql = "SELECT categories_name
FROM $categories_descriptiontable
WHERE categories_id = '" . intval($aCategoryPath[$i]) . "'
AND categories_languages_id = '" . intval($nLanguageID) . "'";
$categories = $dbconn->Execute($categories_sql);
if ($categories->RecordCount() > 0) {
$oBreadcrumb->add($categories->fields['categories_name'], oos_href_link($aContents['shop'], 'category=' . implode('_', array_slice($aCategoryPath, 0, ($i+1)))));
$sCanonical = oos_href_link($aContents['shop'], 'category=' . implode('_', array_slice($aCategoryPath, 0, ($i+1))) . '&amp;page=' . $nPage, FALSE, TRUE);
} else {
break;
}
}
} elseif (isset($_GET['manufacturers_id']) && is_numeric($_GET['manufacturers_id'])) {
$manufacturers_id = intval($_GET['manufacturers_id']);
$manufacturerstable = $oostable['manufacturers'];
$manufacturers_sql = "SELECT manufacturers_name
FROM $manufacturerstable
WHERE manufacturers_id = '" . intval($manufacturers_id) . "'";
$manufacturers = $dbconn->Execute($manufacturers_sql);
if ($manufacturers->RecordCount() > 0) {
$oBreadcrumb->add($manufacturers->fields['manufacturers_name'], oos_href_link($aContents['shop'], 'manufacturers_id=' . $manufacturers_id));
$sCanonical = oos_href_link($aContents['shop'], 'manufacturers_id=' . $manufacturers_id . '&amp;page=' . $nPage, FALSE, TRUE);
}
}
return TRUE;
}
function install() {
return FALSE;
}
function remove() {
return FALSE;
}
function config_item() {
return FALSE;
}
}

View File

@ -0,0 +1,15 @@
<?php
/* ----------------------------------------------------------------------
$Id: deu.php,v 1.1 2007/06/07 17:29:24 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_CATEGORY_PATH_NAME', 'Kategorie Pfad');
define('PLUGIN_EVENT_CATEGORY_PATH_DESC', 'Analysiert den Kategorie Pfad.');

View File

@ -0,0 +1,15 @@
<?php
/* ----------------------------------------------------------------------
$Id: eng.php,v 1.1 2007/06/07 17:29:24 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_CATEGORY_PATH_NAME', 'Category Path');
define('PLUGIN_EVENT_CATEGORY_PATH_DESC', 'Parses the category path.');

View File

@ -0,0 +1,91 @@
<?php
/* ----------------------------------------------------------------------
$Id: oos_event_category_path.php,v 1.1 2007/06/07 17:29:24 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2004 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
class oos_event_category_path {
var $name;
var $description;
var $uninstallable;
var $depends;
var $preceeds;
var $author;
var $version;
var $requirements;
/**
* class constructor
*/
public function __construct() {
$this->name = PLUGIN_EVENT_CATEGORY_PATH_NAME;
$this->description = PLUGIN_EVENT_CATEGORY_PATH_DESC;
$this->uninstallable = FALSE;
$this->author = 'MyOOS Development Team';
$this->version = '1.0';
$this->requirements = array(
'oos' => '1.5.0',
'smarty' => '2.6.9',
'adodb' => '4.62',
'php' => '5.9.0'
);
}
function create_plugin_instance() {
global $sCategory, $aCategoryPath, $nCurrentCategoryID;
include_once MYOOS_INCLUDE_PATH . '/includes/classes/class_category_tree.php';
if (isset($_GET['category'])) {
$sCategory = oos_var_prep_for_os($_GET['category']);
} elseif (isset($_GET['products_id']) && !isset($_GET['manufacturers_id'])) {
$sCategory = oos_get_product_path($_GET['products_id']);
} else {
$sCategory = '';
}
if (!empty($sCategory)) {
$aCategoryPath = oos_parse_category_path($sCategory);
$sCategory = implode('_', $aCategoryPath);
$nCurrentCategoryID = end($aCategoryPath);
} else {
$nCurrentCategoryID = 0;
}
return TRUE;
}
function install() {
return FALSE;
}
function remove() {
return FALSE;
}
function config_item() {
return FALSE;
}
}

View File

@ -0,0 +1,15 @@
<?php
/* ----------------------------------------------------------------------
$Id: deu.php,v 1.1 2007/06/08 15:02:12 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_DOWN_FOR_MAINTENANCE_NAME', 'Shop abschalten');
define('PLUGIN_EVENT_DOWN_FOR_MAINTENANCE_DESC', 'M&ouml;chten Sie den Shop abschalten?');

View File

@ -0,0 +1,15 @@
<?php
/* ----------------------------------------------------------------------
$Id: eng.php,v 1.1 2007/06/08 15:02:12 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_DOWN_FOR_MAINTENANCE_NAME', 'Shop abschalten');
define('PLUGIN_EVENT_DOWN_FOR_MAINTENANCE_DESC', 'Down for Maintenance');

View File

@ -0,0 +1,90 @@
<?php
/* ----------------------------------------------------------------------
$Id: oos_event_down_for_maintenance.php,v 1.1 2007/06/08 15:02:12 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
class oos_event_down_for_maintenance {
var $name;
var $description;
var $uninstallable;
var $depends;
var $preceeds;
var $author;
var $version;
var $requirements;
/**
* class constructor
*/
public function __construct() {
$this->name = PLUGIN_EVENT_DOWN_FOR_MAINTENANCE_NAME;
$this->description = PLUGIN_EVENT_DOWN_FOR_MAINTENANCE_DESC;
$this->uninstallable = TRUE;
$this->author = 'MyOOS Development Team';
$this->version = '1.0';
$this->requirements = array(
'oos' => '1.5.0',
'smarty' => '2.6.9',
'adodb' => '4.62',
'php' => '5.9.0'
);
}
function create_plugin_instance() {
$aContents = oos_get_content();
$bRedirect = TRUE;
if ($_GET['content'] == $aContents['info_down_for_maintenance']) {
$bRedirect = FALSE;
}
// newsletter
if ($_GET['content'] == $aContents['newsletter']) {
$bRedirect = FALSE;
}
// imprint
if ($_GET['content'] == $aContents['information']) {
$bRedirect = FALSE;
}
if ($bRedirect == TRUE) {
oos_redirect(oos_href_link($aContents['info_down_for_maintenance'], '', TRUE, FALSE));
}
return TRUE;
}
function install() {
return TRUE;
}
function remove() {
return TRUE;
}
function config_item() {
return FALSE;
}
}

View File

@ -0,0 +1,19 @@
<?php
/* ----------------------------------------------------------------------
$Id: deu.php,v 1.1 2007/06/08 15:02:12 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_FEATURED_NAME', 'Zeige \'Top Angebote\' an');
define('PLUGIN_EVENT_FEATURED_DESC', 'Um Top Angebote auf der Startseite anzuzeigen');
define('MAX_DISPLAY_FEATURED_PRODUCTS_TITLE', 'Maximale Anzahl der \'Top Angebote\'');
define('MAX_DISPLAY_FEATURED_PRODUCTS_DESC', 'Dies ist die maximale Anzahl der Produkte in diesem Block, die auf der Startseite angezeigt werden.');

View File

@ -0,0 +1,19 @@
<?php
/* ----------------------------------------------------------------------
$Id: eng.php,v 1.1 2007/06/08 15:02:12 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_FEATURED_NAME', 'Display Featured Products');
define('PLUGIN_EVENT_FEATURED_DESC', 'Set to true or false in order to display featured.');
define('MAX_DISPLAY_FEATURED_PRODUCTS_TITLE', 'Maximum Display of Featured');
define('MAX_DISPLAY_FEATURED_PRODUCTS_DESC', 'This is the maximum amount of items to display on the front page.');

View File

@ -0,0 +1,97 @@
<?php
/* ----------------------------------------------------------------------
$Id: oos_event_featured.php,v 1.1 2007/06/08 15:02:12 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
class oos_event_featured {
var $name;
var $description;
var $uninstallable;
var $depends;
var $preceeds;
var $author;
var $version;
var $requirements;
/**
* class constructor
*/
public function __construct() {
$this->name = PLUGIN_EVENT_FEATURED_NAME;
$this->description = PLUGIN_EVENT_FEATURED_DESC;
$this->uninstallable = TRUE;
$this->author = 'MyOOS Development Team';
$this->version = '2.0';
$this->requirements = array(
'oos' => '1.7.0',
'smarty' => '2.6.9',
'adodb' => '4.62',
'php' => '5.9.0'
);
}
function create_plugin_instance() {
include_once MYOOS_INCLUDE_PATH . '/includes/functions/function_featured.php';
oos_expire_featured();
return TRUE;
}
function install() {
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$blocktable = $oostable['block'];
$dbconn->Execute("UPDATE $blocktable
SET block_status = 1
WHERE block_file = 'specials'");
$today = date("Y-m-d H:i:s");
$configurationtable = $oostable['configuration'];
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_DISPLAY_FEATURED_PRODUCTS', '6', 6, 1, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
return TRUE;
}
function remove() {
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$configurationtable = $oostable['configuration'];
$dbconn->Execute("DELETE FROM $configurationtable WHERE configuration_key in ('" . implode("', '", $this->config_item()) . "')");
return TRUE;
}
function config_item() {
return array('MAX_DISPLAY_FEATURED_PRODUCTS');
}
}

View File

@ -0,0 +1,45 @@
<?php
/* ----------------------------------------------------------------------
$Id: deu.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_MAIL_NAME', 'Sende E-Mails');
define('PLUGIN_EVENT_MAIL_DESC', 'Verschicke E-Mails');
define('SEND_EXTRA_ORDER_EMAILS_TO_TITLE', 'Zus&auml;tzliche Bestellbest&auml;tigung per Mail senden');
define('SEND_EXTRA_ORDER_EMAILS_TO_DESC', 'Sendet zus&auml;tzliche Bestellbenachrichtigungen an folgende E-Mail Adresse, in diesem Format: Name 1 &lt;email@adresse1&gt;');
define('EMAIL_TRANSPORT_TITLE', 'E-Mail Versandmethode');
define('EMAIL_TRANSPORT_DESC', 'Definiert, ob dieser Server eine lokale Verbindung zu sendmail oder eine SMTP-Verbindung &uuml;ber TCP/IP benutzt. Bei Servern, die unter Windows oder MacOS laufen sollte SMTP eingetragen werden.');
define('EMAIL_LINEFEED_TITLE', 'E-Mail Linefeeds');
define('EMAIL_LINEFEED_DESC', 'Defines the character sequence used to separate mail headers.');
define('EMAIL_USE_HTML_TITLE', 'Benutze MIME HTML beim Versand von E-Mails');
define('EMAIL_USE_HTML_DESC', 'Sende E-Mails im HTML-Format');
define('ENTRY_EMAIL_ADDRESS_CHECK_TITLE', 'Pr&uuml;fe E-Mail Adressen &uuml;ber DNS');
define('ENTRY_EMAIL_ADDRESS_CHECK_DESC', 'E-Mail Adressen werden durch einen DNS-Server &uuml;berpr&uuml;ft.');
define('OOS_SMTPAUTH_TITLE', 'SMTP Anmeldung');
define('OOS_SMTPAUTH_DESC', 'Ist eine Anmeldung notwendig?');
define('OOS_SMTPUSER_TITLE', 'SMTP Benutzer');
define('OOS_SMTPUSER_DESC', 'SMTP Benutzer');
define('OOS_SMTPPASS_TITLE', 'SMTP Passwort');
define('OOS_SMTPPASS_DESC', 'SMTP Passwort');
define('OOS_SMTPHOST_TITLE', 'Server');
define('OOS_SMTPHOST_DESC', '[hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com")');
define('OOS_SENDMAIL_TITLE', 'Pfade zu sendmail');
define('OOS_SENDMAIL_DESC', '/var/qmail/bin/sendmail');

View File

@ -0,0 +1,45 @@
<?php
/* ----------------------------------------------------------------------
$Id: eng.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_MAIL_NAME', 'Send E-Mails');
define('PLUGIN_EVENT_MAIL_DESC', 'Send out e-mails');
define('SEND_EXTRA_ORDER_EMAILS_TO_TITLE', 'Send Extra Order Emails To');
define('SEND_EXTRA_ORDER_EMAILS_TO_DESC', 'Send extra order emails to the following email addresses, in this format: Name 1 &lt;email@address1&gt;');
define('EMAIL_TRANSPORT_TITLE', 'E-Mail Transport Method.');
define('EMAIL_TRANSPORT_DESC', 'Defines if this server uses a local connection to sendmail or uses an SMTP connection via TCP/IP. Servers running on Windows and MacOS should change this setting to SMTP.');
define('EMAIL_LINEFEED_TITLE', 'E-Mail Linefeeds');
define('EMAIL_LINEFEED_DESC', 'Defines the character sequence used to separate mail headers.');
define('EMAIL_USE_HTML_TITLE', 'Use MIME HTML When Sending Emails');
define('EMAIL_USE_HTML_DESC', 'Send e-mails in HTML format');
define('ENTRY_EMAIL_ADDRESS_CHECK_TITLE', 'Verify E-Mail Addresses Through DNS');
define('ENTRY_EMAIL_ADDRESS_CHECK_DESC', 'Verify e-mail address through a DNS server');
define('OOS_SMTPAUTH_TITLE', 'Sets SMTP authentication.');
define('OOS_SMTPAUTH_DESC', ' Utilizes the Username and Password variables.');
define('OOS_SMTPUSER_TITLE', 'SMTP username');
define('OOS_SMTPUSER_DESC', 'SMTP username');
define('OOS_SMTPPASS_TITLE', 'SMTP password');
define('OOS_SMTPPASS_DESC', 'SMTP password');
define('OOS_SMTPHOST_TITLE', 'Sets the SMTP hosts.');
define('OOS_SMTPHOST_DESC', 'All hosts must be separated by a semicolon. You can also specify a different port for each host by using this format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com"). Hosts will be tried in order.');
define('OOS_SENDMAIL_TITLE', 'Sets the path of the sendmail program');
define('OOS_SENDMAIL_DESC', '/var/qmail/bin/sendmail');

View File

@ -0,0 +1,100 @@
<?php
/* ----------------------------------------------------------------------
$Id: oos_event_mail.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
class oos_event_mail {
var $name;
var $description;
var $uninstallable;
var $depends;
var $preceeds = 'session';
var $author;
var $version;
var $requirements;
/**
* class constructor
*/
public function __construct() {
$this->name = PLUGIN_EVENT_MAIL_NAME;
$this->description = PLUGIN_EVENT_MAIL_DESC;
$this->uninstallable = TRUE;
$this->preceeds = 'session';
$this->author = 'MyOOS Development Team';
$this->version = '1.0';
$this->requirements = array(
'oos' => '1.7.0',
'smarty' => '2.6.9',
'adodb' => '4.62',
'php' => '5.9.0'
);
}
function create_plugin_instance() {
return TRUE;
}
function install() {
// Get database information
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$today = date("Y-m-d H:i:s");
$configurationtable = $oostable['configuration'];
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('SEND_EXTRA_ORDER_EMAILS_TO', '', 6, 1, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_TRANSPORT', 'mail', 6, 3, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, 'oos_cfg_select_option(array(\'mail\', \'sendmail\', \'smtp\'),')");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_LINEFEED', 'LF', 6, 4, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, 'oos_cfg_select_option(array(\'LF\', \'CRLF\'),')");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_USE_HTML', 'false', 6, 5, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, 'oos_cfg_select_option(array(\'true\', \'false\'),')");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('ENTRY_EMAIL_ADDRESS_CHECK', 'false', 6, 6, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, 'oos_cfg_select_option(array(\'true\', \'false\'),')");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('OOS_SMTPAUTH', 'true', 6, 7, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, 'oos_cfg_select_option(array(\'true\', \'false\'),')");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('OOS_SMTPUSER', '', 6, 8, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('OOS_SMTPPASS', '', 6, 9, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('OOS_SMTPHOST', '', 6, 10, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('OOS_SENDMAIL', '', 6, 11, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
return TRUE;
}
function remove() {
// Get database information
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$configurationtable = $oostable['configuration'];
$dbconn->Execute("DELETE FROM $configurationtable WHERE configuration_key in ('" . implode("', '", $this->config_item()) . "')");
return TRUE;
}
function config_item() {
return array('SEND_EXTRA_ORDER_EMAILS_TO', 'EMAIL_TRANSPORT', 'EMAIL_LINEFEED', 'EMAIL_USE_HTML', 'ENTRY_EMAIL_ADDRESS_CHECK', 'OOS_SMTPAUTH', 'OOS_SMTPUSER', 'OOS_SMTPPASS', 'OOS_SMTPHOST', 'OOS_SENDMAIL');
}
}

View File

@ -0,0 +1,25 @@
<?php
/* ----------------------------------------------------------------------
$Id: deu.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_MANUFACTURERS_NAME', 'Zeige Hersteller an');
define('PLUGIN_EVENT_MANUFACTURERS_DESC', 'Zeigt Hersteller an');
define('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST_TITLE', 'Anzahl Hersteller');
define('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST_DESC', 'Wird im Hersteller-Block benutzt. Maximale Anzahl von Herstellern, die in einer Liste angezeigt werden. Wird diese Zahl von Herstellern &uuml;berschritten, erscheint eine Auswahlbox anstelle der Standard-Liste');
define('MAX_MANUFACTURERS_LIST_TITLE', 'Anzahl Zeilen Herstellerauswahlbox');
define('MAX_MANUFACTURERS_LIST_DESC', 'Wird im Hersteller-Block benutzt. Ist dieser Wert \'1\' so wird die normale Auswahlbox angezeigt. Anderenfalls wird eine Liste mit der angegebenen Anzahl von Zeilen angezeigt');
define('MAX_DISPLAY_MANUFACTURER_NAME_LEN_TITLE', 'L&auml;nge des Herstellernamens');
define('MAX_DISPLAY_MANUFACTURER_NAME_LEN_DESC', 'Wird im Hersteller-Block benutzt. Maximale Anzahl anzuzeigender Zeichen des Herstellernamens');

View File

@ -0,0 +1,26 @@
<?php
/* ----------------------------------------------------------------------
$Id: eng.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_MANUFACTURERS_NAME', 'Display Manufacturers');
define('PLUGIN_EVENT_MANUFACTURERS_DESC', 'Set to true or false to display manufacturers.');
define('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST_TITLE', 'Manufacturers List');
define('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST_DESC', 'Used in manufacturers box; when the number of manufacturers exceeds this number, a drop-down list will be displayed instead of the default list');
define('MAX_MANUFACTURERS_LIST_TITLE', 'Manufacturers Select Size');
define('MAX_MANUFACTURERS_LIST_DESC', 'Used in manufacturers box; when this value is \'1\' the classic drop-down list will be used for the manufacturers box. Otherwise, a list-box with the specified number of rows will be displayed.');
define('MAX_DISPLAY_MANUFACTURER_NAME_LEN_TITLE', 'Length of Manufacturers Name');
define('MAX_DISPLAY_MANUFACTURER_NAME_LEN_DESC', 'Used in manufacturers box; maximum length of manufacturers name to display');

View File

@ -0,0 +1,100 @@
<?php
/* ----------------------------------------------------------------------
$Id: oos_event_manufacturers.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
class oos_event_manufacturers {
var $name;
var $description;
var $uninstallable;
var $depends;
var $preceeds;
var $author;
var $version;
var $requirements;
/**
* class constructor
*/
public function __construct() {
$this->name = PLUGIN_EVENT_MANUFACTURERS_NAME;
$this->description = PLUGIN_EVENT_MANUFACTURERS_DESC;
$this->uninstallable = TRUE;
$this->author = 'MyOOS Development Team';
$this->version = '1.0';
$this->requirements = array(
'oos' => '1.7.0',
'smarty' => '2.6.9',
'adodb' => '4.62',
'php' => '5.9.0'
);
}
function create_plugin_instance() {
return TRUE;
}
function install() {
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$blocktable = $oostable['block'];
$dbconn->Execute("UPDATE $blocktable
SET block_status = 1
WHERE block_file = 'manufacturers'");
$dbconn->Execute("UPDATE $blocktable
SET block_status = 1
WHERE block_file = 'manufacturer_info'");
$today = date("Y-m-d H:i:s");
$configurationtable = $oostable['configuration'];
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST', '0', 6, 7, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_MANUFACTURERS_LIST', '1', 6, 8, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_DISPLAY_MANUFACTURER_NAME_LEN', '15', 6, 9, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
return TRUE;
}
function remove() {
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$configurationtable = $oostable['configuration'];
$dbconn->Execute("DELETE FROM $configurationtable WHERE configuration_key in ('" . implode("', '", $this->config_item()) . "')");
return TRUE;
}
function config_item() {
return array('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST', 'MAX_MANUFACTURERS_LIST', 'MAX_DISPLAY_MANUFACTURER_NAME_LEN');
}
}

View File

@ -0,0 +1,15 @@
<?php
/* ----------------------------------------------------------------------
$Id: deu.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_NOTIFY_NAME', 'Benachrichtigen');
define('PLUGIN_EVENT_NOTIFY_DESC', 'Benachrichtigen');

View File

@ -0,0 +1,15 @@
<?php
/* ----------------------------------------------------------------------
$Id: eng.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_NOTIFY_NAME', 'Notify of updates');
define('PLUGIN_EVENT_NOTIFY_DESC', 'Notify of updates');

View File

@ -0,0 +1,72 @@
<?php
/* ----------------------------------------------------------------------
$Id: oos_event_notify.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
class oos_event_notify {
var $name;
var $description;
var $uninstallable;
var $depends;
var $preceeds = 'session';
var $author;
var $version;
var $requirements;
/**
* class constructor
*/
public function __construct() {
$this->name = PLUGIN_EVENT_NOTIFY_NAME;
$this->description = PLUGIN_EVENT_NOTIFY_DESC;
$this->uninstallable = TRUE;
$this->preceeds = 'session';
$this->author = 'MyOOS Development Team';
$this->version = '1.0';
$this->requirements = array(
'oos' => '1.8.0',
'smarty' => '2.6.9',
'adodb' => '4.62',
'php' => '5.9.0'
);
}
function create_plugin_instance() {
return TRUE;
}
function install() {
return TRUE;
}
function remove() {
return TRUE;
}
function config_item() {
return FALSE;
}
}

View File

@ -0,0 +1,24 @@
<?php
/* ----------------------------------------------------------------------
$Id: deu.php,v 1.1 2007/06/13 15:41:56 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_REVIEWS_NAME', 'Bewertungen');
define('PLUGIN_EVENT_REVIEWS_DESC', 'Bewertungen f&uuml;r Produkte und News erlauben.');
define('REVIEW_TEXT_MIN_LENGTH_TITLE', 'Bewertungstext');
define('REVIEW_TEXT_MIN_LENGTH_DESC', 'Mindestl&auml;nge des Bewertungstextes');
define('MAX_DISPLAY_NEW_REVIEWS_TITLE', 'Anzahl Prduktbewertungen');
define('MAX_DISPLAY_NEW_REVIEWS_DESC', 'H&ouml;chstanzahl der neuen anzuzeigenden Produktbewertungen');
define('MAX_RANDOM_SELECT_REVIEWS_TITLE', 'Zuf&auml;llige Produktbewertungen');
define('MAX_RANDOM_SELECT_REVIEWS_DESC', 'Die Menge der Produktbewertungen, aus denen per Zufall eine Produktbewertungen angezeigt wird');

View File

@ -0,0 +1,24 @@
<?php
/* ----------------------------------------------------------------------
$Id: eng.php,v 1.1 2007/06/13 15:41:56 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_REVIEWS_NAME', 'Reviews');
define('PLUGIN_EVENT_REVIEWS_DESC', 'Enable Product and News Reviews.');
define('MAX_DISPLAY_NEW_REVIEWS_TITLE', 'New Reviews');
define('MAX_DISPLAY_NEW_REVIEWS_DESC', 'Maximum number of new reviews to display');
define('MAX_RANDOM_SELECT_REVIEWS_TITLE', 'Selection of Random Reviews');
define('MAX_RANDOM_SELECT_REVIEWS_DESC', 'How many records to select from to choose one random product review');
define('REVIEW_TEXT_MIN_LENGTH_TITLE', 'Review Text');
define('REVIEW_TEXT_MIN_LENGTH_DESC', 'Minimum length of review text');

View File

@ -0,0 +1,98 @@
<?php
/* ----------------------------------------------------------------------
$Id: oos_event_reviews.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
class oos_event_reviews {
var $name;
var $description;
var $uninstallable;
var $depends;
var $preceeds;
var $author;
var $version;
var $requirements;
/**
* class constructor
*/
public function __construct() {
$this->name = PLUGIN_EVENT_REVIEWS_NAME;
$this->description = PLUGIN_EVENT_REVIEWS_DESC;
$this->uninstallable = TRUE;
$this->author = 'MyOOS Development Team';
$this->version = '2.0';
$this->requirements = array(
'oos' => '1.7.0',
'smarty' => '2.6.9',
'adodb' => '4.62',
'php' => '5.9.0'
);
}
function create_plugin_instance() {
return TRUE;
}
function install() {
// Get database information
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$blocktable = $oostable['block'];
$dbconn->Execute("UPDATE $blocktable
SET block_status = 1
WHERE block_file = 'reviews'");
$today = date("Y-m-d H:i:s");
$configurationtable = $oostable['configuration'];
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_RANDOM_SELECT_REVIEWS', '10', 6, 1, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_DISPLAY_NEW_REVIEWS', '6', 6, 2, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('REVIEW_TEXT_MIN_LENGTH', '50', 6, 3, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
return TRUE;
}
function remove() {
// Get database information
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$configurationtable = $oostable['configuration'];
$dbconn->Execute("DELETE FROM $configurationtable WHERE configuration_key in ('" . implode("', '", $this->config_item()) . "')");
return TRUE;
}
function config_item() {
return array('MAX_RANDOM_SELECT_REVIEWS', 'MAX_DISPLAY_NEW_REVIEWS', 'REVIEW_TEXT_MIN_LENGTH');
}
}

View File

@ -0,0 +1,27 @@
<?php
/* ----------------------------------------------------------------------
$Id: deu.php,v 1.1 2007/06/13 15:41:56 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_SPEZIALS_NAME', 'Sonderangebote');
define('PLUGIN_EVENT_SPEZIALS_DESC', 'Aktiviert oder deaktiviert die Sonderangebote.');
define('MIN_DISPLAY_NEW_SPEZILAS_TITLE', 'Sonderangebote');
define('MIN_DISPLAY_NEW_SPEZILAS_DESC', 'Minimale Anzahl von Produkten, die im \'Sonderangebote auf der Startseite\'-Block angezeigt werden.');
define('MAX_DISPLAY_NEW_SPEZILAS_TITLE', 'Sonderangebote');
define('MAX_DISPLAY_NEW_SPEZILAS_DESC', 'Maximale Anzahl von neuen Sonderangeboten, die auf der \'Sonderangebote\'-Seite angezeigt werden');
define('MAX_RANDOM_SELECT_SPECIALS_TITLE', 'Zuf&auml;llige Sonderangebote');
define('MAX_RANDOM_SELECT_SPECIALS_DESC', 'Die Menge der Sonderangebote, aus denen per Zufall ein Sonderangebot angezeigt wird');
define('MAX_DISPLAY_SPECIAL_PRODUCTS_TITLE', 'Sonderangebote');
define('MAX_DISPLAY_SPECIAL_PRODUCTS_DESC', 'Maximale Anzahl von Sonderangeboten, die angezeigt werden.');

View File

@ -0,0 +1,27 @@
<?php
/* ----------------------------------------------------------------------
$Id: eng.php,v 1.1 2007/06/13 15:41:56 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_SPEZIALS_NAME', 'Specials');
define('PLUGIN_EVENT_SPEZIALS_DESC', 'Prepare the products that are on special.');
define('MIN_DISPLAY_NEW_SPEZILAS_TITLE', 'Sonderangebote');
define('MIN_DISPLAY_NEW_SPEZILAS_DESC', 'Minimale Anzahl von Produkten, die im \'Sonderangebote auf der Startseite\'-Block angezeigt werden.');
define('MAX_DISPLAY_NEW_SPEZILAS_TITLE', 'Sonderangebote');
define('MAX_DISPLAY_NEW_SPEZILAS_DESC', 'Maximale Anzahl von neuen Sonderangeboten, die auf der \'Sonderangebote\'-Seite angezeigt werden');
define('MAX_RANDOM_SELECT_SPECIALS_TITLE', 'Selection of Products on Special');
define('MAX_RANDOM_SELECT_SPECIALS_DESC', 'How many records to select from to choose one random product special to display');
define('MAX_DISPLAY_SPECIAL_PRODUCTS_TITLE', 'Special Products');
define('MAX_DISPLAY_SPECIAL_PRODUCTS_DESC', 'Maximum number of products on special to display');

View File

@ -0,0 +1,104 @@
<?php
/* ----------------------------------------------------------------------
$Id: oos_event_spezials.php,v 1.1 2007/06/13 15:41:56 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
class oos_event_spezials {
var $name;
var $description;
var $uninstallable;
var $depends;
var $preceeds;
var $author;
var $version;
var $requirements;
/**
* class constructor
*/
public function __construct() {
$this->name = PLUGIN_EVENT_SPEZIALS_NAME;
$this->description = PLUGIN_EVENT_SPEZIALS_DESC;
$this->uninstallable = TRUE;
$this->author = 'MyOOS Development Team';
$this->version = '2.0';
$this->requirements = array(
'oos' => '1.7.0',
'smarty' => '2.6.9',
'adodb' => '4.62',
'php' => '5.9.0'
);
}
function create_plugin_instance() {
include_once MYOOS_INCLUDE_PATH . '/includes/functions/function_spezials.php';
oos_expire_spezials();
return TRUE;
}
function install() {
// Get database information
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$blocktable = $oostable['block'];
$dbconn->Execute("UPDATE $blocktable
SET block_status = 1
WHERE block_file = 'specials'");
$today = date("Y-m-d H:i:s");
$configurationtable = $oostable['configuration'];
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MIN_DISPLAY_NEW_SPEZILAS', '1', 6, 1, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_DISPLAY_NEW_SPEZILAS', '4', 6, 2, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_RANDOM_SELECT_SPECIALS', '10', 6, 3, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_DISPLAY_SPECIAL_PRODUCTS', '9', 6, 4, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
return TRUE;
}
function remove() {
// Get database information
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$blocktable = $oostable['block'];
$dbconn->Execute("UPDATE $blocktable SET block_status = 0 WHERE block_file = 'specials'");
$configurationtable = $oostable['configuration'];
$dbconn->Execute("DELETE FROM $configurationtable WHERE configuration_key in ('" . implode("', '", $this->config_item()) . "')");
return TRUE;
}
function config_item() {
return array('MIN_DISPLAY_NEW_SPEZILAS', 'MAX_DISPLAY_NEW_SPEZILAS', 'MAX_RANDOM_SELECT_SPECIALS', 'MAX_DISPLAY_SPECIAL_PRODUCTS');
}
}

View File

@ -0,0 +1,15 @@
<?php
/* ----------------------------------------------------------------------
$Id: deu.php,v 1.1 2007/06/13 15:41:56 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_WHOS_ONLINE_NAME', 'Wer ist online');
define('PLUGIN_EVENT_WHOS_ONLINE_DESC', 'Aktualisiert die Information.');

View File

@ -0,0 +1,15 @@
<?php
/* ----------------------------------------------------------------------
$Id: eng.php,v 1.1 2007/06/13 15:41:56 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
define('PLUGIN_EVENT_WHOS_ONLINE_NAME', 'who\'s online');
define('PLUGIN_EVENT_WHOS_ONLINE_DESC', 'update who\'s online.');

View File

@ -0,0 +1,127 @@
<?php
/* ----------------------------------------------------------------------
$Id: oos_event_whos_online.php,v 1.1 2007/06/13 15:41:56 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
class oos_event_whos_online {
var $name;
var $description;
var $uninstallable;
var $depends;
var $preceeds;
var $author;
var $version;
var $requirements;
/**
* class constructor
*/
public function __construct() {
$this->name = PLUGIN_EVENT_WHOS_ONLINE_NAME;
$this->description = PLUGIN_EVENT_WHOS_ONLINE_DESC;
$this->uninstallable = TRUE;
$this->author = 'MyOOS Development Team';
$this->version = '2.0';
$this->requirements = array(
'oos' => '1.7.0',
'smarty' => '2.6.9',
'adodb' => '4.62',
'php' => '5.9.0'
);
}
function create_plugin_instance() {
global $session;
// Get database information
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
if (isset($_SESSION['customer_id'])) {
$wo_customer_id = $_SESSION['customer_id'];
$wo_full_name = addslashes($_SESSION['customer_first_name'] . ' ' . $_SESSION['customer_lastname']);
} else {
$wo_customer_id = '';
$wo_full_name = 'Guest';
}
$wo_session_id = $session->getId();
$wo_ip_address = oos_server_get_remote();
$wo_last_page_url = addslashes(oos_server_get_var('REQUEST_URI'));
$current_time = time();
$xx_mins_ago = ($current_time - 900);
// remove entries that have expired
$whos_onlinetable = $oostable['whos_online'];
$dbconn->Execute("DELETE FROM $whos_onlinetable
WHERE time_last_click < '" . oos_db_input($xx_mins_ago) . "'");
$whos_onlinetable = $oostable['whos_online'];
$query = "SELECT COUNT(*) AS total
FROM $whos_onlinetable
WHERE session_id = '" . oos_db_input($wo_session_id) . "'";
$stored_customer = $dbconn->Execute($query);
if ($stored_customer->fields['total'] > 0) {
$whos_onlinetable = $oostable['whos_online'];
$query = "UPDATE $whos_onlinetable"
. " SET customer_id = ?, full_name = ?, ip_address = ?, time_last_click = ?, last_page_url = ?"
. " WHERE session_id = ?";
$result = $dbconn->Execute($query, array((string)$wo_customer_id, (string)$wo_full_name, (string)$wo_ip_address, (string)$current_time, (string)$wo_last_page_url, (string)$wo_session_id));
} else {
$whos_onlinetable = $oostable['whos_online'];
$dbconn->Execute("INSERT INTO " . $whos_onlinetable . "
(customer_id,
full_name,
session_id,
ip_address,
time_entry,
time_last_click,
last_page_url) VALUES ('" . oos_db_input($wo_customer_id) . "',
'" . oos_db_input($wo_full_name) . "',
'" . oos_db_input($wo_session_id) . "',
'" . oos_db_input($wo_ip_address) . "',
'" . oos_db_input($current_time) . "',
'" . oos_db_input($current_time) . "',
'" . oos_db_input($wo_last_page_url) . "')");
}
return TRUE;
}
function install() {
return TRUE;
}
function remove() {
return TRUE;
}
function config_item() {
return FALSE;
}
}