function _fckeditor_requirements_cookiedomainset in FCKeditor - WYSIWYG HTML editor 6.2
Checks if $cookie_domain has been set
It has to include settings.php again because conf_init() sets $cookie_domain regardless of its presence in settings.php, so simply checking $GLOBALS['cookie_domain'] is not possible.
This function is used by fckeditor_requirements()
Return value
boolean True iff $cookie_domain was set in settings.php
1 call to _fckeditor_requirements_cookiedomainset()
- fckeditor_requirements in ./
fckeditor.install - Implementation of hook_requirements().
File
- ./
fckeditor.install, line 422
Code
function _fckeditor_requirements_cookiedomainset() {
if (file_exists('./' . conf_path() . '/settings.php')) {
$settings = file_get_contents('./' . conf_path() . '/settings.php');
if (preg_match('#^\\s*\\$cookie_domain#m', $settings)) {
return TRUE;
}
}
return FALSE;
}