plugins->moduleInfo('construction','version'); $current_version = dcCore::app()->getVersion('construction'); if (version_compare($current_version,$new_version,'>=')) { return; } dcCore::app()->blog->settings->addNamespace('construction'); $s =& dcCore::app()->blog->settings->construction; $s->put('construction_flag', false, 'boolean', 'Construction blog flag', true, true ); $s->put('construction_allowed_ip', serialize(array('127.0.0.1')), 'string', 'Construction blog allowed ip', true, true ); $s->put('construction_title', __('Work in progress'), 'string', 'Construction blog title', true, true ); $s->put('construction_message', __('

The blog is currently under construction.

'), 'string', 'Construction blog message', true, true ); $s->put('construction_extra_urls', serialize(array()), 'string', 'Construction blog message', true, true ); dcCore::app()->setVersion('construction',$new_version); return true;