A
download dectobase64.inc.php
Language: PHP
Copyright: (c) 2003 netz-designer
LOC: 73
Project Info
melponeme(xoopsbrasileiro)
Server: BerliOS
Type: cvs
...omercio\XBComercio_v1x\inc\
   .htaccess
   base64todec.inc.php
   changedatain.inc.php
   changedataout.inc.php
   create_coupon_code.inc.php
   dectobase64.inc.php
   tep_add_tax.inc.php
   ...ctivate_banners.inc.php
   xtc_add_tax.inc.php
   xtc_address_format.inc.php
   xtc_address_label.inc.php
   ...address_summary.inc.php
   ...array_to_string.inc.php
   xtc_banner_exists.inc.php
   xtc_break_string.inc.php
   xtc_browser_detect.inc.php
   ..._also_purchased.inc.php
   ..._categories_box.inc.php
   ...nufacturers_box.inc.php
   xtc_calculate_tax.inc.php
   xtc_check_agent.inc.php
   ...tegories_status.inc.php
   xtc_check_gzip.inc.php
   xtc_check_stock.inc.php
   ...tock_attributes.inc.php
   xtc_checkdate.inc.php
   xtc_collect_posts.inc.php
   ...nvert_linefeeds.inc.php
   xtc_count_cart.inc.php
   ...ss_book_entries.inc.php
   ...customer_orders.inc.php
   xtc_count_modules.inc.php
   ...payment_modules.inc.php
   ...cts_in_category.inc.php
   ...hipping_modules.inc.php
   ...create_password.inc.php
   ...te_random_value.inc.php
   ...te_sort_heading.inc.php
   ...currency_exists.inc.php
   ...stomer_greeting.inc.php
   xtc_date_long.inc.php
   xtc_date_short.inc.php
   xtc_db_close.inc.php
   xtc_db_connect.inc.php
   ...nnect_installer.inc.php
   xtc_db_data_seek.inc.php
   xtc_db_error.inc.php
   xtc_db_fetch_array.inc.php
   ...db_fetch_fields.inc.php
   xtc_db_free_result.inc.php
   xtc_db_input.inc.php
   xtc_db_insert_id.inc.php
   xtc_db_install.inc.php
   xtc_db_num_rows.inc.php
   xtc_db_output.inc.php
   xtc_db_perform.inc.php
   ...b_prepare_input.inc.php
   xtc_db_query.inc.php
   ...query_installer.inc.php
   xtc_db_select_db.inc.php
   ...test_connection.inc.php
   ...e_db_permission.inc.php
   xtc_delete_file.inc.php
   xtc_display_banner.inc.php
   ...splay_tax_value.inc.php
   ..._content_bullet.inc.php
   ...aw_box_contents.inc.php
   ...raw_box_heading.inc.php
   ..._checkbox_field.inc.php
   ...field_installer.inc.php
   xtc_draw_form.inc.php
   ...aw_hidden_field.inc.php
   ...field_installer.inc.php
   ...raw_input_field.inc.php
   ...field_installer.inc.php
   ..._password_field.inc.php
   ...field_installer.inc.php
   ..._pull_down_menu.inc.php
   ...raw_radio_field.inc.php
   ...field_installer.inc.php
   ...selection_field.inc.php
   ...field_installer.inc.php
   xtc_draw_separator.inc.php
   ..._textarea_field.inc.php
   ...ncrypt_password.inc.php
   xtc_error_message.inc.php
   xtc_exit.inc.php
   xtc_expire_banners.inc.php
   ...expire_specials.inc.php
   xtc_filesize.inc.php
   xtc_findTitle.inc.php
   ...format_filesize.inc.php
   xtc_format_price.inc.php
   ...price_graduated.inc.php
   ...mat_price_order.inc.php
   ...t_special_price.inc.php
   xtc_gdlib_check.inc.php
   ...dress_format_id.inc.php
   ..._all_get_params.inc.php
   ...ttributes_model.inc.php
   xtc_get_categories.inc.php
   xtc_get_countries.inc.php
   ..._with_iso_codes.inc.php
   ...et_country_list.inc.php
   ...et_country_name.inc.php
   ...rrencies_values.inc.php
   ...er_status_value.inc.php
   ...tomers_statuses.inc.php
   xtc_get_db_cache.inc.php
   xtc_get_download.inc.php
   xtc_get_ip_address.inc.php
   ...t_manufacturers.inc.php
   xtc_get_order_data.inc.php
   ...rent_categories.inc.php
   xtc_get_path.inc.php
   xtc_get_prid.inc.php
   ...et_product_path.inc.php
   ...attribute_price.inc.php
   ..._price_checkout.inc.php
   ...t_products_name.inc.php
   ..._products_price.inc.php
   ...s_special_price.inc.php
   ..._products_stock.inc.php
   xtc_get_qty.inc.php
   ...ing_status_name.inc.php
   ...ort_description.inc.php
   ..._products_price.inc.php
   ...t_subcategories.inc.php
   ...et_tax_class_id.inc.php
   ...tax_description.inc.php
   xtc_get_tax_rate.inc.php
   ..._rate_from_desc.inc.php
   ...op_level_domain.inc.php
   xtc_get_uprid.inc.php
   xtc_get_zone_code.inc.php
   xtc_get_zone_name.inc.php
   ..._account_update.inc.php
   xtc_gzip_output.inc.php
   ...y_subcategories.inc.php
   ...duct_attributes.inc.php
   ...hide_session_id.inc.php
   xtc_href_link.inc.php
   xtc_image.inc.php
   xtc_image_button.inc.php
   xtc_image_submit.inc.php
   xtc_in_array.inc.php
   xtc_is_leap_year.inc.php
   xtc_not_null.inc.php
   xtc_output_warning.inc.php
   ...e_category_path.inc.php
   ...nput_field_data.inc.php
   ...e_search_string.inc.php
   xtc_php_mail.inc.php
   xtc_precision.inc.php
   xtc_rand.inc.php
   xtc_random_name.inc.php
   xtc_random_select.inc.php
   xtc_read_cache.inc.php
   ...calculate_price.inc.php
   xtc_redirect.inc.php
   ...ove_non_numeric.inc.php
   xtc_round.inc.php
   ...w_number_format.inc.php
   ...t_banner_status.inc.php
   ..._status_upgrade.inc.php
   ...specials_status.inc.php
   xtc_set_time_limit.inc.php
   xtc_setcookie.inc.php
   ...ategory_content.inc.php
   xtc_sqlSafeString.inc.php
   xtc_string_to_int.inc.php
   ...unlink_temp_dir.inc.php
   ...ner_click_count.inc.php
   ...r_display_count.inc.php
   ...ate_whos_online.inc.php
   xtc_validate_email.inc.php
   ...lidate_password.inc.php
   xtc_word_count.inc.php
   xtc_write_cache.inc.php
   ...write_user_info.inc.php

