示例#1
0
function spamshield_get_site_url()
{
    if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
        $url = 'https://';
    } else {
        $url = 'http://';
    }
    $url .= spamshield_get_server_name();
    return $url;
}
    $wpss_alt_prefix = spamshield_md5(RSMP_SERVER_IP_NODOT);
    define('RSMP_HASH_ALT', $wpss_alt_prefix);
}
if (!defined('RSMP_HASH')) {
    if (defined('COOKIEHASH')) {
        $wpss_hash_prefix = COOKIEHASH;
    } else {
        $wpss_hash_prefix = spamshield_md5(RSMP_SITE_URL);
    }
    define('RSMP_HASH', $wpss_hash_prefix);
}
if (!defined('RSMP_SERVER_ADDR')) {
    define('RSMP_SERVER_ADDR', spamshield_get_server_addr());
}
if (!defined('RSMP_SERVER_NAME')) {
    define('RSMP_SERVER_NAME', spamshield_get_server_name());
}
if (!defined('RSMP_SERVER_NAME_REV')) {
    define('RSMP_SERVER_NAME_REV', strrev(RSMP_SERVER_NAME));
}
if (!defined('WPSS_REF2XJS')) {
    define('WPSS_REF2XJS', 'r3f5x9JS');
}
if (!defined('WPSS_JSONST')) {
    define('WPSS_JSONST', 'JS04X7');
}
if (!defined('RSMP_DEBUG_SERVER_NAME')) {
    define('RSMP_DEBUG_SERVER_NAME', '.redsandmarketing.com');
}
if (!defined('RSMP_DEBUG_SERVER_NAME_REV')) {
    define('RSMP_DEBUG_SERVER_NAME_REV', strrev(RSMP_DEBUG_SERVER_NAME));