<?php
/* --------------------------------------------------------------
$Id: brickfox.php 0.1 2010-11-04 $
brickfox Multichannel eCommerce
http://www.brickfox.de
Copyright (c) 2010 NETFORMIC GmbH
-------------------------------------------------------------- */
require('includes/application_top.php');
$brickfox = new Brickfox();
$brickfox->process();
class Brickfox
{
var $_moduleType = 'brickfox';
var $_fileExtension = '.php';
var $_errors = array();
var $_kind = null;
var $_error = null;
var $_action = null;
var $_module = null;
var $_getSet = null;
/**
* constructor
*
* @return void
*/
function Brickfox()
{
$this->processGetParameter();
}
/**
* process
*
* @return void
*/
function process()
{
$this->checkDirectories();
$this->checkBrickfoxModuleStatus();
if ($this->checkBrickfoxModuleStatus() == true && $this->hasError() == false) {
switch ($this->getAction()) {
case 'save':
include($this->getClassInclude());
$classname = $this->getClassname();
$module = new $classname;
$module->process();
break;
}
}
else
{
if ($this->checkBrickfoxModuleStatus() == false) {
$this->addErrors('Das Modul ist deaktiviert', 'status');
}
$this->printErrors();
}
exit;
}
/**
* echo error types with message
*
* @return void
*/
function printErrors()
{
foreach ($this->getErrors() as $error)
{
echo '<br><b>' . $error['errorType'] . '</b>: ' . $error['errorMessage'];
}
}
/**
* return the modul status
* @return bool
*/
function checkBrickfoxModuleStatus()
{
if (MODULE_BRICKFOX_STATUS == 'True') {
return true;
} else {
return false;
}
}
function processGetParameter()
{
if (isset($_GET['error'])) {
$this->setError($_GET['error']);
}
if (isset($_GET['kind'])) {
$this->setKind($_GET['kind']);
}
if (isset($_GET['action'])) {
$this->setAction($_GET['action']);
}
if (isset($_GET['module'])) {
$this->setModule($_GET['module']);
}
if (isset($_GET['set'])) {
$this->setGetSet($_GET['set']);
}
$this->processErrors();
}
/**
* process errors
* @return void
*/
function processErrors()
{
if ($this->hasError() == true) {
$errorType = 'error';
if ($this->getKind() == 'success') {
$errorType = $this->getKind();
}
$this->addErrors($this->getError(), $errorType);
}
}
/**
* get module classname
*
* @return string
*/
function getClassname()
{
return basename($this->getModule());
}
/**
* get directory filename string for include module
*
* @return string
*/
function getClassInclude()
{
return $this->getModuleDirectory() . $this->getClassname() . $this->getFileExtension();
}
/**
* check writable export/import directories
*
* @return void
*/
function checkDirectories()
{
if (!is_writeable(DIR_FS_CATALOG . 'export/')) {
$this->addErrors('export/ directory is not writable!', 'error');
}
if (!is_writeable(DIR_FS_CATALOG . 'import/')) {
$this->addErrors('import/ directory is not writable!', 'error');
}
}
/**
* get $_GET set parameter
*
* @return null|string
*/
function getGetSet()
{
return $this->_getSet;
}
/**
* set $_GET set parameter
*
* @param string $getSet
* @return void
*/
function setGetSet($getSet)
{
$this->_getSet = $getSet;
}
/**
* get module type
*
* @return string
*/
function getModuleType()
{
return $this->_moduleType;
}
/**
* get module directory
*
* @return string
*/
function getModuleDirectory()
{
return DIR_WS_MODULES . $this->getModuleType() . '/';
}
/**
* get file extension
*
* @return string
*/
function getFileExtension()
{
return $this->_fileExtension;
}
/**
* get error message
*
* @return array
*/
function getErrors()
{
return $this->_errors;
}
/**
* add error type and message to errors
*
* @param string $errorMessage
* @param string $errorType
* @return void
*/
function addErrors($errorMessage, $errorType)
{
$this->_errors[] = array('errorMessage' => $errorMessage, 'errorType' => $errorType);
}
/**
* get action
*
* @return null|string
*/
function getAction()
{
return $this->_action;
}
/**
* set action
*
* @param string $action
* @return void
*/
function setAction($action)
{
$this->_action = $action;
}
/**
* get error
*
* @return null|string
*/
function getError()
{
return $this->_error;
}
/**
* set error
*
* @param string $error
* @return void
*/
function setError($error)
{
$this->_error = $error;
}
/**
* has error
*
* @return bool
*/
function hasError()
{
if ($this->getError() != null) {
return true;
}
else
{
return false;
}
}
/**
* get kind
*
* @return null|string
*/
function getKind()
{
return $this->_kind;
}
/**
* set kind
*
* @param string $kind
* @return void
*/
function setKind($kind)
{
$this->_kind = $kind;
}
/**
* get module
*
* @return null|string
*/
function getModule()
{
return $this->_module;
}
/**
* set module
*
* @param string $module
* @return void
*/
function setModule($module)
{
$this->_module = $module;
}
}
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| backups/ | 2025-01-28 22:35 | 109 B | 76129f60960:kunden | dxwrx-rx-r | |
| gm/ | 2013-11-12 20:53 | 3.67 MB | 76129f60960:kunden | dxwrx-rx-r | |
| images/ | 2013-11-12 20:54 | 728.74 KB | 76129f60960:kunden | dxwrx-rx-r | |
| includes/ | 2013-11-12 20:54 | 9.48 MB | 76129f60960:kunden | dxwrx-rx-r | |
| sync4/ | 2013-11-12 20:53 | 13 B | 76129f60960:kunden | dxwrx-rx-r | |
| templates/ | 2013-11-12 20:54 | 91.42 KB | 76129f60960:kunden | dxwrx-rx-r | |
| yoochoose/ | 2013-11-12 20:54 | 592.85 KB | 76129f60960:kunden | dxwrx-rx-r | |
| accounting.php | 2013-11-12 20:52 | 8.29 KB | 76129f60960:kunden | -xw-x----- | |
| backup.php | 2013-11-12 20:52 | 26.38 KB | 76129f60960:kunden | -xw-x----- | |
| banner_manager.php | 2013-11-12 20:53 | 25.85 KB | 76129f60960:kunden | -xw-x----- | |
| banner_statistics.php | 2013-11-12 20:52 | 8.07 KB | 76129f60960:kunden | -xw-x----- | |
| billsafe_orders_2.php | 2013-11-12 20:53 | 40.46 KB | 76129f60960:kunden | -xw-x----- | |
| billsafe_print_order_2.php | 2013-11-12 20:52 | 13.06 KB | 76129f60960:kunden | -xw-x----- | |
| blacklist.php | 2013-11-12 20:52 | 11.53 KB | 76129f60960:kunden | -xw-x----- | |
| brickfox.php | 2013-11-12 20:53 | 5.46 KB | 76129f60960:kunden | -xw-x----- | |
| campaigns.php | 2013-11-12 20:52 | 10.85 KB | 76129f60960:kunden | -xw-x----- | |
| categories.php | 2013-11-12 20:52 | 18.53 KB | 76129f60960:kunden | -xw-x----- | |
| clear_cache.php | 2013-11-12 20:52 | 8.46 KB | 76129f60960:kunden | -xw-x----- | |
| configuration.php | 2013-11-12 20:53 | 16.61 KB | 76129f60960:kunden | -xw-x----- | |
| content_manager.php | 2013-11-12 20:52 | 52.29 KB | 76129f60960:kunden | -xw-x----- | |
| content_preview.php | 2013-11-12 20:52 | 2.61 KB | 76129f60960:kunden | -xw-x----- | |
| countries.php | 2013-11-12 20:52 | 15.68 KB | 76129f60960:kunden | -xw-x----- | |
| coupon_admin.php | 2013-11-12 20:52 | 50.67 KB | 76129f60960:kunden | -xw-x----- | |
| create_account.php | 2013-11-12 20:52 | 28.53 KB | 76129f60960:kunden | -xw-x----- | |
| credits.php | 2013-11-12 20:52 | 6.97 KB | 76129f60960:kunden | -xw-x----- | |
| cross_sell_groups.php | 2013-11-12 20:52 | 13.02 KB | 76129f60960:kunden | -xw-x----- | |
| csv_backend.php | 2013-11-12 20:52 | 19.86 KB | 76129f60960:kunden | -xw-x----- | |
| currencies.php | 2013-11-12 20:52 | 17.6 KB | 76129f60960:kunden | -xw-x----- | |
| customers.php | 2013-11-12 20:52 | 58.49 KB | 76129f60960:kunden | -xw-x----- | |
| customers_status.php | 2013-11-12 20:53 | 36.57 KB | 76129f60960:kunden | -xw-x----- | |
| econda.php | 2013-11-12 20:52 | 6.31 KB | 76129f60960:kunden | -xw-x----- | |
| ekomi.php | 2013-11-12 20:52 | 14.11 KB | 76129f60960:kunden | -xw-x----- | |
| fck_wrapper.php | 2013-11-12 20:52 | 501 B | 76129f60960:kunden | -xw-x----- | |
| filelist.txt | 2013-11-12 20:52 | 268.55 KB | 76129f60960:kunden | -xw-x----- | |
| geo_zones.php | 2013-11-12 20:52 | 23.69 KB | 76129f60960:kunden | -xw-x----- | |
| gm_analytics.php | 2013-11-12 20:52 | 4.9 KB | 76129f60960:kunden | -xw-x----- | |
| gm_backup_files_zip.php | 2013-11-12 20:52 | 11.35 KB | 76129f60960:kunden | -xw-x----- | |
| gm_bookmarks.php | 2013-11-12 20:52 | 4.26 KB | 76129f60960:kunden | -xw-x----- | |
| gm_bookmarks_action.php | 2013-11-12 20:52 | 2.46 KB | 76129f60960:kunden | -xw-x----- | |
| gm_counter.php | 2013-11-12 20:53 | 5.28 KB | 76129f60960:kunden | -xw-x----- | |
| gm_counter_action.php | 2013-11-12 20:52 | 1.8 KB | 76129f60960:kunden | -xw-x----- | |
| gm_ebay.php | 2013-11-12 20:52 | 8.85 KB | 76129f60960:kunden | -xw-x----- | |
| gm_emails.php | 2013-11-12 20:53 | 12.16 KB | 76129f60960:kunden | -xw-x----- | |
| gm_emails_preview.php | 2013-11-12 20:52 | 5.95 KB | 76129f60960:kunden | -xw-x----- | |
| gm_feature_control.php | 2013-11-12 20:53 | 24.84 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gmotion.php | 2013-11-12 20:52 | 8.11 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint.php | 2013-11-12 20:52 | 3.56 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_categories.php | 2013-11-12 20:52 | 7.63 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_configuration.php | 2013-11-12 20:52 | 7.58 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_edit.php | 2013-11-12 20:52 | 19.55 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_overview.php | 2013-11-12 20:52 | 4.69 KB | 76129f60960:kunden | -xw-x----- | |
| gm_guestbook.php | 2013-11-12 20:52 | 9.43 KB | 76129f60960:kunden | -xw-x----- | |
| gm_id_starts.php | 2013-11-12 20:52 | 7.96 KB | 76129f60960:kunden | -xw-x----- | |
| gm_invoicing.php | 2013-11-12 20:52 | 12.14 KB | 76129f60960:kunden | -xw-x----- | |
| gm_janolaw.php | 2013-11-12 20:52 | 4.48 KB | 76129f60960:kunden | -xw-x----- | |
| gm_lang_edit.php | 2013-11-12 20:52 | 4.24 KB | 76129f60960:kunden | -xw-x----- | |
| gm_lightbox.php | 2013-11-12 20:52 | 4.69 KB | 76129f60960:kunden | -xw-x----- | |
| gm_logo.php | 2013-11-12 20:52 | 5.28 KB | 76129f60960:kunden | -xw-x----- | |
| gm_logo_action.php | 2013-11-12 20:53 | 1.11 KB | 76129f60960:kunden | -xw-x----- | |
| gm_meta.php | 2013-11-12 20:52 | 3.63 KB | 76129f60960:kunden | -xw-x----- | |
| gm_meta_action.php | 2013-11-12 20:52 | 2.91 KB | 76129f60960:kunden | -xw-x----- | |
| gm_miscellaneous.php | 2013-11-12 20:52 | 28.65 KB | 76129f60960:kunden | -xw-x----- | |
| gm_module_export.php | 2013-11-12 20:52 | 13.28 KB | 76129f60960:kunden | -xw-x----- | |
| gm_module_part_export.php | 2013-11-12 20:52 | 3.73 KB | 76129f60960:kunden | -xw-x----- | |
| gm_offline.php | 2013-11-12 20:52 | 4.29 KB | 76129f60960:kunden | -xw-x----- | |
| gm_opensearch.php | 2013-11-12 20:52 | 3.18 KB | 76129f60960:kunden | -xw-x----- | |
| gm_opensearch_action.php | 2013-11-12 20:52 | 2.15 KB | 76129f60960:kunden | -xw-x----- | |
| gm_order_menu.php | 2013-11-12 20:52 | 9.18 KB | 76129f60960:kunden | -xw-x----- | |
| gm_pdf.php | 2013-11-12 20:52 | 5.99 KB | 76129f60960:kunden | -xw-x----- | |
| gm_pdf_action.php | 2013-11-12 20:52 | 8.83 KB | 76129f60960:kunden | -xw-x----- | |
| gm_pdf_order.php | 2013-11-12 20:52 | 23.01 KB | 76129f60960:kunden | -xw-x----- | |
| gm_product_export.php | 2013-11-12 20:53 | 4.53 KB | 76129f60960:kunden | -xw-x----- | |
| gm_scroller.php | 2013-11-12 20:52 | 6.52 KB | 76129f60960:kunden | -xw-x----- | |
| gm_security.php | 2013-11-12 20:52 | 10.91 KB | 76129f60960:kunden | -xw-x----- | |
| gm_send_order.php | 2013-11-12 20:52 | 8.77 KB | 76129f60960:kunden | -xw-x----- | |
| gm_seo_boost.php | 2013-11-12 20:52 | 5.77 KB | 76129f60960:kunden | -xw-x----- | |
| gm_sitemap.php | 2013-11-12 20:52 | 4.83 KB | 76129f60960:kunden | -xw-x----- | |
| gm_sitemap_creator.php | 2013-11-12 20:53 | 1.19 KB | 76129f60960:kunden | -xw-x----- | |
| gm_slider.php | 2013-11-12 20:53 | 28.49 KB | 76129f60960:kunden | -xw-x----- | |
| gm_sql.php | 2013-11-12 20:52 | 6.84 KB | 76129f60960:kunden | -xw-x----- | |
| gm_statusbar.php | 2013-11-12 20:52 | 6.46 KB | 76129f60960:kunden | -xw-x----- | |
| gm_style_edit.php | 2013-11-12 20:52 | 50.56 KB | 76129f60960:kunden | -xw-x----- | |
| gm_trusted_info.php | 2013-11-12 20:52 | 7.41 KB | 76129f60960:kunden | -xw-x----- | |
| gm_trusted_shop_id.php | 2013-11-12 20:52 | 6.32 KB | 76129f60960:kunden | -xw-x----- | |
| gm_trusted_shops_widget.php | 2013-11-12 20:52 | 9.44 KB | 76129f60960:kunden | -xw-x----- | |
| gv_mail.php | 2013-11-12 20:52 | 17.47 KB | 76129f60960:kunden | -xw-x----- | |
| gv_queue.php | 2013-11-12 20:52 | 11.83 KB | 76129f60960:kunden | -xw-x----- | |
| gv_sent.php | 2013-11-12 20:52 | 8.71 KB | 76129f60960:kunden | -xw-x----- | |
| index.php | 2013-11-12 20:52 | 1.03 KB | 76129f60960:kunden | -xw-x----- | |
| interkurierConnect.php | 2013-11-12 20:52 | 5.77 KB | 76129f60960:kunden | -xw-x----- | |
| languages.php | 2013-11-12 20:53 | 30.67 KB | 76129f60960:kunden | -xw-x----- | |
| lettr_de.php | 2013-11-12 20:52 | 8.03 KB | 76129f60960:kunden | -xw-x----- | |
| listcategories.php | 2013-11-12 20:53 | 2.8 KB | 76129f60960:kunden | -xw-x----- | |
| listproducts.php | 2013-11-12 20:52 | 2.9 KB | 76129f60960:kunden | -xw-x----- | |
| magnabundle.dat | 2013-11-12 20:53 | 6 B | 76129f60960:kunden | -xw-x----- | |
| magnalister.php | 2013-11-12 20:52 | 10.24 KB | 76129f60960:kunden | -xw-x----- | |
| mail.php | 2013-11-12 20:52 | 12.89 KB | 76129f60960:kunden | -xw-x----- | |
| manufacturers.php | 2013-11-12 20:52 | 16.46 KB | 76129f60960:kunden | -xw-x----- | |
| mediafinanz.php | 2013-11-12 20:52 | 4.53 KB | 76129f60960:kunden | -xw-x----- | |
| minisql.php | 2013-11-12 20:52 | 2.84 KB | 76129f60960:kunden | -xw-x----- | |
| mobile.php | 2013-11-12 20:52 | 11.7 KB | 76129f60960:kunden | -xw-x----- | |
| module_export.php | 2013-11-12 20:52 | 13.5 KB | 76129f60960:kunden | -xw-x----- | |
| module_newsletter.php | 2013-11-12 20:52 | 27.89 KB | 76129f60960:kunden | -xw-x----- | |
| modules.php | 2013-11-12 20:52 | 11.26 KB | 76129f60960:kunden | -xw-x----- | |
| nc_clickandbuy.php | 2013-11-12 20:52 | 8.58 KB | 76129f60960:kunden | -xw-x----- | |
| new_attributes.php | 2013-11-12 20:52 | 5.39 KB | 76129f60960:kunden | -xw-x----- | |
| orders.php | 2013-11-12 20:52 | 72.31 KB | 76129f60960:kunden | -xw-x----- | |
| orders_actions.php | 2013-11-12 20:52 | 337 B | 76129f60960:kunden | -xw-x----- | |
| orders_edit.php | 2013-11-12 20:52 | 39.75 KB | 76129f60960:kunden | -xw-x----- | |
| orders_edit_address.php | 2013-11-12 20:52 | 6.49 KB | 76129f60960:kunden | -xw-x----- | |
| orders_edit_options.php | 2013-11-12 20:52 | 5.92 KB | 76129f60960:kunden | -xw-x----- | |
| orders_edit_other.php | 2013-11-12 20:53 | 11 KB | 76129f60960:kunden | -xw-x----- | |
| orders_edit_products.php | 2013-11-12 20:52 | 6.94 KB | 76129f60960:kunden | -xw-x----- | |
| orders_status.php | 2013-11-12 20:52 | 16.09 KB | 76129f60960:kunden | -xw-x----- | |
| paypal.php | 2013-11-12 20:53 | 10.52 KB | 76129f60960:kunden | -xw-x----- | |
| phpminiadmin.php | 2013-11-12 20:53 | 29.89 KB | 76129f60960:kunden | -xw-x----- | |
| popup_image.php | 2013-11-12 20:52 | 1.91 KB | 76129f60960:kunden | -xw-x----- | |
| popup_memo.php | 2013-11-12 20:52 | 5.54 KB | 76129f60960:kunden | -xw-x----- | |
| print_order.php | 2013-11-12 20:52 | 5.62 KB | 76129f60960:kunden | -xw-x----- | |
| print_packingslip.php | 2013-11-12 20:52 | 5.65 KB | 76129f60960:kunden | -xw-x----- | |
| products_attributes.php | 2013-11-12 20:52 | 51.66 KB | 76129f60960:kunden | -xw-x----- | |
| products_expected.php | 2013-11-12 20:52 | 6.71 KB | 76129f60960:kunden | -xw-x----- | |
| products_vpe.php | 2013-11-12 20:52 | 15.16 KB | 76129f60960:kunden | -xw-x----- | |
| properties.php | 2013-11-12 20:52 | 2.92 KB | 76129f60960:kunden | -xw-x----- | |
| properties_combis.php | 2013-11-12 20:53 | 3.66 KB | 76129f60960:kunden | -xw-x----- | |
| quantity_units.php | 2013-11-12 20:53 | 11.43 KB | 76129f60960:kunden | -xw-x----- | |
| request_port.php | 2013-11-12 20:52 | 10.4 KB | 76129f60960:kunden | -xw-x----- | |
| reviews.php | 2013-11-12 20:52 | 19.72 KB | 76129f60960:kunden | -xw-x----- | |
| robots_download.php | 2013-11-12 20:53 | 4.47 KB | 76129f60960:kunden | -xw-x----- | |
| saferpay.php | 2013-11-12 20:52 | 12.76 KB | 76129f60960:kunden | -xw-x----- | |
| server_info.php | 2013-11-12 20:52 | 7.16 KB | 76129f60960:kunden | -xw-x----- | |
| shipping_status.php | 2013-11-12 20:52 | 23.12 KB | 76129f60960:kunden | -xw-x----- | |
| shopgate.php | 2013-11-12 20:52 | 135 B | 76129f60960:kunden | -xw-x----- | |
| show_logs.php | 2013-11-12 20:53 | 9.77 KB | 76129f60960:kunden | -xw-x----- | |
| specials.php | 2013-11-12 20:52 | 22.29 KB | 76129f60960:kunden | -xw-x----- | |
| start.php | 2013-11-12 20:52 | 11.76 KB | 76129f60960:kunden | -xw-x----- | |
| stats_campaigns.php | 2013-11-12 20:52 | 13.39 KB | 76129f60960:kunden | -xw-x----- | |
| stats_customers.php | 2013-11-12 20:52 | 5.48 KB | 76129f60960:kunden | -xw-x----- | |
| stats_products_purchased.php | 2013-11-12 20:52 | 5.1 KB | 76129f60960:kunden | -xw-x----- | |
| stats_products_viewed.php | 2013-11-12 20:52 | 4.78 KB | 76129f60960:kunden | -xw-x----- | |
| stats_sales_report.php | 2013-11-12 20:52 | 20.98 KB | 76129f60960:kunden | -xw-x----- | |
| stats_stock_warning.php | 2013-11-12 20:53 | 4.94 KB | 76129f60960:kunden | -xw-x----- | |
| tax_classes.php | 2013-11-12 20:52 | 11.43 KB | 76129f60960:kunden | -xw-x----- | |
| tax_rates.php | 2013-11-12 20:53 | 13.6 KB | 76129f60960:kunden | -xw-x----- | |
| template_configuration.php | 2013-11-12 20:52 | 40.73 KB | 76129f60960:kunden | -xw-x----- | |
| validcategories.php | 2013-11-12 20:52 | 2.62 KB | 76129f60960:kunden | -xw-x----- | |
| validproducts.php | 2013-11-12 20:53 | 2.8 KB | 76129f60960:kunden | -xw-x----- | |
| whos_online.php | 2013-11-12 20:52 | 8.05 KB | 76129f60960:kunden | -xw-x----- | |
| xtbooster.php | 2013-11-12 20:52 | 137.04 KB | 76129f60960:kunden | -xw-x----- | |
| yatego.php | 2013-11-12 20:52 | 16.33 KB | 76129f60960:kunden | -xw-x----- | |
| yoochoose.php | 2013-11-12 20:52 | 12.85 KB | 76129f60960:kunden | -xw-x----- | |
| zones.php | 2013-11-12 20:52 | 11.57 KB | 76129f60960:kunden | -xw-x----- | |