<?php
class HookIndex extends Hook {
public function RegisterHook() {
$this->AddHook('init_action','InitAction',__CLASS__,1000);
}
public function InitAction() {
$oUserCurrent=$this->User_GetUserCurrent();
if ($oUserCurrent) {
if (Config::Get('path.root.web')==trim(Router::GetPathWebCurrent(),'/')) {
Router::Action('feed');
return;
}
}
}
}
Второе не знаю как.