Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- PDO for 4D --SKIPIF-- <?php # vim:ft=php if (!extension_loaded('pdo') || !exten..

Decoded Output download

skip not loaded

Did this file decode correctly?

Original Code

--TEST--
PDO for 4D
--SKIPIF--
<?php # vim:ft=php
  if (!extension_loaded('pdo') || !extension_loaded('pdo_4d')) print 'skip not loaded';
  require dirname(__FILE__) . '/config.inc';
  require './pdo_test.inc';
  PDOTest::skip();
?>
--REDIRECTTEST--
# magic auto-configuration


if (false !== getenv('PDO_4D_TEST_DSN')) {
	# user set them from their shell
	$config['ENV']['PDOTEST_DSN'] = getenv('PDO_4D_TEST_DSN');
	$config['ENV']['PDOTEST_USER'] = getenv('PDO_4D_TEST_USER');
	$config['ENV']['PDOTEST_PASS'] = getenv('PDO_4D_TEST_PASS');
	if (false !== getenv('PDO_4D_TEST_ATTR')) {
		$config['ENV']['PDOTEST_ATTR'] = getenv('PDO_4D_TEST_ATTR');
	}
} else {
	$config['ENV']['PDOTEST_DSN'] = '4D:host=localhost;charset=UTF-8';
//	$config['ENV']['PDOTEST_DSN'] = '4D:host=10.2.0.82;charset=UTF-8';
//	$config['ENV']['PDOTEST_DSN'] = '4D:host=10.2.0.159;charset=UTF-8';
	$config['ENV']['PDOTEST_USER'] = 'test';
	$config['ENV']['PDOTEST_PASS'] = 'test';
	putenv('REDIR_TEST_DIR=./');
}

return $config;

Function Calls

dirname 1
extension_loaded 2

Variables

None

Stats

MD5 b1ca027c335432a9ec70d22fe6cb8725
Eval Count 0
Decode Time 117 ms