Changeset 305 for trunk/index.php
- Timestamp:
- Jan 30, 2011, 12:13:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r304 r305 6 6 { 7 7 var $Dependencies = array('News'); 8 var $FullTitle = ' <strong>ZděchovNET</strong> - komunitní počítačová síť';9 var $ShortTitle = ' Rozcestník';8 var $FullTitle = 'Zděchovský rozcestník'; 9 var $ShortTitle = ''; 10 10 11 11 function ShowLinks($GroupId) … … 124 124 return($Output); 125 125 } 126 127 function GetServerUptime() 128 { 129 $Data = explode(' ', exec('uptime')); 130 $Data = array_slice($Data, 3, -8); 131 $Uptime = ''; 132 foreach($Data as $Item) 133 { 134 if(strpos($Item, ':')) $Uptime .= substr($Item, 0, -1).' hodin'; 135 else $Uptime .= $Item.' '; 136 } 137 $Uptime = str_replace('2 days,', '2 dny a', $Uptime); 138 $Uptime = str_replace('3 days,', '3 dny a', $Uptime); 139 $Uptime = str_replace('4 days,', '4 dny a', $Uptime); 140 $Uptime = str_replace('days,', 'dní a', $Uptime); 141 $Uptime = str_replace('day,', 'den a', $Uptime); 142 $Uptime = str_replace('min,', 'minut', $Uptime); 143 return($Uptime); 144 } 145 126 146 127 function Panel($Title, $Content, $Menu = array()) 147 128 {
Note:
See TracChangeset
for help on using the changeset viewer.