Changeset 157 for trunk/includes


Ignore:
Timestamp:
Mar 12, 2009, 3:33:20 PM (16 years ago)
Author:
george
Message:
  • Přidáno: Volba nastavení zobrazovat SQL dotazy ShowSQLQuery.
  • Přidáno: Na stránce Informace dopsáno, že $R v textech značí rasu.
Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/config.sample.php

    r147 r157  
    1616    'BaseURL' => 'http://localhost/',
    1717        'AdminEmail' => 'admin@localhost',
     18        'ShowSQLQuery' => false,
    1819        'ShowSQLError' => false,
    1920        'ShowPHPError' => false,
  • trunk/includes/databaseconection.php

    r58 r157  
    2323        global $Config;
    2424       
     25        if($Config['Web']['ShowSQLQuery'] == true)
     26          echo('<div style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: silver; padding-bottom: 2px; padding-top: 2px; font-size: 12px; font-family: Arial;">'.$Command.'</div>');
    2527    $ReturnCommand = mysql_query($Command, $this->id_connection);
    2628        if((mysql_error() != '') and ($Config['Web']['ShowSQLError'] == true))
Note: See TracChangeset for help on using the changeset viewer.