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