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,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');
}
}