diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-03 20:44:51 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-03 20:44:51 +1100 |
| commit | 5f0a3aa146288d799394deeeee5fea8b25aff961 (patch) | |
| tree | bb449d86f97cf3b7abef3419af3245fa4f39b5f5 /inc/config.php | |
| parent | 523cf48bae049d6f6f7722f5367c012aeb1e3571 (diff) | |
URL markup
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php index 99e6c999..efde7f81 100644 --- a/inc/config.php +++ b/inc/config.php @@ -66,6 +66,9 @@ // Automatically convert things like "..." to Unicode characters ("�") define('AUTO_UNICODE', true); + // Whether to turn URLs into functional links + define('MARKUP_URLS', true); + define('URL_REGEX', "/(https?|ftp)\:\/\/([a-z0-9+!*(),;?&=\$_.-]+(\:[a-z0-9+!*(),;?&=\$_.-]+)?@)?([a-z0-9-.]*)\.([a-z]{2,3})(\:[0-9]{2,5})?(\/([a-z0-9+\$_-]\.?)+)*\/?(\?[a-z+&\$_.-][a-z0-9;:@&%=+\/\$_.-]*)?(#[a-z_.-][a-z0-9+\$_.-]*)?/"); // Allowed file extensions $allowed_ext = Array('jpg', 'jpeg', 'bmp', 'gif', 'png'); |
