params= new JRegistry(); $this->params->loadString($plugin->params, 'JSON'); $this->_cacheEnabled = $this->params->get('cache_enabled'); if ($this->_cacheEnabled === null) $this->_cacheEnabled == 1; $this->_autoflush = $this->params->get('autoFlush'); if ($this->_autoflush === null) $this->_autoflush = 1; $this->_autoflush3rdParty = $this->params->get('autoFlush-ThirdParty'); if ($this->_autoflush3rdParty === null) $this->_autoflush3rdParty = 1; $this->_autoflushClientSide = $this->params->get('autoFlush-ClientSide'); if ($this->_autoflushClientSide === null) $this->_autoflushClientSide = 0; } /** * Heartbeat cache checking function. Will also monitor $_GET for the jSGCache parameter * (pressing the purge cache button in admin) * * * @access public * @return null */ public function onAfterInitialise() { if (!$this->_cacheEnabled || $this->_isBlacklisted($this->_applicationPath)) { JResponse::setHeader('X-Cache-Enabled','False',true); return; } if ($this->_cacheEnabled) { JResponse::setHeader('X-Cache-Enabled','True',true); } //Init the application url $this->_applicationPath = str_replace(array('administrator/index.php','index.php'),'',str_replace($_SERVER['DOCUMENT_ROOT'],'',$_SERVER['SCRIPT_FILENAME'])); //Check for any admin action and proceed to flushMonitor and 3rd party plugins if ( isset($_POST['task']) || isset($_GET['task']) || isset($_GET['cart_virtuemart_product_id'])) { $this->_flushMonitor(); if ($this->_autoflush3rdParty) $this->_monitorThirdPartyPlugins(); } //Check if we have a logged in user and enable cache bypass cookie 'task' => string 'user.login' $user = JFactory::getUser(); if (!$user->guest || (isset($_POST['task']) && preg_match('/login/i', $_POST['task']))) { $_POST[JSession::getFormToken()] = 1; //Force the correct token, since the login box on the page is cached with the 1st visitors' token //Enable the cache bypass for logged users by setting a cache bypass cookie setcookie('jSGCacheBypass',1,time() + 6000,'/'); } if ($user->guest || (isset($_POST['task']) && $_POST['task'] == 'user.logout')) { //Remove the bypass cookie if not a logged user if (isset($_COOKIE['jSGCacheBypass'])) setcookie('jSGCacheBypass',0, time() - 3600,'/'); } // Handle purge button press when get has jSGCache=purge, but only in admin with a logged user if(isset($_GET['jSGCache']) && $_GET['jSGCache'] == 'purge' && JFactory::getApplication()->isAdmin() && !$user->guest ) $this->_purgeCache(true); } /** * Admin panel icon display * * @access public * @param string $context * @return array */ public function onGetIcons( $context ) { return array(array( 'link'=>'?jSGCache=purge', 'image'=>'header/icon-48-purge.png', 'text'=>JText::_('Purge jSGCache'), 'id'=>'jSGCache' )); } /** * Calls the cache server to purge the cache * * @access public * @param string|bool $message Message to be displayed if purge is successful. If this param is false no output would be done * @return null */ private function _purgeCache( $message = true ) { $purgeRequest = $this->_applicationPath . '(.*)'; // Check if caching server is varnish or nginx. $sgcache_ip = '/etc/sgcache_ip'; $hostname = $_SERVER['SERVER_ADDR']; $purge_method = "PURGE"; if (file_exists($sgcache_ip)) { $hostname = trim( file_get_contents( $sgcache_ip, true ) ); $purge_method = "BAN"; } $cacheServerSocket = fsockopen($hostname, 80, $errno, $errstr, 2); if(!$cacheServerSocket) { JError::raise(E_ERROR,500,JText::_('Connection to cache server failed!')); JError::raise(E_ERROR,500,JText::_($errstr ($errno))); return; } $request = "$purge_method {$purgeRequest} HTTP/1.0\r\nHost: {$_SERVER['SERVER_NAME']}\r\nConnection: Close\r\n\r\n"; if (preg_match('/^www\./',$_SERVER['SERVER_NAME'])) { $domain_no_www = preg_replace('/^www\./', '', $_SERVER['SERVER_NAME']); $request2 = "$purge_method {$purgeRequest} HTTP/1.0\r\nHost: {$domain_no_www}\r\nConnection: Close\r\n\r\n"; } else $request2 = "$purge_method {$purgeRequest} HTTP/1.0\r\nHost: www.{$_SERVER['SERVER_NAME']}\r\nConnection: Close\r\n\r\n"; fwrite($cacheServerSocket, $request); $response = fgets($cacheServerSocket); fclose($cacheServerSocket); $cacheServerSocket = fsockopen($hostname, 80, $errno, $errstr, 2); fwrite($cacheServerSocket, $request2); fclose($cacheServerSocket); if($message !== false) { if(preg_match('/200/',$response)) { if ($message === true) JFactory::getApplication()->enqueueMessage(JText::_('SG Cache Successfully Purged!')); else JFactory::getApplication()->enqueueMessage(JText::_( $message )); } else { JError::raise(E_NOTICE,501, JText::_('SG Cache: Purge was not successful!')); JError::raise(E_NOTICE,501, jText::_('Error: ' . $response)); } } } /** * Check if url is in caching blacklist * * @param string $applicationPath * * @return bool */ private function _isBlacklisted($applicationPath) { $blacklistArray = explode("\n",$this->params->get('blacklist')); $blacklistRegexArray = array(); $indexIsBlacklisted = false; foreach($blacklistArray as $key=>$row) { $row = trim($row); if ($row != '/' && $quoted = preg_quote($row,'/')) $blacklistRegexArray[$key] = $quoted; if ($row == '/') $indexIsBlacklisted = true; } if ($indexIsBlacklisted && $_SERVER['REQUEST_URI'] == $applicationPath) return true; if (empty($blacklistRegexArray)) return false; $blacklistRegex = '/('.implode('|',$blacklistRegexArray) . ')/i'; return preg_match($blacklistRegex, $_SERVER['REQUEST_URI']); } /** * 3rd party plugin monitor * * @access private * @return null */ private function _monitorThirdPartyPlugins() { // Kunena & K2 if ($this->params->get('autoFlush-ThirdParty') == 1 && isset($_POST['option']) && ($_POST['option']=='com_k2' || $_POST['option' ]== 'com_kunena')) { $this->_purgeCache(false); } // VirtueMart if ( (isset($_POST['option']) && $_POST['option'] == 'com_virtuemart') || ( isset($_GET['option']) && $_GET['option'] == 'com_virtuemart' ) || isset($_GET['cart_virtuemart_product_id']) ) { if($this->params->get('autoFlush-ThirdParty') == 1) $this->_purgeCache(false); } } /** * Action monitor * * @access private * @return null */ private function _flushMonitor() { $user = JFactory::getUser(); if ((!JFactory::getApplication()->isAdmin() && !$this->_autoflushClientSide) || $user->guest) return; $autoflush = $this->params->get('autoFlush'); if ($autoflush === null) $autoflush = 1; if (isset($_POST['task']) && $_POST['task'] && !in_array($_POST['task'],self::$_ignoreTasks) && $autoflush == 1) $this->_purgeCache(false); } } Pictures of horses and nature in Vatnsnes
banner1 banner10 banner11 banner12 banner13 banner14 banner15 banner16 banner17 banner18 banner19 banner2 banner20 banner21 banner22 banner3 banner4 banner5 banner6 banner7 banner8 banner9

Contact us

How many legs does a horse have?*


Follow us on facebook

Portfolio samples

Contact information
This email address is being protected from spambots. You need JavaScript enabled to view it.

mobile: 354-8453832

I always feel bad about how seldom I have time to work on the website. But we have been very busy with the eider nesting in the spring and beginning of the summer, and now I (Heiða) am working on another farm, so I don't have so much time to take photographs. 
There is also very little happening with our horses at the moment and we can almost say that we have holiday in our horsemanship. 
Almost all of our ridden horses are sold (except ofcourse our breeding mares and stallions) and now we only have 4 horses in training. There of is one sold and will leave the country next winter. 
Now we are just waiting (with excitement!) for our "big" group of youngsters who will get old enough to be started this fall/winter. Those are the first offsprings of our Vatnsleysa stallions, Akkur and Strákur, so we are pretty excited (understatement) about how they will turn out ! :)

