| 1 |
<?php |
<?php |
| 2 |
// $Id: globalredirect.module,v 1.1.2.4.2.5.2.11 2008/12/22 09:36:09 njt1982 Exp $ |
// $Id: globalredirect.module,v 1.1.2.4.2.5.2.12 2008/12/22 10:07:43 njt1982 Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 14 |
|
|
| 15 |
define('GLOBALREDIRECT_NONCLEAN2CLEAN_ENABLED', 1); |
define('GLOBALREDIRECT_NONCLEAN2CLEAN_ENABLED', 1); |
| 16 |
|
|
| 17 |
|
define('GLOBALREDIRECT_CASE_SENSITIVE_URLS_ENABLED', 1); |
| 18 |
|
|
| 19 |
define('GLOBALREDIRECT_DESLASH_ENABLED', 1); |
define('GLOBALREDIRECT_DESLASH_ENABLED', 1); |
| 20 |
|
|
| 21 |
define('GLOBALREDIRECT_MENU_CHECK_ENABLED', 1); |
define('GLOBALREDIRECT_MENU_CHECK_ENABLED', 1); |
| 134 |
} |
} |
| 135 |
|
|
| 136 |
// Alias case sensitivity check. If there is an alias from the previous lookup, do a query to test for case. |
// Alias case sensitivity check. If there is an alias from the previous lookup, do a query to test for case. |
| 137 |
if ($alias) { |
if ($alias && variable_get('globalredirect_case_sensitive_urls', GLOBALREDIRECT_CASE_SENSITIVE_URLS_ENABLED) == GLOBALREDIRECT_CASE_SENSITIVE_URLS_ENABLED) { |
| 138 |
$alias_sensitive = db_result(db_query("SELECT dst FROM {url_alias} WHERE dst = '%s'", $alias)); |
$alias_sensitive = db_result(db_query("SELECT dst FROM {url_alias} WHERE dst = '%s'", $alias)); |
| 139 |
if ($alias_sensitive && $alias != $alias_sensitive) { |
if ($alias_sensitive && $alias != $alias_sensitive) { |
| 140 |
// There is a match and there is a difference in case. |
// There is a match and there is a difference in case. |