Ignore:
Timestamp:
May 24, 2014, 11:35:47 PM (10 years ago)
Author:
chronos
Message:
  • Fixed: Do not log client proxy IP address as remote address because it can be faked and also there can be multiple client proxy addresses.
  • Modified: Do not use directly $_SERVER variables REMOTE_ADDR and REQUEST_URI as they are not initialized if script is executed from command line.
  • Fixed: Default configuration was not complete.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/install.php

    r765 r805  
    9595  $Output = "<?php
    9696
    97   \$IsDeveloper = in_array(\$_SERVER['REMOTE_ADDR'], array('127.0.0.1'));
     97  \$IsDeveloper = in_array(GetRemoteAddress(), array('127.0.0.1'));
    9898
    9999  \$Config = array(
     
    119119    'ShowSQLQuery' => false,
    120120    'ShowSQLError' => \$IsDeveloper,
     121    'LogSQLQuery' => false,
    121122    'ShowPHPError' => \$IsDeveloper,
    122123    'ShowRuntimeInfo' => \$IsDeveloper,
    123124    'FormatOutput' => \$IsDeveloper,
    124         'ItemsPerPage' => ".$Config['Web']['ItemsPerPage'].",
    125     'TempFolder' => '../tmp/',
     125    'ItemsPerPage' => ".$Config['Web']['ItemsPerPage'].",
     126    'TempFolder' => 'tmp/',
     127    'SourceFolder' => 'source/',
    126128    'GameVersion' => '3.3.5a',
    127129    'VisiblePagingItems' => ".$Config['Web']['VisiblePagingItems'].",
     
    135137  'MaxExportPerUser' => 10,
    136138  'AoWoWExportId' => 1,
    137         'OriginalLanguage' => 1,
     139  'OriginalLanguage' => 1,
    138140  'SystemPassword' => '".$Config['SystemPassword']."',
    139141);";
Note: See TracChangeset for help on using the changeset viewer.