| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:28:27 2008 ] | [ PgMarket 2.2.3 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 // (C) 2000-2003 Marco Pratesi <marco@pgmarket.net> 3 // (C) 2000 Ying Zhang (ying@zippydesign.com) 4 5 $CFG = array(); 6 7 $CFG["dbms"] = "pgsql"; // PostgreSQL 8 //$CFG["dbms"] = "mysql"; // MySQL 9 10 $CFG["available_languages"] = array("it", "en"); 11 $CFG["use_http_accept_language"] = 1; // set it to 1 to try 12 // to automatically choose the browser's preferred language 13 // among the available ones, relying on HTTP_ACCEPT_LANGUAGE 14 // if the language session variable is still not defined 15 16 $session_name = "pgm_example_session"; // not significant if PHP 4.0 is used 17 18 // *all* directories stored in $CFG *must* be indicated *with* an ending "/" 19 $CFG["wwwroot"] = "/~pratesi/pgmarket/"; // *with* an ending "/" 20 $CFG["dirroot"] = "/home/pratesi/public_html/pgmarket/";// *with* an ending "/" 21 $CFG["firstpage"] = $CFG["wwwroot"] . "index.php"; 22 $CFG["libdir"] = $CFG["dirroot"] . "lib/"; // *with* an ending "/" 23 $CFG["libwww"] = $CFG["wwwroot"] . "lib/"; // ... and so on... 24 $CFG["localedir"] = $CFG["dirroot"] . "locale/"; 25 $CFG["productswww"] = $CFG["wwwroot"] . "products/"; 26 $CFG["productsdir"] = $CFG["dirroot"] . "products/"; 27 $CFG["imageswww"] = $CFG["wwwroot"] . "images/"; 28 $CFG["imagesdir"] = $CFG["dirroot"] . "images/"; 29 30 $CFG["myname"] = "PgMarket 2.2.3"; 31 32 $CFG["support"] = "pratesi@localhost"; // "Technical support" at PgMarket 33 $CFG["seller_fullname"] = "Marco Pratesi"; 34 $CFG["seller_email"] = "pratesi@localhost"; 35 $CFG["subject_contact"] = "Contattaci!"; 36 $CFG["subject_cash_on_delivery"] = "Ordine con Pagamento in Contrassegno"; 37 $CFG["subject_credit_card"] = "Ordine con Pagamento con Carta di Credito"; 38 39 $CFG["currency"] = "€"; 40 //$CFG["currency"] = "$"; 41 $CFG["price_must_be_integer"] = 0; 42 // 0 --> the price can be float (Euro and US Dollars, for example) 43 // 1 --> the price must be integer (Italian Lit, for example) 44 $CFG["brand_used"] = 1; 45 $CFG["iva_used"] = 1; // IVA, i.e. VAT 46 //$CFG["iva_value"] = 0; // not significant if IVA is used 47 $CFG["IVA"] = "IVA"; 48 $CFG["weight_used"] = 1; 49 $CFG["weight_unit"] = "Kg"; // not significant if weight is not used 50 $CFG["max_weight"] = 10000.0; // not significant if weight is not used 51 $CFG["delivery_used"] = 1; 52 $CFG["only_one_delivery_zone"] = 0; // set it to 1 if you will use only the default delivery zone, with id = 1 53 $CFG["color_used"] = 1; 54 $CFG["user_discount_used"] = 1; 55 $CFG["max_file_size_images"] = 500000; // upload of product images 56 $CFG["max_file_size_import"] = 10000000; // upload of import files 57 $CFG["max_file_size_tables_data"] = 10000000; // upload of import files 58 59 $CFG["frames_used_by_default"] = 0; // 0 --> no, 1 --> yes 60 $CFG["layersmenu_used_by_default"] = 1; // 0 --> no, 1 --> yes 61 $CFG["layersmenu_cached"] = 1; // 0 --> no, 1 --> yes 62 63 $CFG["create_thumbs"] = 1; // do you want to enable generation of thumbs on the fly? 64 $CFG["rmf"] = "rm -f"; 65 $CFG["rmrf"] = "rm -rf"; 66 $CFG["unix"] = 1; 67 //$CFG["create_thumbs"] = 0; // on WAMP (Windows, Apache, MySQL, PHP) 68 //$CFG["rmf"] = "del"; // on WAMP 69 //$CFG["rmrf"] = "deltree"; // on WAMP 70 //$CFG["unix"] = 0; // on WAMP 71 72 // Note: if safe_mode is enabled and/or the open_basedir restriction 73 // is in effect, you are not able to use ImageMagick and netpbm + libjpeg 74 $CFG["use_imagemagick"] = 1; // Do you want to use ImageMagick to generate thumbs on the fly? 75 $CFG["use_libgd"] = 0; // Do you want to use PHP libgd support to generate thumbs on the fly? 76 $CFG["use_netpbm"] = 0; // Do you want to use netpbm + libjpeg to generate thumbs on the fly? 77 78 // On Debian Woody and Mandrake: 79 $CFG["imagemagick_path"] = "/usr/bin/"; // *with* an ending "/" 80 // 81 // On Red Hat: 82 //$CFG["imagemagick_path"] = "/usr/X11R6/bin/"; // *with* an ending "/" 83 // 84 $CFG["netpbm_path"] = "/usr/bin/"; // *with* an ending "/" 85 $CFG["libjpeg_path"] = "/usr/bin/"; // *with* an ending "/" 86 87 $CFG["images_on_file_system"] = 1; // set it to 0 if you want to store product images and thumbs in the DB 88 89 $CFG["base_lang"] = "it"; 90 //$CFG["base_lang"] = "en"; 91 $CFG["yes"] = "si"; 92 //$CFG["yes"] = "yes"; 93 $CFG["default_i18n"] = "en"; // The default internazionalization language 94 //$CFG["default_i18n"] = "it"; 95 96 function print_formatted_price($price) { 97 global $CFG; 98 echo $CFG["currency"] . " " . number_format ($price, 2, ".", ","); 99 } 100 function formatted_price($price) { 101 global $CFG; 102 return $CFG["currency"] . " " . number_format ($price, 2, ".", ","); 103 } 104 function formatted_price_text($price) { 105 global $CFG; 106 return "Euro " . number_format ($price, 2, ".", ","); 107 } 108 109 function print_formatted_weight($weight) { 110 echo number_format ($weight, 2, ",", "."); 111 // echo number_format ($weight, 2, ".", ","); 112 } 113 function formatted_weight($weight) { 114 return number_format ($weight, 2, ",", "."); 115 // return number_format ($weight, 2, ".", ","); 116 } 117 118 if (!isset($_SERVER)) $_SERVER = $HTTP_SERVER_VARS; // For CoMPaTiBiLiTy with PHP 4.0 119 if (!isset($_GET)) $_GET = $HTTP_GET_VARS; // For CoMPaTiBiLiTy with PHP 4.0 120 if (!isset($_POST)) $_POST = $HTTP_POST_VARS; // For CoMPaTiBiLiTy with PHP 4.0 121 if (!isset($_COOKIE)) $_COOKIE = $HTTP_COOKIE_VARS; // For CoMPaTiBiLiTy with PHP 4.0 122 if (!isset($_FILES)) $_FILES = $HTTP_POST_FILES; // For CoMPaTiBiLiTy with PHP 4.0 123 if (!isset($_ENV)) $_ENV = $HTTP_ENV_VARS; // For CoMPaTiBiLiTy with PHP 4.0 124 125 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |