function fbPayment_AuthorizeNet() { if (!fbSystem::loadExtension('curl')) { trigger_error('Payment::AuthorizeNet requires the \'curl\' extension', E_USER_ERROR); return; } $this->_server = FB_PAYMENT_AUTHORIZE_NET_SERVER; $this->_port = 443; }
function fbPayment_PayflowPro() { if (!fbSystem::loadExtension('pfpro')) { trigger_error('Payment::PayflowPro requires the \'pfpro\' extension', E_USER_ERROR); return; } $this->_server = FB_PAYMENT_PAYFLOWPRO_SERVER; $this->_port = 443; }
echo 'isApache=', fbSystem::isApache(), "\n"; echo 'directorySeparator=', fbSystem::directorySeparator(), "\n"; $nl = fbSystem::lineSeparator(); echo 'lineSeparator='; for ($i = 0; $i < strlen($nl); ++$i) { printf("%d: %d ", $i + 1, ord($nl[$i])); } echo "\n"; echo 'pathSeparator=', fbSystem::pathSeparator(), "\n"; echo 'tempDirectory=', fbSystem::tempDirectory(), "\n"; echo 'extensionSuffix=', fbSystem::extensionSuffix(), "\n"; echo 'hostname=', fbSystem::hostname(), "\n"; echo 'username='******'include_path=', ini_get('include_path'), "\n"; fbSystem::appendIncludePath('appendme'); echo 'include_path=', ini_get('include_path'), "\n"; fbSystem::prependIncludePath('prependme'); echo 'include_path=', ini_get('include_path'), "\n"; echo 'loadExtension(\'standard\')=', fbSystem::loadExtension('standard'), "\n"; echo 'loadExtension(\'curl\')=', fbSystem::loadExtension('curl'), "\n"; echo 'loadExtension(\'failme\')=', fbSystem::loadExtension('failme'), "\n"; echo 'getLastError()=', fbSystem::getLastError(), "\n"; ?> </pre> <address> $CVSHeader: _freebeer/www/demo/System.php,v 1.3 2004/03/07 19:16:21 ross Exp $ </address> </body> </html>
function test_loadExtension() { $rv = fbSystem::loadExtension('curl'); $this->assertTrue(is_bool($rv)); }