function _securesite_copy_script_config in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.test \_securesite_copy_script_config()
Copy script configuration from live site to test site.
Parameters
$object: Object to which scripts should be copied.
12 calls to _securesite_copy_script_config()
- SecureSiteFunctionDigestValidateUnitTest::setUp in ./
securesite.test - Implementation of setUp().
- SecureSiteFunctionUserDeleteUnitTest::setUp in ./
securesite.test - Implementation of setUp().
- SecureSiteFunctionUserLoadUnitTest::setUp in ./
securesite.test - Implementation of setUp().
- SecureSiteFunctionUserSaveUnitTest::setUp in ./
securesite.test - Implementation of setUp().
- SecureSiteScriptDigestMD5UnitTest::setUp in ./
securesite.test - Implementation of setUp().
File
- ./
securesite.test, line 1913 - Tests for Secure Site module.
Code
function _securesite_copy_script_config($object) {
global $conf, $db_prefix;
$conf = array();
$_db_prefix = $db_prefix;
@(include './' . conf_path() . '/settings.php');
$conf = variable_init($conf);
$object->digest_md5 = variable_get('securesite_digest_script', drupal_get_path('module', 'securesite') . '/digest_md5/digest_md5.php');
$object->stored_passwords = variable_get('securesite_password_script', drupal_get_path('module', 'securesite') . '/digest_md5/stored_passwords.php');
$conf = array();
@(include './' . conf_path() . '/settings.php');
$db_prefix = $_db_prefix;
$conf = variable_init($conf);
variable_set('securesite_digest_script', $object->digest_md5);
variable_set('securesite_password_script', $object->stored_passwords);
}