[openSRS-PHP-CVS] CVS: opensrs-php openSRS.inc.default,1.6,1.7 openSRS_base.inc,1.20,1.21
Brought to you by:
cviebrock
From: Colin V. <cvi...@us...> - 2001-03-27 20:57:05
|
Update of /cvsroot/opensrs-php/opensrs-php In directory usw-pr-cvs1:/tmp/cvs-serv30037 Modified Files: openSRS.inc.default openSRS_base.inc Log Message: put support for both live and test keys at once (so you can make a live and a test instance of the base class in the same code without editing your conf file). Index: openSRS.inc.default =================================================================== RCS file: /cvsroot/opensrs-php/opensrs-php/openSRS.inc.default,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- openSRS.inc.default 2000/11/06 18:48:00 1.6 +++ openSRS.inc.default 2001/03/27 20:56:58 1.7 @@ -18,7 +18,8 @@ class openSRS extends openSRS_base { var $USERNAME = 'youropensrsname'; - var $PRIVATE_KEY = 'abcdef1234567890'; + var $TEST_PRIVATE_KEY = 'abcdef1234567890'; + var $LIVE_PRIVATE_KEY = 'abcdef1234567890'; var $environment = 'TEST'; # 'TEST' or 'LIVE' var $crypt_type = 'DES'; # 'DES' or 'BLOWFISH'; Index: openSRS_base.inc =================================================================== RCS file: /cvsroot/opensrs-php/opensrs-php/openSRS_base.inc,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- openSRS_base.inc 2001/03/24 21:50:08 1.20 +++ openSRS_base.inc 2001/03/27 20:56:58 1.21 @@ -48,8 +48,12 @@ # VARIABLES var $USERNAME = ''; + var $PRIVATE_KEY = ''; + var $TEST_PRIVATE_KEY = ''; + var $LIVE_PRIVATE_KEY = ''; + var $VERSION = 'XML:pre0.1'; var $base_class_version = '2.2.1'; @@ -210,6 +214,7 @@ $this->REMOTE_HOST = $this->{$this->environment.'_host'}; $this->REMOTE_PORT = $this->{$this->environment.'_port'}; + $this->PRIVATE_KEY = $this->{$this->environment.'_PRIVATE_KEY'}; $this->_CBC = false; |