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