Changeset 805 for trunk/includes
- Timestamp:
- May 24, 2014, 11:35:47 PM (11 years ago)
- Location:
- trunk/includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Update.php
r553 r805 54 54 $InstallMethod = $this->InstallMethod; 55 55 $InstallMethod($this); 56 $this->Update(); 56 57 } 57 58 -
trunk/includes/Version.php
r804 r805 6 6 // and system will need database update. 7 7 8 $Revision = 80 4; // Subversion revision8 $Revision = 805; // Subversion revision 9 9 $DatabaseRevision = 803; // Database structure revision 10 $ReleaseTime = '2014-0 4-14';10 $ReleaseTime = '2014-05-24'; -
trunk/includes/global.php
r800 r805 754 754 if(substr($PathString, -1, 1) == '/') $PathString = substr($PathString, 0, -1); 755 755 $PathItems = explode('/', $PathString); 756 if(strpos( $_SERVER['REQUEST_URI'], '?') !== false)757 $_SERVER['QUERY_STRING'] = substr( $_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?') + 1);756 if(strpos(GetRequestURI(), '?') !== false) 757 $_SERVER['QUERY_STRING'] = substr(GetRequestURI(), strpos(GetRequestURI(), '?') + 1); 758 758 else $_SERVER['QUERY_STRING'] = ''; 759 759 parse_str($_SERVER['QUERY_STRING'], $_GET); … … 780 780 } 781 781 782 function GetClientProxyAddresses() 783 { 784 if(array_key_exists('HTTP_X_FORWARDED_FOR',$_SERVER)) $IP = $_SERVER['HTTP_X_FORWARDED_FOR']; 785 else $IP = array(); 786 } 787 782 788 function GetRemoteAddress() 783 789 { 784 if(array_key_exists('HTTP_X_FORWARDED_FOR',$_SERVER)) $IP = $_SERVER['HTTP_X_FORWARDED_FOR'] ; 785 else if(array_key_exists('REMOTE_ADDR', $_SERVER)) $IP = $_SERVER['REMOTE_ADDR']; 786 else $IP = '0.0.0.0'; 790 if(array_key_exists('REMOTE_ADDR', $_SERVER)) $IP = $_SERVER['REMOTE_ADDR']; 791 else $IP = ''; 787 792 return($IP); 788 793 } 794 795 function GetRequestURI() 796 { 797 if(array_key_exists('REQUEST_URI', $_SERVER)) return($_SERVER['REQUEST_URI']); 798 else return($_SERVER['PHP_SELF']); 799 } -
trunk/includes/system.php
r800 r805 110 110 $ScriptStartTime = GetMicrotime(); 111 111 112 if( isset($_SERVER['REMOTE_ADDR'])) session_start();112 if(GetRemoteAddress() != '') session_start(); 113 113 114 114 if(!isset($Config)) die('Systém není nainstalován. Pokračujte v instalaci <a href="admin/install.php">zde</a>.'); … … 433 433 $ScriptGenerateDuration.' s / '.ini_get('max_execution_time').' s '.T('Used memory').': '. 434 434 HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B <a href="http://validator.w3.org/check?uri='. 435 htmlentities('http://'.$_SERVER['HTTP_HOST']. $_SERVER['REQUEST_URI'].'?'.$_SERVER['QUERY_STRING']).'">HTML validator</a></td></tr>';435 htmlentities('http://'.$_SERVER['HTTP_HOST'].GetRequestURI().'?'.$_SERVER['QUERY_STRING']).'">HTML validator</a></td></tr>'; 436 436 $Output .= '</table>'. 437 437 '</body>'.
Note:
See TracChangeset
for help on using the changeset viewer.