Changeset 305 for trunk/index.php


Ignore:
Timestamp:
Jan 30, 2011, 12:13:45 PM (14 years ago)
Author:
george
Message:
  • Upraveno: Aktuality zobrazovány nyní jako dva sloupce v jednom panelu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r304 r305  
    66{
    77  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 = '';
    1010 
    1111  function ShowLinks($GroupId)
     
    124124    return($Output);
    125125  }
    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   
    146127  function Panel($Title, $Content, $Menu = array())
    147128  {
Note: See TracChangeset for help on using the changeset viewer.