Forums / General Questions / CODE showing up on ADMIN->MODULE->PAYMENTS????

CODE showing up on ADMIN->MODULE->PAYMENTS????

Started by ehdesign on 23 May 2011, 4:12 PM · Views: 566

Results 1 to 5 of 5
23 May 2011, 4:12 PM
#1
ehdesign avatar

ehdesign

New Zenner

Join Date:
Nov 2006
Posts:
56
Plugin Contributions:
0

CODE showing up on ADMIN->MODULE->PAYMENTS????

When I go to:

ADMIN->MODULES->PAYMENT...

I see a bunch of PHP code displayed. Here's a brief sampe:

.authorize.net/gateway/transact.dll'; $this->gateway_mode = MODULE_PAYMENT_AUTHORIZENET_GATEWAY_MODE; $this->_logDir = DIR_FS_SQL_CACHE; // verify table structure if (IS_ADMIN_FLAG === true) $this->tableCheckup(); } // Authorize.net utility functions // DISCLAIMER: // This code is distributed in the hope that it will be useful, but without any warranty; // without even the implied warranty of merchantability or fitness for a particular purpose. // Main Interfaces: // // function InsertFP ($loginid, $txnkey, $amount, $sequence) - Insert HTML form elements required for SIM // function CalculateFP ($loginid, $txnkey, $amount, $sequence, $tstamp) - Returns Fingerprint. // compute HMAC-MD5 // Uses PHP mhash extension. Be sure to enable the extension // function hmac ($key, $data) { // return (bin2hex (mhash(MHASH_MD5, $data, $key))); //} // Thanks is lance from http://www.php.net/manual/en/function.

Not sure what this is from? I found the file for this in /includes/modules/payment/authorizenet.php

But, I have no idea why the code is being displayed?

ANY help?

Everything seems to work, but we haven't tested AUTHORIZE yet as the account isn't set up.

Thanks in advance...

23 May 2011, 4:38 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,900
Plugin Contributions:
22

Re: CODE showing up on ADMIN->MODULE->PAYMENTS????

You need to check your existing authorize.net files against those from a clean extract of your version. One of them has either a bad upload or a bad edit.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

23 May 2011, 4:41 PM
#3
ehdesign avatar

ehdesign

New Zenner

Join Date:
Nov 2006
Posts:
56
Plugin Contributions:
0

Re: CODE showing up on ADMIN->MODULE->PAYMENTS????

any idea which files????

Actually, the code that is being shown appears to come from this:

/includes/modules/payment/authorizenet.php

And, this file appears correct.

Wondering if it is something else??? Maybe the payment module ? I'm just not sure what files to start uploading / replacing / checking????

23 May 2011, 4:53 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: CODE showing up on ADMIN->MODULE->PAYMENTS????

ehdesign:

I'm just not sure what files to start uploading / replacing / checking????
Fastest way to find out: http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 May 2011, 4:59 PM
#5
ehdesign avatar

ehdesign

New Zenner

Join Date:
Nov 2006
Posts:
56
Plugin Contributions:
0

Re: CODE showing up on ADMIN->MODULE->PAYMENTS????

Thanks. I was just hoping someone could pick the file out of the air.

I'll do a FTP sync and see what I find...

Thanks.