query("select * from continut where id=".$id); $tmp=$obj->unprotect($tmp); if ($tmp[0]['parent']==0) { $this->elem_cale['titlu'][$this->contor]=$tmp[0]['titlu']; $this->elem_cale['link'][$this->contor]=$prefix.'/'.makeLink($tmp[0]['titlu']).'-'.$tmp[0]['id'].'.html'; $this->contor++; } else{ $this->elem_cale['titlu'][$this->contor]=$tmp[0]['titlu']; $this->elem_cale['link'][$this->contor]=$prefix.'/'.makeLink($tmp[0]['titlu']).'-'.$tmp[0]['id'].'.html'; $this->contor++; $this->cale($tmp[0]['parent']); } $id=$obj->query("select id,titlu from continut where id in (select valoare from config where optiune='prima_pagina' and id_lang='2')",0); $this->elem_cale['titlu'][$this->contor]='Index'; $this->elem_cale['link'][$this->contor]='./'.$prefix.'/'; } function display(){ echo ''."\n"; } function displayModel($model){ echo ''."\n"; } function title($model=''){ return $this->elem_cale['titlu'][0]; } } ?>