break;
default: // Do stuff when extension is loaded
- // Define all arrary variables as global!
- global $HTML_TAGS, $URL_ENDS, $VALID_EMAI_CHARS;
-
// Valid HTML tags (only simple and no attributes!)
- $HTML_TAGS = array(
+ $GLOBALS['html_tags'] = array(
"b",
"i",
"u",
// URL ends which are used to indentify the end of an URL or email link
// Don't use these chars in links... ;-)
//
- $URL_ENDS = array(
+ $GLOBALS['url_ends'] = array(
" ",
"\n",
"\r",
);
// Valid email chars (without @, or do you want to have another @ inside your email addy?)
- $VALID_EMAIL_CHARS = array(
+ $GLOBALS['valid_email_chars'] = array(
'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s',
't','u','v','w','x','y','z','a','B','C','D','E','F','G','H','I','J','K','L',
'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','-','.','_','0','1',