The following pictures have been taken in july.


Strákur in his beutiful field. He always comes running when he sees us =) 




One of the mares that Strákur is covering. She is a black roan pinto.


Spes, daughter of Strákur and Gríma


Spes frá Hindisvík


One of Strákur's ladies. You can also see some seals lying on the rocky islands in the background.




She is growing very fast now and shows much tölt when running.


In Strákur's field.


Milla frá Miðfelli, a 3 year old daughter of Akkur and a Hornafjörður mare.


Spes frá Hindisvík


Frigg is a daughter of Frá frá Hindisvík and Akkur frá Vatnsleysu. In this visit we noticed that she has a white snip on her nose. We could not see it when she was new born, only now after she has begun to change her coat.


Miðja frá Dynjanda, a 3 year old daughter of Strákur. Her mother was sired by Orion frá Litla-Bergi.


Dáð is turning 2 years old in the end of august. Big and handsome mare.


Skarði is a 2 year old gelding. In the background you can see the huge Kolviður, who is only 3 years old. Skarði is a son of Strákur and Kolviður is a son of Akkur.


Skarði frá Dynjanda


It is pretty obvious who her father is ;)


Melkorka and Dalía, 3 year old mares.


3 year old mares. Munda and Melkorka are both daughters of Akkur and Hornafjörður mares from Miðfell and Dalía is a daughter of Strákur and Skráma.


