Changeset 874 for trunk/Application
- Timestamp:
- Apr 6, 2020, 11:56:19 PM (5 years ago)
- Location:
- trunk/Application
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/DefaultConfig.php
r873 r874 6 6 { 7 7 $IsDeveloper = in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1')); 8 return (array8 return array 9 9 ( 10 10 array('Name' => 'SystemPassword', 'Type' => 'PasswordEncoded', 'Default' => '', 'Title' => 'Systémové heslo'), … … 53 53 array('Name' => 'MainRouter/ConnectTimeout', 'Type' => 'Integer', 'Default' => '5', 'Title' => 'Vypršení času'), 54 54 array('Name' => 'MainRouter/MangleRuleSubgroupMinPrefix', 'Type' => 'Integer', 'Default' => '28', 'Title' => 'Nejmenší prefix podsítě pro mangle pravidla'), 55 ) );55 ); 56 56 } 57 57 } -
trunk/Application/System.php
r873 r874 75 75 { 76 76 array_shift($PathItems); 77 return ($this->SearchPage($PathItems, $Pages[$PathItem]));78 } else return ($Pages[$PathItem]);79 } else return ('');77 return $this->SearchPage($PathItems, $Pages[$PathItem]); 78 } else return $Pages[$PathItem]; 79 } else return ''; 80 80 } 81 81 82 82 function PageNotFound() 83 83 { 84 return ('Page '.implode('/', $this->PathItems).' not found.');84 return 'Page '.implode('/', $this->PathItems).' not found.'; 85 85 } 86 86 … … 102 102 function ModulePresent($Name) 103 103 { 104 return (array_key_exists($Name, $this->Modules));104 return array_key_exists($Name, $this->Modules); 105 105 } 106 106 … … 112 112 function HumanDate($Time) 113 113 { 114 return (date('j.n.Y', $Time));114 return date('j.n.Y', $Time); 115 115 } 116 116 117 117 function Link($Target) 118 118 { 119 return ($this->RootURLFolder.$Target);119 return $this->RootURLFolder.$Target; 120 120 } 121 121 … … 135 135 '" width="16" height="16" /> <a href="'.$Action['URL'].'">'.$Action['Title'].'</a>'; 136 136 } 137 return ($Output);137 return $Output; 138 138 } 139 139 … … 282 282 { 283 283 Header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); 284 return ('<h3 align="center">Požadovaná stránka neexistuje.</h3>');284 return '<h3 align="center">Požadovaná stránka neexistuje.</h3>'; 285 285 } 286 286 } -
trunk/Application/UpdateTrace.php
r873 r874 2115 2115 function Get() 2116 2116 { 2117 return (array(2117 return array( 2118 2118 491 => array('Revision' => 493, 'Function' => 'UpdateTo493'), 2119 2119 493 => array('Revision' => 494, 'Function' => 'UpdateTo494'), … … 2211 2211 867 => array('Revision' => 869, 'Function' => 'UpdateTo869'), 2212 2212 869 => array('Revision' => 870, 'Function' => 'UpdateTo870'), 2213 ) );2213 ); 2214 2214 } 2215 2215 } -
trunk/Application/View.php
r873 r874 38 38 function SystemMessage($Title, $Text) 39 39 { 40 return ('<table align="center"><tr><td><div class="SystemMessage"><h3>'.$Title.'</h3><div>'.$Text.'</div></div></td></tr></table>');40 return '<table align="center"><tr><td><div class="SystemMessage"><h3>'.$Title.'</h3><div>'.$Text.'</div></div></td></tr></table>'; 41 41 //ShowFooter(); 42 42 //die(); … … 68 68 } 69 69 $Output = substr($Output, 6); 70 return ($Output);70 return $Output; 71 71 } 72 72 … … 106 106 $Output .= '</div></div>'; 107 107 } 108 return ($Output);108 return $Output; 109 109 } 110 110 … … 125 125 } 126 126 $Output .= '</body></html>'; 127 return ($Output);127 return $Output; 128 128 } 129 129 … … 138 138 if ($this->FormatHTML == true) $Output = $this->FormatOutput($Output); 139 139 } 140 return ($Output);140 return $Output; 141 141 } 142 142 … … 147 147 $Page->Database = $this->Database; 148 148 $Page->FormatHTML = $this->FormatHTML; 149 return ($Page);149 return $Page; 150 150 } 151 151 … … 186 186 $nn = $n; 187 187 } 188 return ($out);188 return $out; 189 189 } 190 190 }
Note:
See TracChangeset
for help on using the changeset viewer.