Changeset 860 for trunk/Modules
- Timestamp:
- Jan 21, 2016, 2:49:19 PM (9 years ago)
- Location:
- trunk/Modules
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Error/Error.php
r838 r860 23 23 function DoStart() 24 24 { 25 if(isset($this->System->Config['Web']['ShowPHPError'])) 26 $this->ErrorHandler->ShowError = $this->System->Config['Web']['ShowPHPError']; 27 else $this->ErrorHandler->ShowError = true; 25 28 $this->ErrorHandler->Start(); 26 29 } -
trunk/Modules/Referrer/Referrer.php
r838 r860 20 20 function DoStart() 21 21 { 22 $this->Excludes[] = $this->System->Config['Web']['Host']; 22 23 $this->Log(); 23 24 $this->System->RegisterPage('referrer', 'PageReferrer'); -
trunk/Modules/Translation/Translation.php
r859 r860 24 24 function DoStart() 25 25 { 26 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();27 28 26 $this->System->RegisterPage('comparison.php', 'PageTranslationComparison'); 29 27 $this->System->RegisterPage('form.php', 'PageTranslationForm'); … … 51 49 if(array_key_exists('Search', $this->System->ModuleManager->Modules)) 52 50 { 51 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 53 52 foreach($TranslationTree as $Group) 54 53 { -
trunk/Modules/User/Profile.php
r852 r860 163 163 T('Number of translated:').' <a href="'.$this->System->Link('/TranslationList.php?user='.$UserLine['ID'].'&state=2&group=0').'" title="Zobrazit Všechny jeho přeložené texty"><strong>'.$UserLine['TranslatedCount'].'</strong></a><br />'. 164 164 T('Level:').' <strong>'.$XP['Level'].'</strong> '.T('experience:').' '.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'<br/>'; 165 if($ UserLine['TeamName'] != '')165 if($this->System->ModuleManager->ModuleRunning('Team') and ($UserLine['TeamName'] != '')) 166 166 $Output .= T('Member of team:').' <a href="'.$this->System->Link('/team/?action=team&id='.$UserLine['Team']).'"><strong>'.htmlspecialchars($UserLine['TeamName']).'</strong></a><br />'; 167 167 -
trunk/Modules/User/User.php
r843 r860 37 37 $this->System->ModuleManager->Modules['Search']->RegisterSearch('user', 38 38 T('Translators'), array('Name'), '`User`', $this->System->Link('/users/?search=')); 39 $this->System->RegisterPageBarItem('Top', 'User', array($this, 'TopBarCallback')); 39 40 } 40 41 … … 51 52 $Name = '<a href="'.$this->System->Link('/user/?user='.$DbUser['ID']).'">'.$DbUser['Name'].'</a>'; 52 53 $Output .= $Name.'<br />'; 54 } 55 return($Output); 56 } 57 58 function TopBarCallback() 59 { 60 $Output = ''; 61 if($this->System->User->Licence(LICENCE_USER)) 62 { 63 //$DbResult =$this->Database->query('SELECT `Id`, `Name` FROM `Team` WHERE `Id`='.$this->System->User->Team); 64 //$Team = $DbResult->fetch_assoc(); 65 //$Output .= ''<span class="MenuItem">Moje překlady: <a href="">Dokončené</a> <a href="">Rozpracované</a> <a href="">Exporty</a> Tým: <a href="">'.$Team['name'].'</a></span>'; 66 $Output .= $this->System->User->Name.' <a href="'.$this->System->Link('/?action=logout').'">'.T('Logout').'</a>'. 67 ' <a href="'.$this->System->Link('/user/?user='.$this->System->User->Id).'">'.T('My page').'</a>'. 68 ' <a href="'.$this->System->Link('/options/').'">'.T('Options').'</a>'. 69 ' <a title="Vámi přeložené texty" href="'.$this->System->Link('/TranslationList.php?user='. 70 $this->System->User->Id.'&group=0&state=2&text=&entry=').'">'.T('Translated').'</a>'. 71 ' <a title="Vaše rozpracované text" href="'.$this->System->Link('/TranslationList.php?user='. 72 $this->System->User->Id.'&group=0&state=3&text=&entry=').'">'.T('Unfinished').'</a>'. 73 ' <a title="Nikým nepřeložené texty" href="'. 74 $this->System->Link('/TranslationList.php?user=0&group=0&state=1&text=&entry=').'">'.T('Untranslated').'</a>'; 75 } else 76 { 77 $Output .= '<a href="'.$this->System->Link('/login/').'">'.T('Login').'</a> '. 78 '<a href="'.$this->System->Link('/registration/').'">'.T('Registration').'</a>'; 53 79 } 54 80 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.