- Timestamp:
- Jun 17, 2013, 10:42:13 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/DefaultConfig.php
r535 r542 24 24 'ShowSQLQuery' => false, 25 25 'ShowSQLError' => $IsDeveloper, 26 'ShowPHPError' => $IsDeveloper, 27 'ShowRuntimeInfo' => $IsDeveloper, 26 'LogSQLQuery' => $IsDeveloper, 27 'ShowPHPError' => $IsDeveloper, 28 'ShowRuntimeInfo' => $IsDeveloper, 28 29 'FormatOutput' => $IsDeveloper, 29 30 'ItemsPerPage' => 40, -
trunk/includes/Database.php
r540 r542 28 28 class Database 29 29 { 30 var $Prefix = '';31 var $Functions = array('NOW()', 'CURDATE()', 'CURTIME()', 'UUID()');32 var $Type = 'mysql'; // mysql, pgsql30 var $Prefix; 31 var $Functions; 32 var $Type; 33 33 var $PDO; 34 var $Error = '';34 var $Error; 35 35 var $insert_id; 36 var $LastQuery = ''; 37 var $ShowSQLError = false; 38 var $ShowSQLQuery = false; 36 var $LastQuery; 37 var $ShowSQLError; 38 var $ShowSQLQuery; 39 var $LogFile; 39 40 40 41 function __construct() 41 42 { 43 $this->Functions = array('NOW()', 'CURDATE()', 'CURTIME()', 'UUID()'); 44 $this->Type = 'mysql'; // mysql, pgsql 45 $this->ShowSQLError = false; 46 $this->ShowSQLQuery = false; 47 $this->LogSQLQuery = false; 48 $this->LogFile = 'Query.log'; 42 49 } 43 50 … … 60 67 if($this->ShowSQLQuery == true) 61 68 echo('<div style="border-bottom-width: 1px; border-bottom-style: solid; padding-bottom: 3px; padding-top: 3px; font-size: 12px; font-family: Arial;">'.$Query.'</div>'."\n"); 69 if($this->LogSQLQuery == true) 70 file_put_contents($this->LogFile, $Query."\n", FILE_APPEND); 62 71 $Result = new DatabaseResult(); 63 72 $Result->PDOStatement = $this->PDO->query($Query); -
trunk/includes/Page.php
r539 r542 234 234 235 235 $Output = '<strong>Překladové skupiny:</strong><br /><div id="TranslationMenu">'; 236 $DbResult = $System->Database->select('Group', ' Id, Name', '1 ORDER BY Name');236 $DbResult = $System->Database->select('Group', '`Id`, `Name`', '1 ORDER BY `Name`'); 237 237 while($Group = $DbResult->fetch_assoc()) 238 238 { -
trunk/includes/Version.php
r541 r542 1 1 <?php 2 2 3 $Revision = 54 1; // Subversion revision3 $Revision = 542; // Subversion revision 4 4 $DatabaseRevision = 539; // Database structure revision 5 $ReleaseTime = '2013-0 5-27';5 $ReleaseTime = '2013-06-17'; 6 6 7 7 ?> -
trunk/includes/system.php
r538 r542 39 39 $this->Database->ShowSQLQuery = $this->Config['Web']['ShowSQLQuery']; 40 40 $this->Database->ShowSQLError = $this->Config['Web']['ShowSQLError']; 41 $this->Database->LogSQLQuery = $this->Config['Web']['LogSQLQuery']; 41 42 } 42 43
Note:
See TracChangeset
for help on using the changeset viewer.