<?php include_once "./admin_config.php"; include_once $root_folder_path . "includes/common.php"; include_once $root_folder_path . "includes/record.php"; include_once $root_folder_path . "includes/editgrid.php"; include_once $root_folder_path . "messages/" . $language_code . "/cart_messages.php"; include_once $root_folder_path . "messages/" . $language_code . "/download_messages.php"; include_once "./admin_common.php"; check_admin_security("products_settings"); // additional connection $dbs = new VA_SQL(); $dbs->DBType = $db_type; $dbs->DBDatabase = $db_name; $dbs->DBUser = $db_user; $dbs->DBPassword = $db_password; $dbs->DBHost = $db_host; $dbs->DBPort = $db_port; $dbs->DBPersistent = $db_persistent; $t = new VA_Template($settings["admin_templates_dir"]); $t->set_file("main", "admin_products_settings.html"); include_once "./admin_header.php"; $t->set_var("admin_href", "admin.php"); $t->set_var("admin_items_list_href", "admin_items_list.php"); $t->set_var("admin_products_settings_href", "admin_products_settings.php"); $t->set_var("admin_upload_href", "admin_upload.php"); $t->set_var("admin_select_href", "admin_select.php"); $t->set_var("admin_tax_rates_href", "admin_tax_rates.php"); $t->set_var("admin_column_code_href", "admin_column_code.php"); $t->set_var("hide_add_message", str_replace("{button_name}", ADD_TO_CART_MSG, HIDE_BUTTON_MSG)); $t->set_var("hide_view_message", str_replace("{button_name}", VIEW_CART_MSG, HIDE_BUTTON_MSG));
<?php /* * ViArt Google Base Export * RSS 2.0 Formatted (Example http://base.google.com/base/products2.xml) */ @set_time_limit(900); include_once "./admin_config.php"; include_once $root_folder_path . "includes/common.php"; include_once $root_folder_path . "includes/record.php"; include_once $root_folder_path . "includes/shopping_cart.php"; include_once $root_folder_path . "messages/" . $language_code . "/cart_messages.php"; include_once "./admin_common.php"; check_admin_security("import_export"); check_admin_security("products_export_google_base"); $startTime = microtime(true); // settings $tax_rates = get_tax_rates(true); $country_id = $settings["country_id"]; $tax_percent = isset($tax_rates[0]) ? $tax_rates[0] : 0; $tax_region = get_db_value("SELECT country_name FROM " . $table_prefix . "countries WHERE country_id=" . $db->tosql($country_id, INTEGER, true, false)); $tax_prices_type = get_setting_value($settings, "tax_prices_type"); $google_base_ftp_login = get_setting_value($settings, "google_base_ftp_login"); $google_base_ftp_password = get_setting_value($settings, "google_base_ftp_password"); $google_base_filename = get_setting_value($settings, "google_base_filename"); $google_base_title = get_setting_value($settings, "google_base_title"); $google_base_description = get_setting_value($settings, "google_base_description"); $google_base_encoding = get_setting_value($settings, "google_base_encoding", "UTF-8"); $google_base_save_path = get_setting_value($settings, "google_base_save_path", get_setting_value($settings, "tmp_dir", "../images/")); $google_base_export_type = get_setting_value($settings, "google_base_export_type", 0); //
if ($table == "newsletters_users") { include_once "./admin_common.php"; //check_admin_security("export_users"); include_once "./admin_table_emails.php"; if (strlen($id)) { $sql_where = " WHERE email_id>" . $db->tosql($id, INTEGER); } else { if (strlen($ids)) { $sql_where = " WHERE email_id IN (" . $db->tosql($ids, TEXT, false) . ")"; } } } else { if ($table == "orders") { include_once "./admin_common.php"; include_once "./admin_table_orders.php"; check_admin_security("sales_orders"); $sql_where .= " WHERE o.order_id=oi.order_id "; if (strlen($id)) { $sql_where .= " AND o.order_id>" . $db->tosql($id, INTEGER); } else { if (strlen($ids)) { $sql_where .= " AND o.order_id IN (" . $db->tosql($ids, TEXT, false) . ")"; } else { $sql = " SELECT setting_name,setting_value FROM " . $table_prefix . "global_settings "; $sql .= " WHERE setting_type='order_info' "; //$sql .= " AND setting_name LIKE '%country_code%'"; if ($multisites_version) { $sql .= " AND (site_id=1 OR site_id=" . $db->tosql($site_id, INTEGER) . ") "; $sql .= " ORDER BY site_id ASC "; } $db->query($sql);
*** http://www.viart.com *** *** *** **************************************************************************** */ @set_time_limit(900); $root_folder_path = "../"; if (!isset($site_map_folder)) { $site_map_folder = "../"; } include_once $root_folder_path . "includes/var_definition.php"; include_once $root_folder_path . "includes/constants.php"; include_once $root_folder_path . "includes/common_functions.php"; include_once $root_folder_path . "includes/va_functions.php"; include_once $root_folder_path . "includes/db_{$db_lib}.php"; include_once "./admin_common.php"; check_admin_security("site_settings"); $va_version_code = va_version_code(); $friendly_urls = 0; if (isset($settings["friendly_urls"])) { $friendly_urls = $settings["friendly_urls"]; } $friendly_extension = ""; if (isset($settings["friendly_extension"])) { $friendly_extension = $settings["friendly_extension"]; } $datetime_loc_format = array("YYYY", "-", "MM", "-", "DD", "T", "HH", ":", "mm", ":", "ss", "+00:00"); $sm_errors = ""; $message_build_xml = ""; $filename = $site_map_folder . "sitemap_index.xml"; if (file_exists($filename)) { if (!is_writable($filename)) {