} else { if ($language == 'german') { $lang_par = "'Deutsch','de'"; } else { $lang_par = "'English','en'"; } $sql = INSERT_INTO . $table_prefix . "languages VALUES (1," . $lang_par . ",'icon.gif','" . $language . "',1,'iso-8859-15')"; @xtc_db_query($sql); $post_data .= ' <tr> <td> <table class="main_content_outer" cellspacing="0" cellpadding="0"> <tr> <td class="header_image"></td> <td class="header">' . TEXT_TITLE_SUCCESS . '</td> </tr> </table> <p align="center"><b>' . $parse_time . '</b></p> </td> </tr> '; if (xtc_in_array('configure', $_POST['install'])) { $button = $continue_button_submit; } else { $button = $continue_button_link; } $button_box = str_replace(RIGHT_BUTTON, $button, $button_box0); } } $_SESSION['config_written'] = false; include 'includes/program_frame.php';
Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ $module_smarty = new Smarty(); $module_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/'); $module_content = array(); $filename = ''; // check if allowed to see require_once DIR_FS_INC . 'xtc_in_array.inc.php'; $check_query = xtDBquery("SELECT DISTINCT\n\t\t\t\tproducts_id\n\t\t\t\tFROM " . TABLE_PRODUCTS_CONTENT . "\n\t\t\t\tWHERE languages_id='" . (int) $_SESSION['languages_id'] . "'"); $check_data = array(); $i = '0'; while ($content_data = xtc_db_fetch_array($check_query, true)) { $check_data[$i] = $content_data['products_id']; $i++; } if (xtc_in_array($product->data['products_id'], $check_data)) { // get content data require_once DIR_FS_INC . 'xtc_filesize.inc.php'; if (GROUP_CHECK == 'true') { $group_check = "group_ids LIKE '%c_" . $_SESSION['customers_status']['customers_status_id'] . "_group%' AND"; } //get download $content_query = xtDBquery("SELECT\n\t\t\t\t\tcontent_id,\n\t\t\t\t\tcontent_name,\n\t\t\t\t\tcontent_link,\n\t\t\t\t\tcontent_file,\n\t\t\t\t\tcontent_read,\n\t\t\t\t\tfile_comment\n\t\t\t\t\tFROM " . TABLE_PRODUCTS_CONTENT . "\n\t\t\t\t\tWHERE\n\t\t\t\t\tproducts_id='" . $product->data['products_id'] . "' AND\n\t " . $group_check . "\n\t\t\t\t\tlanguages_id='" . (int) $_SESSION['languages_id'] . "'"); while ($content_data = xtc_db_fetch_array($content_query, true)) { $filename = ''; if ($content_data['content_link'] != '') { $icon = xtc_image(DIR_WS_CATALOG . 'admin/images/icons/icon_link.gif'); } else { $icon = xtc_image(DIR_WS_CATALOG . 'admin/images/icons/icon_' . str_replace('.', '', strstr($content_data['content_file'], '.')) . '.gif'); } if ($content_data['content_link'] != '') {
OL-Commerce Version 5.x/AJAX http://www.ol-Commerce.com, http://www.seifenparadies.de Copyright (c) 2004 OL-Commerce, 2006 Dipl.-Ing.(TH) Winfried Kaiser (w.kaiser@fortune.de, info@seifenparadies.de) -------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(install_2.php,v 1.4 2002/08/12); www.oscommerce.com (c) 2003 nextcommerce (install_step2.php,v 1.16 2003/08/1); www.nextcommerce.org (c) 2004 XT - Commerce; www.xt-commerce.com (c) 2004 OL - Commerce; www.ol-Commerce.com Released under the GNU General Public License --------------------------------------------------------------*/ require 'includes/application.php'; if (!xtc_in_array('database', $_POST['install'])) { ActivateProg($next_step_link); } if (xtc_db_connect($db[$db_server_text], $db[$db_username_text], $db[$db_password_text])) { $db_error = xtc_db_test_create_db_permission($database); } else { $db_error = true; } if ($db_error) { install_error(TEXT_CONNECTION_ERROR); $post_data .= ' <tr> <td> <p><font size="1">' . HTML_BR . TEXT_DB_ERROR . '</font></p> <table border="0" style="text-align:left;width:100%"> <td class="error">' . HTML_NBSP . $db_error . '</td>