if ($_SERVER['SERVER_NAME'] == '127.0.0.1') {
$img_dir = "http://127.0.0.1:8091/scriptcase/file/doc/splay/".{products_code}."/prod/";
$img_dir_desc = "http://127.0.0.1:8091/scriptcase/file/doc/splay/".{products_code}."/desc/";
$img_dir_main = "http://127.0.0.1:8091/scriptcase/file/img/splay/".{products_code}."/";
} else {
$img_dir = "https://shopadmin.splaything.com/_lib/file/doc/splay/".{products_code}."/prod/";
$img_dir_desc = "https://shopadmin.splaything.com/_lib/file/doc/splay/".{products_code}."/desc/";
$img_dir_main = "https://shopadmin.splaything.com/_lib/file/img/splay/".{products_code}."/";
}