Changeset 571


Ignore:
Timestamp:
Sep 27, 2013, 12:44:30 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Zobrazení verze a času v záhlaví stránky.
Location:
trunk/Common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Database.php

    r548 r571  
    152152    return(addslashes($Text));
    153153  }
    154  
    155154}
    156155
     
    175174function MysqlDateTimeToTime($DateTime)
    176175{
    177   if($DateTime == '') return(0);     
     176  if($DateTime == '') return(NULL);     
    178177  $Parts = explode(' ', $DateTime);
    179178  $DateParts = explode('-', $Parts[0]);
     
    185184function MysqlDateToTime($Date)
    186185{
    187   if($Date == '') return(0);
     186  if($Date == '') return(NULL);
    188187  return(MysqlDateTimeToTime($Date.' 0:0:0')); 
    189188}
     
    191190function MysqlTimeToTime($Time)
    192191{
    193   if($Time == '') return(0);
     192  if($Time == '') return(NULL);
    194193  return(MysqlDateTimeToTime('0000-00-00 '.$Time)); 
    195194}
  • trunk/Common/Form/Types/Date.php

    r570 r571  
    2727
    2828    $Output = '';
    29     $Type = $this->FormManager->Type->TypeDefinitionList[$Item['Type']];
    3029    $Style = '';
    3130    if(array_key_exists('Null', $Item) and $Item['Null'])
  • trunk/Common/Page.php

    r567 r571  
    8585  function ShowFooter()
    8686  {
    87     global $ScriptTimeStart;
     87    global $ScriptTimeStart, $Revision, $ReleaseTime;
     88   
    8889    $Time = round(GetMicrotime() - $ScriptTimeStart, 2);
    8990    $Output = '';
    9091    if($this->BasicHTML == false)
    9192    {
    92       $Output .= '<div id="Footer">
    93      <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' |';
     93      $Output .= '<div id="Footer">'.
     94      '<i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' | '.
     95      ' Verze: '.$Revision.' ('.HumanDate($ReleaseTime).') |';
    9496      if($this->ShowRuntimeInfo == true) $Output .= ' Doba generování: '.$Time.' s / '.ini_get('max_execution_time').
    9597        ' s | Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B |';
Note: See TracChangeset for help on using the changeset viewer.