Changeset 26 for branches/3/functions.php
- Timestamp:
- Oct 12, 2008, 7:58:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3/functions.php
r25 r26 1 1 <?php 2 3 function GetRemoteAddress()4 {5 if(array_key_exists('HTTP_X_FORWARDED_FOR',$_SERVER)) $IP = $_SERVER['HTTP_X_FORWARDED_FOR'] ;6 else $IP = $_SERVER['REMOTE_ADDR'];7 //if($IP == '127.0.0.1')8 return($IP);9 }10 2 11 3 function ShowHeader() 12 4 { // BEGIN function ShowHeader 13 global $Config,$menu ;5 global $Config,$menu,$User; 14 6 echo '<?xml version="1.0" encoding="'.$Config['Charset'].'"?\> 15 7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> … … 37 29 }; 38 30 39 echo '</ul> 31 echo '</ul>'; 32 echo ' 40 33 </div> 41 34 </div>
Note:
See TracChangeset
for help on using the changeset viewer.