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

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

Views: 564

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,805
Plugin Contributions:
15

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.

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: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.