error_reporting(-1); // Development value } else { error_reporting(0); } // solve compatibility issues require_once DIR_WS_FUNCTIONS . 'compatibility.php'; // project versison require_once DIR_WS_INCLUDES . 'version.php'; // default time zone if (version_compare(PHP_VERSION, '5.1.0', '>=')) { date_default_timezone_set('Europe/Berlin'); } // Base/PHP_SELF/SSL-PROXY require_once DIR_FS_INC . 'set_php_self.inc.php'; $PHP_SELF = set_php_self(); //compatibility for modified eCommerce Shopsoftware 1.06 files define('DIR_WS_BASE', ''); // SQL caching dir define('SQL_CACHEDIR', DIR_FS_CATALOG . 'cache/'); define('TAX_DECIMAL_PLACES', 0); // Used in the "Backup Manager" to compress backups define('LOCAL_EXE_GZIP', '/usr/bin/gzip'); define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip'); define('LOCAL_EXE_ZIP', '/usr/local/bin/zip'); define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip'); // include the list of project filenames require DIR_FS_ADMIN . DIR_WS_INCLUDES . 'filenames.php'; // list of project database tables require_once DIR_FS_CATALOG . DIR_WS_INCLUDES . 'database_tables.php'; // include needed functions
$box_smarty->cache_lifetime = CACHE_LIFETIME; $box_smarty->cache_modified_check = CACHE_CHECK; $cache_id = $_SESSION['language'] . $_SESSION['customers_status']['customers_status_id']; } if (!$box_smarty->is_cached(CURRENT_TEMPLATE . '/boxes/box_imagesliders.html', $cache_id) || !$cache) { $box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/'); $imagesliders_query = "SELECT DISTINCT\r\n\t\t\t\t\t\t i.imagesliders_id,\r\n ii.imagesliders_title,\r\n\t\t\t\t\t\t ii.imagesliders_alt,\r\n ii.imagesliders_url,\r\n\t\t\t\t\t\t ii.imagesliders_url_target,\r\n\t\t\t\t\t\t ii.imagesliders_url_typ,\r\n ii.imagesliders_description,\r\n ii.imagesliders_image,\r\n\t\t\t\t\t\t i.imagesliders_categories\r\n \t\t\t\t\t FROM " . TABLE_IMAGESLIDERS . " i, " . TABLE_IMAGESLIDERS_INFO . " ii\r\n WHERE languages_id='" . (int) $_SESSION['languages_id'] . "'\r\n\t\t\t\t\t AND i.imagesliders_id = ii.imagesliders_id\r\n\t\t\t\t\t AND ii.imagesliders_image != ''\r\n\t\t\t\t\t AND i.status = '0'\r\n ORDER BY i.sorting, i.imagesliders_id ASC"; $imagesliders_query = xtDBquery($imagesliders_query); $imagesliders_array = array(); while ($imagesliders_data = xtc_db_fetch_array($imagesliders_query, true)) { // BOF - Fishnet Services - Nicolas Gemsjaeger // Erweiterung: categories $allowed = false; unset($imagesliders_categories); $imagesliders_categories = explode(",", $imagesliders_data["imagesliders_categories"]); $categories_array = !empty($cPath) ? $cPath : (basename(set_php_self()) == "index.php" ? "0" : "-1"); if (strrpos($categories_array, "_") === false) { $categories_array = substr($categories_array, strrpos($categories_array, "_")); } else { $categories_array = substr($categories_array, strrpos($categories_array, "_") + 1); } if (in_array($categories_array, $imagesliders_categories) === true) { $allowed = true; } if ($allowed == false) { continue; } // EOF - Fishnet Services - Nicolas Gemsjaeger if ($imagesliders_data['imagesliders_url'] == '') { $url = false; } else {