<?php
/**
* Lite Publisher
* Copyright (C) 2010 - 2013 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/
* Dual licensed under the MIT (mit.txt)
* and GPL (gpl.txt) licenses.
**/
function trobotstxtInstall($self) {
  $self->lock();
  $urlmap = turlmap::i();
  $self->idurl = $urlmap->add('/robots.txt', get_class($self), null);
  
  $self->add("#" . litepublisher::$site->url . "/");
  $self->add('User-agent: *');
  //$self->AddDisallow('/rss.xml');
  //$self->AddDisallow('/comments.xml');
  //$self->AddDisallow('/comments/');
  $self->AddDisallow('/admin/');
  $self->AddDisallow('/admin/');
  $self->AddDisallow('/wlwmanifest.xml');
  $self->AddDisallow('/rsd.xml');
  $self->unlock();
}

function trobotstxtUninstall($self) {
  turlmap::unsub($self);
}