Jump to content

syscon

Members
  • Content count

    286
  • Joined

  • Last visited

2 Followers

Profile Information

Recent Profile Visitors

10,725 profile views
  1. syscon

    upgrading osCommerce 2.2 RC2 to PHP 7.3

    Thank you Matt, that is very helpful. My osCommerce ver. 2.2 RC2 is converted almost 95% to PHP 7.3 (everything works) I just have two issues remaining. 1.) VISUAL VERIFY CODE It doesn't display correctly, here is a picture from contact us: I think the relevant code is: from: contact_us.php //VISUAL VERIFY CODE start require(DIR_WS_FUNCTIONS . 'visual_verify_code.php'); $code_query = tep_db_query("select code from visual_verify_code where oscsid = '" . $HTTP_GET_VARS['osCsid'] . "'"); $code_array = tep_db_fetch_array($code_query); $code = $code_array['code']; tep_db_query("DELETE FROM " . TABLE_VISUAL_VERIFY_CODE . " WHERE oscsid='" . $vvcode_oscsid . "'"); //remove the visual verify code associa$ $user_entered_code = $HTTP_POST_VARS['visual_verify_code']; if (!(strcasecmp($user_entered_code, $code) == 0)) { //make the check case insensitive $error = true; $messageStack->add('contact', VISUAL_VERIFY_CODE_ENTRY_ERROR); } //VISUAL VERIFY CODE stop and the second file: from: includes/functions/visual_verify_code.php <?php /* /////////////////////////////////////////////////// file: visual_verify_code.php,v 1.0 26SEP03 Written for use with: osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Part of Contribution Named: Visual Verify Code (VVC) by William L. Peer, Jr. (wpeer@forgepower.com) for www.onlyvotives.com [Modified By] [Date] [Mods Made] ------------------------------------------- ------------------------------------------- */ ////////////////////////////// /* This funtion has the responsibility of displaying the actual visual code with random results. It randomly picks an x and y position as well as font size for each character in the visual code */ function vvcode_render_code($code) { if (!empty($code)) { $imwidth=200; $imheight=40; $font_size = $imheight * 0.75; $font_position = $imheight * 0.30; Header("Content-type: image/Jpeg"); $im = @ImageCreate ($imwidth, $imheight) or die ("Cannot Initialize new GD image stream"); $background_color = ImageColorAllocate ($im, 255,255,255); $text_color = ImageColorAllocate ($im, 20,40,100); $border_color = ImageColorAllocate ($im, 0,0,0); $noise_color = ImageColorAllocate($im, 200, 200, 200); /* generate random dots in background */ for( $n=0; $n<($imwidth*$imheight)/3; $n++ ) { imagefilledellipse($im, mt_rand(0,$imwidth), mt_rand(0,$imheight), 1, 1, $noise_color); } /* generate random lines in background */ for( $n=0; $n<($imwidth*$imheight)/150; $n++ ) { imageline($im, mt_rand(0,$imwidth), mt_rand(0,$imheight), mt_rand(0,$imwidth), mt_rand(0,$imheight), $noise_color); } //strip any spaces that may have crept in //end-user wouldn't know to type the space! :) $code = str_replace(" ", "", $code); $x=0; $stringlength = strlen($code); for ($i = 0; $i< $stringlength; $i++) { $x = $x + $font_size; $y = $font_position; $font = ImageLoadFont("includes/fonts/automatic.gdf"); $single_char = substr($code, $i, 1); imagechar($im, $font, $x, $y, $single_char, $text_color); } imagerectangle ($im, 0, 0, $imwidth-1, $imheight-1, $border_color); ImageJpeg($im); ImageDestroy; } } Anybody has any idea it doesn't display anything and/or how to fix it. 2.) I would like to convert the code so the "padlock" appear without an error message. The code is a mixture of http and https on one page so users will be getting a warning message from newer browsers, like on a picture below: I've tried changing in configure.php define('HTTP_SERVER', 'http://www.sysconcept.ca'); define('HTTP_CATALOG_SERVER', 'http://www.sysconcept.ca'); to define('HTTP_SERVER', 'https://www.sysconcept.ca'); define('HTTP_CATALOG_SERVER', 'https://www.sysconcept.ca'); It does not help. What changes are need to be made in order to show entire page in https
  2. syscon

    upgrading osCommerce 2.2 RC2 to PHP 7.3

    I know how to fix the deprecated errors, but I am not sure where to find the constants mentioned; they don't seem to be defined anywhere that I can find.
  3. I am working on upgrading osCommerce 2.2 RC2 to work with PHP 7.3, and I'm almost done but in Admin section: Moduels I am getting some errors: Shipping Modules  Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/catalog/admin/modules.php on line 233 Warning: Use of undefined constant MODULE_SHIPPING_ITEM_SORT_ORDER - assumed 'MODULE_SHIPPING_ITEM_SORT_ORDER' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/item.php on line 23 Warning: Use of undefined constant MODULE_SHIPPING_ITEM_TAX_CLASS - assumed 'MODULE_SHIPPING_ITEM_TAX_CLASS' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/item.php on line 25 Warning: Use of undefined constant MODULE_SHIPPING_ITEM_STATUS - assumed 'MODULE_SHIPPING_ITEM_STATUS' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/item.php on line 26 Warning: Use of undefined constant MODULE_SHIPPING_TABLE_SORT_ORDER - assumed 'MODULE_SHIPPING_TABLE_SORT_ORDER' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/table.php on line 23 Warning: Use of undefined constant MODULE_SHIPPING_TABLE_TAX_CLASS - assumed 'MODULE_SHIPPING_TABLE_TAX_CLASS' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/table.php on line 25 Warning: Use of undefined constant MODULE_SHIPPING_TABLE_STATUS - assumed 'MODULE_SHIPPING_TABLE_STATUS' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/table.php on line 26 Warning: Use of undefined constant MODULE_SHIPPING_USPS_SORT_ORDER - assumed 'MODULE_SHIPPING_USPS_SORT_ORDER' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/usps.php on line 23 Warning: Use of undefined constant MODULE_SHIPPING_USPS_TAX_CLASS - assumed 'MODULE_SHIPPING_USPS_TAX_CLASS' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/usps.php on line 25 Warning: Use of undefined constant MODULE_SHIPPING_USPS_STATUS - assumed 'MODULE_SHIPPING_USPS_STATUS' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/usps.php on line 26 Warning: Use of undefined constant MODULE_SHIPPING_ZONES_SORT_ORDER - assumed 'MODULE_SHIPPING_ZONES_SORT_ORDER' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/zones.php on line 105 Warning: Use of undefined constant MODULE_SHIPPING_ZONES_TAX_CLASS - assumed 'MODULE_SHIPPING_ZONES_TAX_CLASS' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/zones.php on line 107 Warning: Use of undefined constant MODULE_SHIPPING_ZONES_STATUS - assumed 'MODULE_SHIPPING_ZONES_STATUS' (this will throw an Error in a future version of PHP) in /var/www/html/catalog/includes/modules/shipping/zones.php on line 108 Any programmer that can provide any input on it?
  4. Thank you for the explanation, it makes sense. We process all credit cards manually, in addition they are deleted as soon as we process the transaction and yes our legal / security are covered.
  5. What is the difference between current osCommerce-v2.3.4.1 vs. OSCOM CE Phoenix Edition v1.0.7.9 It seems like a fork, but why? Which one has a credit-card module? There is a well osCommerce-v3
  6. I'm currently running osCommerce 2.2 RC2 on MySQL 5.6.39 and PHP-5.6.33 on Gentoo and it has been working for some time without any problems. The reason I'm upgrading (being force to upgrade) is that my Hard Drive is going slowly 😕 I have a backup but soon or later I'll be force to upgrade. Now I have to find that Phoenix Club ;-/
  7. I imported my database (in Debian stable) to MariaDB so can I install the new Phoenix-osCommerce and point it to that database?
  8. Yes, my osCommerce is very old: osCommerce v2.2 RC2 I think you might be right, the reason I stick around this version for so long as it includes, credit-card modules that I used. Does Phoenix include "credit-card module? Are there any instructions on how to port/import the database information? If not I'll have to install an older version of php. 5.6 and hopefully it will run on debian-stable or Gentoo.
  9. I'm still running osCommerce 2.2 on php 5.6 when I tried to switch to php 7.3 when I try to admin login I get an error : I think it has something do to with new php 7 requirement. The error refers to a code in database.php $$link = mysql_connect($server, $username, $password); Is there solution to it? I was able to find from: https://www.php.net/manual/en/function.mysql-connect.php The problem is with mysql_connect
  10. Is there any add-on for Log-in, creating account? I'm running OSC-2.2RC2 and have installed "anti_spambot_contact_us" add-on but I've noticed that someone from China is createing artifical accont for some malicous porpuse (hopeing to send an email through my server etc, I don't know). So I'm deleting these account but the solution would be to install some kind of add-on validation for Logging IN and Creating Account. Is there such an add-on for OSC-2.2RC2?
  11. syscon

    Order IP Recorder v1.0

    problem solved! Error on my part (made a typo).
  12. syscon

    Order IP Recorder v1.0

    After installing "Order-IP-recorder v.1.5 on OSC v2.2 RC2 I get his error message when I try to check it out: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/localhost/htdocs/sysconcept_ca/catalog/checkout_confirmation.php:1) in /var/www/localhost/htdocs/sysconcept_ca/catalog/includes/functions/sessions.php on line 102 Does anybody know how to fix it or alternative contribution?
  13. Hi Chris, did you make an update to this module to work with os 2.2ms2 I was trying to follow the steps but I'm not shure everthing is correct: STEP 2.) ------- Copy 'feedback_data.php' to your document root. (Example: /home/username/feedback_data.php) There is no "feedback_data.php" file in the contribuition, there is "feedback_data.txt" was it a typo or I'm missing a file. Second, STEP 4.) is asking me to modify this file, it doesn't exist in ver. 2.2ms2 ------- Open '/catalog/includes/languages/english/create_account_process.php' Regards, Joseph
  14. Serj, there is a bug in your contribution I think. I just checked some of my subcategory and they are not displaying at all. You can see it for yourself, click on the first link and then on the second link: http://www.sysconcept.ca/category32_21_23/index.html http://www.sysconcept.ca/index.php?cPath=32_23 Is there a quick soluiton. Joseph
  15. Header Tags Controller seems like a nice contribution but is there an easy way do do an upgrade next time around. With every upgrade I dedicate a day or two to do the changes, some of them are minor so it is easy to do. But for example Header Tags Controller require modification to about 35 files. How do you folks mange upgrades from one version to another. I guess it would be possible to build some kind of script that will do search and replace. I've a file in which I keep notes of all the changes I've made and to which file, this way it is easy to go through an upgrade. In addition the upgrades are getting more complicated when the database structure changes. I would like to hear some other ideas how to mange upgrades. Joseph
×