0 : $src_x); $dst_y = ($d_max_y < $dst_y) ? $d_max_y : ($dst_y < 0 ? 0 : $dst_y); $src_y = ($s_max_y < $src_y) ? $s_max_y : ($src_y < 0 ? 0 : $src_y); $dst_w = ($dst_x + $dst_w > $d_max_x) ? 0 : $dst_w; $dst_h = ($dst_y + $dst_h > $d_max_y) ? 0 : $dst_h; $src_w = ($src_x + $src_w > $s_max_x) ? 0 : $src_w; $src_h = ($src_y + $src_h > $s_max_y) ? 0 : $src_h; } return func_gd_wrapper('imagecopyresampled', $dst, $src, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h); } /** * imagecolortransparent wrapper */ function func_imagecolortransparent($img, $color) { return func_gd_wrapper('imagecolortransparent', $img, $color); } /** * imagefill wrapper */ function func_imagefill($img, $x, $y, $color) { return func_gd_wrapper('imagefill', $img, $x, $y, $color); } /** * imagecopy wrapper */ function func_imagecopy($dst, $src, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h) { return func_gd_wrapper('imagecopy', $dst, $src, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h); } /** * imagecolorallocate wrapper */ function func_imagecolorallocate($img, $r, $g, $b) { return func_gd_wrapper('imagecolorallocate', $img, $r, $g, $b); } /** * imagecolorat wrapper */ function func_imagecolorat($img, $x, $y) { return func_gd_wrapper('imagecolorat', $img, $x, $y); } /** * imagesetpixel wrapper */ function func_imagesetpixel($img, $x, $y, $color) { return func_gd_wrapper('imagesetpixel', $img, $x, $y, $color); } /** * imagealphablending wrapper */ function func_imagealphablending($img, $flag) { return func_gd_wrapper('imagealphablending', $img, $flag); } /** * imagesavealpha wrapper */ function func_imagesavealpha($img, $flag) { return func_gd_wrapper('imagesavealpha', $img, $flag); } /** * imagecolorallocatealpha wrapper */ function func_imagecolorallocatealpha($img, $a, $b, $c, $d) { return func_gd_wrapper('imagecolorallocatealpha', $img, $a, $b, $c, $d); } /** * imagecreatetruecolor wrapper */ function func_imagecreatetruecolor($x, $y) { return func_gd_wrapper('imagecreatetruecolor', $x, $y); } /** * imagecreatefromjpeg wrapper */ function func_imagecreatefromjpeg($file) { return func_gd_wrapper('imagecreatefromjpeg', $file); } /** * imagecreatefromgif wrapper */ function func_imagecreatefromgif($file) { return func_gd_wrapper('imagecreatefromgif', $file); } /** * imagecreatefrompng wrapper */ function func_imagecreatefrompng($file) { return func_gd_wrapper('imagecreatefrompng', $file); } /** * imagecreatefromxpm wrapper */ function func_imagecreatefromxpm($file) { return func_gd_wrapper('imagecreatefromxpm', $file); } /** * imagecreatefromgd wrapper */ function func_imagecreatefromgd($file) { return func_gd_wrapper('imagecreatefromgd', $file); } /** * imagecreatefromgd2 wrapper */ function func_imagecreatefromgd2($file) { return func_gd_wrapper('imagecreatefromgd2', $file); } /** * imagecreatefromwbmp wrapper */ function func_imagecreatefromwbmp($file) { return func_gd_wrapper('imagecreatefromwbmp', $file); } ?> -------------------------------------------------+ | X-Cart Software license agreement | | Copyright (c) 2001-2012 Qualiteam software Ltd | | All rights reserved. | +-----------------------------------------------------------------------------+ | PLEASE READ THE FULL TEXT OF SOFTWARE LICENSE AGREEMENT IN THE "COPYRIGHT" | | FILE PROVIDED WITH THIS DISTRIBUTION. THE AGREEMENT TEXT IS ALSO AVAILABLE | | AT THE FOLLOWING URL: http://www.x-cart.com/license.php | | | | THIS AGREEMENT EXPRESSES THE TERMS AND CONDITIONS ON WHICH YOU MAY USE THIS | | SOFTWARE PROGRAM AND ASSOCIATED DOCUMENTATION THAT QUALITEAM SOFTWARE LTD | | (hereinafter referred to as "THE AUTHOR") OF REPUBLIC OF CYPRUS IS | | FURNISHING OR MAKING AVAILABLE TO YOU WITH THIS AGREEMENT (COLLECTIVELY, | | THE "SOFTWARE"). PLEASE REVIEW THE FOLLOWING TERMS AND CONDITIONS OF THIS | | LICENSE AGREEMENT CAREFULLY BEFORE INSTALLING OR USING THE SOFTWARE. BY | | INSTALLING, COPYING OR OTHERWISE USING THE SOFTWARE, YOU AND YOUR COMPANY | | (COLLECTIVELY, "YOU") ARE ACCEPTING AND AGREEING TO THE TERMS OF THIS | | LICENSE AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY THIS AGREEMENT, DO | | NOT INSTALL OR USE THE SOFTWARE. VARIOUS COPYRIGHTS AND OTHER INTELLECTUAL | | PROPERTY RIGHTS PROTECT THE SOFTWARE. THIS AGREEMENT IS A LICENSE AGREEMENT | | THAT GIVES YOU LIMITED RIGHTS TO USE THE SOFTWARE AND NOT AN AGREEMENT FOR | | SALE OR FOR TRANSFER OF TITLE. THE AUTHOR RETAINS ALL RIGHTS NOT EXPRESSLY | | GRANTED BY THIS AGREEMENT. | +-----------------------------------------------------------------------------+ \*****************************************************************************/ /** * Functions for Wishlist module * * @category X-Cart * @package X-Cart * @subpackage Modules * @author Ruslan R. Fazlyev * @copyright Copyright (c) 2001-2012 Qualiteam software Ltd * @license http://www.x-cart.com/license.php X-Cart license agreement * @version $Id: func.php,v 1.1.2.3 2012/07/24 15:15:04 aim Exp $ * @link http://www.x-cart.com/ * @see ____file_see____ */ if ( !defined('XCART_START') ) { header("Location: ../../"); die("Access denied"); } /* * Used from skin/common_files/customer/service_js.tpl */ function func_tpl_is_jcarousel_is_needed() { global $smarty, $config, $active_modules; static $res; if (isset($res)) return $res; if ( !empty($active_modules['Wishlist']) && strstr($config['alt_skin'], 'ideal_comfort') !== false && ($vars = $smarty->get_template_vars()) && $vars['main'] == 'cart' && ( !empty($vars['wl_products']) || !empty($vars['wl_giftcerts']) ) ) { $res = true; } else { $res = false; } return $res; } ?>

Si la página NO se actualiza en 2 segundos, por favor pulse aquí: Continuar >>