| [ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
[Code source] [Imprimer] [Statistiques]
functions_general.php General functions used throughout Zen Cart
| Copyright: | Copyright 2003-2006 Zen Cart Development Team |
| Copyright: | Portions Copyright 2003 osCommerce |
| License: | http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 |
| Version: | $Id: functions_general.php 4683 2006-10-07 06:11:53Z drbyte $ |
| Poids: | 1473 lignes (49 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 6 fichiers includes/functions/functions_lookups.php includes/functions/functions_prices.php includes/functions/functions_categories.php includes/functions/functions_customers.php includes/functions/functions_taxes.php includes/functions/functions_gvcoupons.php |
| zen_exit() X-Ref |
| Stop from parsing any further PHP code |
| zen_redirect($url) X-Ref |
| Redirect to another page or site param: string The url to redirect to |
| zen_parse_input_field_data($data, $parse) X-Ref |
| Parse the data used in the html tags to ensure the tags will not break. Basically just an extension to the php strstr function param: string The string to be parsed param: string The needle to find |
| zen_output_string($string, $translate = false, $protected = false) X-Ref |
| Returns a string with conversions for security. param: string The string to be parsed param: string contains a string to be translated, otherwise just quote is translated param: boolean Do we run htmlspecialchars over the string |
| zen_output_string_protected($string) X-Ref |
| Returns a string with conversions for security. Simply calls the zen_ouput_string function with parameters that run htmlspecialchars over the string and converts quotes to html entities param: string The string to be parsed |
| zen_sanitize_string($string) X-Ref |
| Returns a string with conversions for security. param: string The string to be parsed |
| zen_break_string($string, $len, $break_char = '-') X-Ref |
| Break a word in a string if it is longer than a specified length ($len) param: string The string to be broken up param: int The maximum length allowed param: string The character to use at the end of the broken line |
| zen_get_all_get_params($exclude_array = '', $search_engine_safe = true) X-Ref |
| Return all HTTP GET variables, except those passed as a parameter The return is a urlencoded string param: mixed either a single or array of parameter names to be excluded from output |
| zen_browser_detect($component) X-Ref |
| Pas de description |
| zen_round($number, $precision) X-Ref |
| Pas de description |
| zen_row_number_format($number, $filler='0') X-Ref |
| Pas de description |
| zen_date_long($raw_date) X-Ref |
| Pas de description |
| zen_date_short($raw_date) X-Ref |
| Pas de description |
| zen_parse_search_string($search_str = '', &$objects) X-Ref |
| Pas de description |
| zen_checkdate($date_to_check, $format_string, &$date_array) X-Ref |
| Pas de description |
| zen_is_leap_year($year) X-Ref |
| Pas de description |
| zen_create_sort_heading($sortby, $colnum, $heading) X-Ref |
| Pas de description |
| zen_get_uprid($prid, $params) X-Ref |
| Pas de description |
| zen_get_prid($uprid) X-Ref |
| Pas de description |
| zen_word_count($string, $needle) X-Ref |
| Pas de description |
| zen_count_modules($modules = '') X-Ref |
| Pas de description |
| zen_count_payment_modules() X-Ref |
| Pas de description |
| zen_count_shipping_modules() X-Ref |
| Pas de description |
| zen_create_random_value($length, $type = 'mixed') X-Ref |
| Pas de description |
| zen_array_to_string($array, $exclude = '', $equals = '=', $separator = '&') X-Ref |
| Pas de description |
| zen_not_null($value) X-Ref |
| Pas de description |
| zen_currency_exists($code) X-Ref |
| Pas de description |
| zen_string_to_int($string) X-Ref |
| Pas de description |
| zen_rand($min = null, $max = null) X-Ref |
| Pas de description |
| zen_get_top_level_domain($url) X-Ref |
| Pas de description |
| zen_setcookie($name, $value = '', $expire = 0, $path = '/', $domain = '', $secure = 0) X-Ref |
| Pas de description |
| zen_get_ip_address() X-Ref |
| Pas de description |
| zen_convert_linefeeds($from, $to, $string) X-Ref |
| Pas de description |
| is_product_valid($product_id, $coupon_id) X-Ref |
| Pas de description |
| validate_for_category($product_id, $coupon_id) X-Ref |
| Pas de description |
| validate_for_product($product_id, $coupon_id) X-Ref |
| Pas de description |
| zen_db_input($string) X-Ref |
| Pas de description |
| zen_db_prepare_input($string) X-Ref |
| Pas de description |
| zen_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') X-Ref |
| Pas de description |
| zen_db_output($string) X-Ref |
| Pas de description |
| zen_field_type($tbl, $fld) X-Ref |
| Pas de description |
| zen_field_length($tbl, $fld) X-Ref |
| Pas de description |
| zen_set_field_length($tbl, $fld, $max=70) X-Ref |
| Pas de description |
| zen_back_link() X-Ref |
| Pas de description |
| zen_back_link_only($link_only = false) X-Ref |
| Pas de description |
| zen_random_select($query) X-Ref |
| Pas de description |
| zen_trunc_string($str = "", $len = 150, $more = 'true') X-Ref |
| Pas de description |
| zen_get_box_id($box_id) X-Ref |
| Pas de description |
| zen_get_buy_now_button($product_id, $link, $additional_link = false) X-Ref |
| Pas de description |
| zen_get_shipping_enabled($shipping_module) X-Ref |
| Pas de description |
| zen_html_entity_decode($given_html, $quote_style = ENT_QUOTES) X-Ref |
| Pas de description |
| zen_decode_specialchars($string) X-Ref |
| Pas de description |
| zen_clean_html($clean_it) X-Ref |
| Pas de description |
| zen_get_module_directory($check_file, $dir_only = 'false') X-Ref |
| Pas de description |
| zen_get_file_directory($check_directory, $check_file, $dir_only = 'false') X-Ref |
| Pas de description |
| zen_check_url_get_terms() X-Ref |
| Pas de description |
| fmod_round($x, $y) X-Ref |
| Pas de description |
| zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') X-Ref |
| Pas de description |
| zen_get_country_zones($country_id) X-Ref |
| return an array with zones defined for the specified country |
| zen_prepare_country_zones_pull_down($country_id = '') X-Ref |
| return an array with country names and matching zones to be used in pulldown menus |
| zen_js_zone_list($country, $form, $field) X-Ref |
| supplies javascript to dynamically update the states/provinces list when the country is changed TABLES: zones return string |
| date_diff($date1, $date2) X-Ref |
| Pas de description |
| Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
|