Munda frá Miðfelli


Munda again


Our beautiful Miðja. She is unbelieveably un-photogenic. I have never got to know any horse that is as difficult to get a good shot of like she is. Which is pretty weird because she is very nice to look at when you see her "live".


Kolviður 3 year old son of Akkur and the Hornafjörður bloodlined Kolbrá frá Miðfelli, who is a sister to Dimma frá Miðfelli (the mother of Díva (10 for tölt) and Dimmir frá Álfhólum)


Hæra, has the same mother as Kolviður. Her father is Skuggi frá Dynjanda. She is one of the most pure bred Hornafjörður horses with Nökkvi frá Hólmi about 40 times in her pedigree.
Hæra is now on summer vacation and will be in training again next winter. She is a big and powerful mare and we are looking forward to start working with her again.


Frigg frá Hindisvík


Miðja frá Dynjanda




Hanný frá Þúfu is a inbred ancestor of Gustur frá Grund and his father Flosi frá Brunnum. Her mother and father are both sired by Gustur frá Grund and her MM is a daughter of Flosi (Gustur's father). 
Hanný was shortly broken in last winter. She is small so we decided to give her time to grow and develope until next summer. She shows very high leg action and chooses to trot.


Dáð daughter of Strákur and Gríma.


Frigg frá Hindisvík


Hugrún, 4 year old mare sired by Huginn frá Haga and Glæring. She was shortly broken in this winter and turned out to be a very nice and easy youngster with all gaits open. 


In Hindisvík


The old house in Hindisvík. I have endless pictures of it, but it is somehow impossible for me to just pass it without taking a picture ! :)


In Hindisvík 




Near Hvítserkur


near Hvítserkur


again near Hvítserkur


and again 


and again !






and again and again and again !! 
(This is what happends when I get a moment to take pictures after a long break)




Heiða visiting Strákur


Spes in a sunbath


Bianca and Milla, a 3 year old daughter of Akkur


The last picture is taken in Kolugljúfur. It is such a beautiful place. Would recommend it to anyone !