Пример #1
0
        $chars .= '-_ []{}<>~`+=,.;:/?|';
    }
    // Convert the hash to an int to seed the RNG
    srand(hexdec(substr($hash, 0, 8)));
    // Create a random string the same length as the default
    $val = '';
    for ($i = 1; $i <= strlen($original); $i++) {
        $val .= substr($chars, rand(0, strlen($chars)) - 1, 1);
    }
    // Reset the RNG
    srand();
    // Set the value
    return $val;
}
// Generate OpenShift secure keys (or return defaults if not on OpenShift)
$key_list = openshift_secure($_default_keys, 'make_secure_key');
/**
 * CakePHP Debug Level:
 *
 * Production Mode:
 * 	0: No error messages, errors, or warnings shown. Flash messages redirect.
 *
 * Development Mode:
 * 	1: Errors and warnings shown, model caches refreshed, flash messages halted.
 * 	2: As in 1, but also with full debug messages and SQL output.
 *
 * In production mode, flash messages redirect after a time interval.
 * In development mode, you need to click the flash message to continue.
 */
Configure::write('debug', 2);
/**
Пример #2
0
    $chars .= '!@#$%^&*()';
    $chars .= '-_ []{}<>~`+=,.;:/?|';
    // Convert the hash to an int to seed the RNG
    srand(hexdec(substr($hash, 0, 8)));
    // Create a random string the same length as the default
    $val = '';
    for ($i = 1; $i <= strlen($original); $i++) {
        $val .= substr($chars, rand(0, strlen($chars)) - 1, 1);
    }
    // Reset the RNG
    srand();
    // Set the value
    return $val;
}
// Generate OpenShift secure keys (or return defaults if not on OpenShift)
$array = openshift_secure($_default_keys, 'make_secure_key');
// Loop through returned values and define them
foreach ($array as $key => $value) {
    define($key, $value);
}
/**#@-*/
/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each a unique
 * prefix. Only numbers, letters, and underscores please!
 */
$table_prefix = 'wp_';
/**
 * WordPress Localized Language, defaults to English.
 *