<?php
ini_set('display_errors', 'off');
$prefix_dir = "/";
$_SERVER['DOCUMENT_ROOT'] = $_SERVER['DOCUMENT_ROOT'].$prefix_dir;
if (isset($_SERVER['HTTPS'])){ $scheme = $_SERVER['HTTPS']; }else{ $scheme = ''; }
if (($scheme) && ($scheme != 'off')) $scheme = 'https'; else $scheme = 'http';
define('URL', $scheme.'://' . $_SERVER['SERVER_NAME'] . $prefix_dir, true);
define('PATH_TEMPLATE', URL."templates");
if($prefix_dir != '/'){ define('REQUEST_URI', str_replace($prefix_dir, "/", $_SERVER["REQUEST_URI"]));
}else{ define('REQUEST_URI', $_SERVER["REQUEST_URI"]); }
$private = "TextPAtteN64c86383baead17c17d7fc";
$folder_admin = "admin";
define('AD_QUERY', "uni_ads.ads_status=1 AND uni_ads.ads_datetime_publication > NOW() AND uni_clients.clients_id = uni_ads.ads_id_user AND uni_clients.clients_activation = 1 AND uni_clients.clients_status = 1 AND uni_clients.clients_phone IS NOT NULL", true);
define('SHOP_QUERY', "select *, (select status from uni_orders where id_order = uni_shop_tariff_orders.order_id) as status_payment from uni_shops,uni_clients,uni_shop_tariff_orders where uni_shops.id_user = uni_clients.clients_id and uni_clients.clients_status = 1 and uni_clients.clients_activation = 1 and uni_shops.status=1 and uni_shop_tariff_orders.id_user=uni_shops.id_user and uni_shop_tariff_orders.time_validity > NOW() HAVING status_payment='ACCEPTED'", true);
$db_port = "3306";
$db_host = "localhost";
$db_user = "slando";
$db_pass = "пароль есть
$db_charset = "utf8";
$db_database = "slando";
$db_prefix = "uni_";
$format_order = mt_rand(100000000,900000000);
$decimals = 0;
$dec_point = ".";
$thousands_sep = ",";
// Выводить магазинов
$output_shops = 10;
// Выводить публикаций на странице
$output_blog_articles = 12;
// Выводить объявлений на странице
$output_ads_board = 10;
$temp_images = "temp/images/";
// Расположение watermark
$main_image_logo = "files/images/";
$main_image_watermark = "{$folder_admin}/files/images/";
$no_image = "/files/images/no_image.png";
$no_image_grid = "/files/images/no_image_grid.png";
$no_image_ad = "/files/images/no-image-view-board.png";
// Аватары пользователей
$big_images_avatar = "/media/images_avatar/";
$no_image_avatar = "/files/images/no_avatar.jpg";
// Аватары администраторов
$avatar_admin = "{$folder_admin}/files/images/";
$no_avatar_admin = "/files/images/avatar.png";
// Статьи
$big_image_blog = "/media/images_blog/big/";
$medium_image_blog = "/media/images_blog/medium/";
$small_image_blog = "/media/images_blog/small/";
// Для баннеров
$image_banners = "/media/images_banners/";
// Для категорий
$image_category = "/files/images/";
// Галерея
$image_gallery = "/media/gallery/";
// Картинки языков
$image_language = "/files/images/";
// URL префиксы
$category_board_prefix = "board/";
$blog_prefix = "blog";
$shop_prefix = "shop";
$category_shop_prefix = "shops";
$prefix_manager_file = "/media/manager/";
// Изображения объявлений
$main_big_image_ads = "/media/images_boards/big/";
$main_medium_image_ads = "/media/images_boards/big/";
$main_small_image_ads = "/media/images_boards/small/";
$gallery_big_image_ads = "/media/images_boards/big/";
$gallery_medium_image_ads = "/media/images_boards/big/";
$gallery_small_image_ads = "/media/images_boards/small/";
// Изображения товаров магазинов
$main_big_image_shop_goods = "/media/images_shop_goods/main/big/";
$main_medium_image_shop_goods = "/media/images_shop_goods/main/medium/";
$main_small_image_shop_goods = "/media/images_shop_goods/main/small/";
$gallery_big_image_shop_goods = "/media/images_shop_goods/gallery/big/";
$gallery_medium_image_shop_goods = "/media/images_shop_goods/gallery/medium/";
$gallery_small_image_shop_goods = "/media/images_shop_goods/gallery/small/";
$big_image_board_shops = "/media/images_shops/";
?>