Index: trunk/core/kernel/processors/main_processor.php =================================================================== diff -u -r4135 -r4216 --- trunk/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 4135) +++ trunk/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 4216) @@ -841,38 +841,16 @@ } } -/* - function Login($params) + function GetSectionTitle($params) { - $user_prefix = 'users'; - $this->parser->registerprefix($user_prefix); - $user_class = $this->parser->processors[$user_prefix]->item_class; - - $candidate = new $user_class(NULL, $this->parser->processors[$user_prefix]); - //print_pre($this->Session->Property); - - $special = array_shift($params); - //echo"$special
"; - $candidate_id = $candidate->Login($this->Session->GetProperty('username'), $this->Session->GetProperty('password'), $special); - - if ($candidate_id !== false) { - $this->Session->SetField('user_id', $candidate_id); - $this->Session->Update(); - $this->Session->AfterLogin(); - - $this->parser->register_prefix('m'); - $template = array_shift($params); - if ($template == '') $template = 'index'; - $location = $this->parser->do_process_tag('m', 't', Array($template)); - header("Location: $location"); - exit; - } - elseif ($this->Session->GetProperty('username') != '') { - $this->Session->SetProperty('login_error', 'Incorrect username or password'); - } + $params['name'] = replaceModuleSection($params['phrase']); + return $this->Phrase($params); } - */ + function GetSectionIcon($params) + { + return replaceModuleSection($params['icon']); + } }