<?php
/*------------------------------------------------------------------------------
  $Id: dectobase64.inc.php,v 1.1 2004/07/13 23:48:15 mauriciolima Exp $

  XTC-CC - Contribution for XT-Commerce http://www.xt-commerce.com
  modified by http://www.netz-designer.de

  Copyright (c) 2003 netz-designer
  -----------------------------------------------------------------------------
  based on:
  credit card encryption functions for the catalog module

  BMC 2003 for the CC CVV Module

  (c) Mainframes 2003 http://www.mainframes.co.uk
------------------------------------------------------------------------------*/

function dectobase64($decimal_value){

   // convert decimal value into base64 value

   switch($decimal_value){
	case 0: $base64_value="A";break;
	case 1: $base64_value="B";break;
	case 2: $base64_value="C";break;
	case 3: $base64_value="D";break;
	case 4: $base64_value="E";break;
	case 5: $base64_value="F";break;
	case 6: $base64_value="G";break;
	case 7: $base64_value="H";break;
	case 8: $base64_value="I";break;
	case 9: $base64_value="J";break;
	case 10: $base64_value="K";break;
	case 11: $base64_value="L";break;
	case 12: $base64_value="M";break;
	case 13: $base64_value="N";break;
	case 14: $base64_value="O";break;
	case 15: $base64_value="P";break;
	case 16: $base64_value="Q";break;
	case 17: $base64_value="R";break;
	case 18: $base64_value="S";break;
	case 19: $base64_value="T";break;
	case 20: $base64_value="U";break;
	case 21: $base64_value="V";break;
	case 22: $base64_value="W";break;
	case 23: $base64_value="X";break;
	case 24: $base64_value="Y";break;
	case 25: $base64_value="Z";break;
	case 26: $base64_value="a";break;
	case 27: $base64_value="b";break;
	case 28: $base64_value="c";break;
	case 29: $base64_value="d";break;
	case 30: $base64_value="e";break;
	case 31: $base64_value="f";break;
	case 32: $base64_value="g";break;
	case 33: $base64_value="h";break;
	case 34: $base64_value="i";break;
	case 35: $base64_value="j";break;
	case 36: $base64_value="k";break;
	case 37: $base64_value="l";break;
	case 38: $base64_value="m";break;
	case 39: $base64_value="n";break;
	case 40: $base64_value="o";break;
	case 41: $base64_value="p";break;
	case 42: $base64_value="q";break;
	case 43: $base64_value="r";break;
	case 44: $base64_value="s";break;
	case 45: $base64_value="t";break;
	case 46: $base64_value="u";break;
	case 47: $base64_value="v";break;
	case 48: $base64_value="w";break;
	case 49: $base64_value="x";break;
	case 50: $base64_value="y";break;
	case 51: $base64_value="z";break;
	case 52: $base64_value="0";break;
	case 53: $base64_value="1";break;
	case 54: $base64_value="2";break;
	case 55: $base64_value="3";break;
	case 56: $base64_value="4";break;
	case 57: $base64_value="5";break;
	case 58: $base64_value="6";break;
	case 59: $base64_value="7";break;
	case 60: $base64_value="8";break;
	case 61: $base64_value="9";break;
	case 62: $base64_value="+";break;
	case 63: $base64_value="/";break;
	case 64: $base64_value="=";break;
	default: $base64_value="a";break;
   }

   return $base64_value;
}
?>

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us