Melinda Odom's Profile
Reputation: 0
Neutral
- Group:
- Team Member
- Active Posts:
- 1,185 (0.43 per day)
- Most Active In:
- General Support (929 posts)
- Joined:
- 10-September 02
- Profile Views:
- 20,935
- Last Active:
Mar 01 2010 06:13 PM- Currently:
- Offline
Latest Visitors
-
Guest
03 Mar 2010 - 08:59 -
Drkinocshat 
02 Mar 2010 - 01:19 -
acropolis 
28 Feb 2010 - 23:48 -
GaryatTVC 
23 Feb 2010 - 20:04 -
rromeijn 
22 Feb 2010 - 18:55
Posts I've Made
-
In Topic: Function ereg_replace() is deprecated
Posted 8 Jan 2010
It seems a shop will run on at least 5.2.12 which is what I'm using now. The only problem is the one I just posted.
I checked the order process and checks and paypal will work. I don't know about the other ones. -
In Topic: Function ereg_replace() is deprecated
Posted 8 Jan 2010
steve_s, on 07 January 2010 - 05:55 PM, said:Hi replace code in admin/includes/functions/validation.php
with code below will also work on shop side to
<?php /* $Id: validations.php 1739 2007-12-20 00:52:16Z hpdl $ Open Source E-Commerce Solutions Copyright (c) 2003 osCommerce, http://www.oscommerce.com Released under the GNU General Public License */ //////////////////////////////////////////////////////////////////////////////////////////////// // // Function : tep_validate_email // // Arguments : email email address to be checked // // Return : true - valid email address // false - invalid email address // // Description : function for validating email address that conforms to RFC 822 specs // // This function is converted from a Javascript written by // Sandeep V. Tamhankar (stamhankar@hotmail.com). The original Javascript // is available at http://javascript.internet.com // // Sample Valid Addresses: // // first.last@host.com // firstlast@host.to // "first last"@host.com // "first@last"@host.com // first-last@host.com // first.last@[123.123.123.123] // // Invalid Addresses: // // first last@host.com // // //////////////////////////////////////////////////////////////////////////////////////////////// function tep_validate_email($email) { $valid_address = true; $mail_pat = '/^(.+)@(.+)$/i'; $valid_chars = "[^] \(\)<>@,;:\.\\\"\[]"; $atom = "$valid_chars+"; $quoted_user='(\"[^\"]*\")'; $word = "($atom|$quoted_user)"; $user_pat = "/^$word(\.$word)*$/i"; $ip_domain_pat='/^\[([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\]$/i'; $domain_pat = "/^$atom(\.$atom)*$/i"; if (preg_match($mail_pat, $email, $components)) { $user = $components[1]; $domain = $components[2]; // validate user if (preg_match($user_pat, $user)) { // validate domain if (preg_match($ip_domain_pat, $domain, $ip_components)) { // this is an IP address for ($i=1;$i<=4;$i++) { if ($ip_components[$i] > 255) { $valid_address = false; break; } } } else { // Domain is a name, not an IP if (preg_match($domain_pat, $domain)) { /* domain name seems valid, but now make sure that it ends in a valid TLD or ccTLD and that there's a hostname preceding the domain or country. */ $domain_components = explode(".", $domain); // Make sure there's a host name preceding the domain. if (sizeof($domain_components) < 2) { $valid_address = false; } else { $top_level_domain = strtolower($domain_components[sizeof($domain_components)-1]); // Allow all 2-letter TLDs (ccTLDs) if (preg_match('/^[a-z][a-z]$/i', $top_level_domain) != 1) { $tld_pattern = ''; // Get authorized TLDs from text file $tlds = file(DIR_WS_INCLUDES . 'tld.txt'); while (list(,$line) = each($tlds)) { // Get rid of comments $words = explode('#', $line); $tld = trim($words[0]); // TLDs should be 3 letters or more if (preg_match('/^[a-z]{3,}$/i', $tld) == 1) { $tld_pattern .= '^' . $tld . '$|'; } } // Remove last '|' $tld_pattern = substr($tld_pattern, 0, -1); if (preg_match("/$tld_pattern/i", $top_level_domain) == 0) { $valid_address = false; } } } } else { $valid_address = false; } } } else { $valid_address = false; } } else { $valid_address = false; } if ($valid_address && ENTRY_EMAIL_ADDRESS_CHECK == 'true') { if (!checkdnsrr($domain, "MX") && !checkdnsrr($domain, "A")) { $valid_address = false; } } return $valid_address; } ?>
Steve
Same errors Steve. I compared the files and it is the same one from github I was using.
Other ideas? -
In Topic: Function ereg_replace() is deprecated
Posted 7 Jan 2010
error when trying to email from the store contact form
Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /home/designus/public_html/rc2/includes/functions/validations.php on line 97
I also get this error in the pink bar on the contact page
Quote
Your E-Mail Address does not appear to be valid - please make any necessary corrections.
This is the line
if (preg_match("/$tld_pattern/i", $top_level_domain) == 0) {
I copied the exact code listed at github for this admin/includes/functions/validation.php file. -
In Topic: Function ereg_replace() is deprecated
Posted 6 Jan 2010
The tools/server info does not show the php info any longer for some reason.
Steve what is this for?
Hi if there is already a / in the criteria add a before it \ ie '/a-f' becomes '/\/a-f'
-
In Topic: Function ereg_replace() is deprecated
Posted 5 Jan 2010
I put
<?php
phpinfo();
?>
in a .php page and now get this:
Warning: phpinfo() has been disabled for security reasons in /home/designus/public_html/php.php on line 2
What is wrong?
My Information
- Age:
- 63 years old
- Birthday:
- August 29, 1946
- Real Name:
- Melinda Odom
- Gender:
-
- Location:
- United States
- Interests:
- Web Design, Camping, Gardening, Christian & Classical Music.
- Add-On Dev:
- No
Contact Information
- E-mail:
- Click here to e-mail me
- Website URL:
-
http://www.designhosting.biz

Sign In
Register
Help

Find Topics
Find Posts
Comments
natsnot
07 Nov 2007 - 19:58