* @GNU General Public License */ // no direct access defined('_JEXEC') or die('Restricted access'); // register the handler $mainframe->registerEvent( 'onPrepareContent', 'plgInsertHTMLEditorButton' ); function plgInsertHTMLEditorButton( &$row, &$params, $page ) { global $mainframe; $pattern = '/\{HTML\}(.*?)\{\/HTML\}/i'; // match {HTML}...{/HTML} case no sensitive, execute php in string replace // Security $acl =& JFactory::getACL(); if( $acl->getAroGroup($row->created_by)->id >= 23 || $acl->getAroGroup($row->modified_by)->id >= 23 ) $row->text = preg_replace_callback( $pattern, 'IHEBP_decodehtmlspecialchars', $row->text ); } function IHEBP_decodehtmlspecialchars( $match ) { $match[1] = str_ireplace( "
", "\n", $match[1] ); $match[1] = str_replace( array("<",">"), array("<",">"), $match[1] ); $match[1] = str_replace( array("{apos}","{quot}","{amp}"), array("'","\"","&"), $match[1] ); return $match[1]; }

Why you might want to buy a rainwater tank (aka water butt)

In hot and dry weather, water used outdoors can amount to 50 per cent of total UK usage. However it is still possible to have a beautiful and productive garden. Using rainwater tanks (aka water butts) is good for the environment and reduces your water bills, because rainwater is free!

Water is a precious resource that needs to be used carefully. Water taken from rivers and lakes for human use has an impact on wildlife. Increasing demand for water puts a strain on natural resources, which makes it important to find ways of conserving this valuable resource.

Rainwater Tanks - rainwater butts 2Saving water in the garden can help reduce your water bills, cut the risk of hosepipe bans and water restrictions, and help protect wildlife.

Thousands of litres of rainwater fall on the average roof every year. Collecting this water and using it on your garden is better for your lawn and plants as well as for the environment.

If you want to collect more water than can be stored in one butt, you can buy a connector kit to link two or more together.

Dim lights Embed Embed this video on your site

Add comment

Security code