Changeset 738 for trunk/Common/Global.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r729 r738 25 25 26 26 $MonthNames = array('', 'Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 27 27 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'); 28 28 29 29 $UnitNames = array('B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB'); … … 58 58 function HumanDate($Time) 59 59 { 60 60 if($Time != '') { 61 61 $Date = explode(' ', $Time); 62 62 $Parts = explode('-', $Date[0]); 63 63 if($Date != '0000-00-00') return(($Parts[2]*1).'.'.($Parts[1]*1).'.'.$Parts[0]); 64 64 else return(' '); 65 65 } else return(' '); 66 66 } 67 67 … … 106 106 { 107 107 return(array( 108 109 110 111 112 113 108 'Year' => date('Y', $Time), 109 'Month' => date('n', $Time), 110 'Day' => date('j', $Time), 111 'Hour' => date('h', $Time), 112 'Minute' => date('i', $Time), 113 'Second' => date('s', $Time) 114 114 )); 115 115 } … … 143 143 class Paging 144 144 { 145 146 147 148 149 150 151 152 153 154 155 156 157 145 var $TotalCount; 146 var $ItemPerPage; 147 var $Around; 148 var $SQLLimit; 149 var $Page; 150 151 function __construct() 152 { 153 global $System; 154 155 $this->ItemPerPage = $System->Config['Web']['ItemsPerPage']; 156 $this->Around = $System->Config['Web']['VisiblePagingItems']; 157 } 158 158 159 159 function Show() … … 356 356 function IsInternetAddr() 357 357 { 358 359 360 358 global $Config; 359 360 $Result = true; 361 361 $RemoteAddr = GetRemoteAddress(); 362 362 foreach($Config['Web']['IntranetSubnets'] as $Subnet) … … 364 364 if(substr($RemoteAddr, 0, strlen($Subnet)) == $Subnet) 365 365 { 366 367 366 $Result = false; 367 break; 368 368 } 369 369 } … … 467 467 function pack_array($v, $a) 468 468 { 469 470 } 471 469 return call_user_func_array('pack', array_merge(array($v), (array)$a)); 470 } 471
Note:
See TracChangeset
for help on using the changeset viewer.