Changeset 567
- Timestamp:
- Aug 20, 2013, 11:49:01 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Log/Log.php
r566 r567 24 24 } 25 25 26 // Log types 27 define('LOG_TYPE_TRANSLATION', 1); 28 define('LOG_TYPE_DOWNLOAD', 2); 29 define('LOG_TYPE_USER', 3); 30 define('LOG_TYPE_MODERATOR', 4); 31 define('LOG_TYPE_ERROR', 10); 32 define('LOG_TYPE_IMPORT', 11); 33 define('LOG_TYPE_EXPORT', 12); 34 define('LOG_TYPE_CZWOW', 13); 35 define('LOG_TYPE_ADMINISTRATION', 14); 36 37 // TODO: Change global function to module class local method 26 38 function WriteLog($Text, $Type) 27 39 { … … 33 45 if(!is_null($User->Id)) $UserId = $User->Id; 34 46 else $UserId = 'NULL'; 35 $Query = 'INSERT INTO `Log` ( `User` , `Type` , `Text` , `Date` , `IP` )36 VALUES ('.$UserId.', '.$Type.', "'.addslashes($Text).'", NOW(), "'.$IP.'" )';47 $Query = 'INSERT INTO `Log` ( `User` , `Type` , `Text` , `Date` , `IP`, `URL` ) 48 VALUES ('.$UserId.', '.$Type.', "'.addslashes($Text).'", NOW(), "'.$IP.'", "'.$_SERVER['REQUEST_URI'].'")'; 37 49 $System->Database->query($Query); 38 50 } … … 137 149 array('Name' => 'UserName', 'Title' => 'Uživatel'), 138 150 array('Name' => 'IP', 'Title' => 'Adresa'), 151 array('Name' => 'URL', 'Title' => 'URL'), 139 152 ); 140 153 $Order = GetOrderTableHeader($TableColumns, 'date', 1); … … 153 166 '<td><span style="color: '.$Line['LogColor'].'">'.$Line['Text'].'</span></td>'. 154 167 '<td><a href="user.php?user='.$Line['User'].'">'.$Line['UserName'].'</a></td>'. 155 '<td>'.$Line['IP'].'</td></tr>'; 168 '<td>'.$Line['IP'].'</td>'. 169 '<td>'.$Line['URL'].'</td></tr>'; 156 170 } 157 171 $Output .= '</table>'. -
trunk/admin/UpdateTrace.php
r553 r567 2567 2567 } 2568 2568 2569 function UpdateTo567($Manager) 2570 { 2571 $Manager->Execute('ALTER TABLE `Log` ADD `URL` VARCHAR( 255 ) NOT NULL ;'); 2572 } 2573 2569 2574 $Updates = array( 2570 2575 498 => array('Revision' => 506, 'Function' => 'UpdateTo506'), … … 2574 2579 537 => array('Revision' => 539, 'Function' => 'UpdateTo539'), 2575 2580 539 => array('Revision' => 543, 'Function' => 'UpdateTo543'), 2581 543 => array('Revision' => 567, 'Function' => 'UpdateTo567'), 2576 2582 ); -
trunk/admin/install.php
r553 r567 2 2 3 3 include_once(dirname(__FILE__).'/../includes/Database.php'); 4 include_once(dirname(__FILE__).'/../includes/AppModule.php'); 4 5 include_once(dirname(__FILE__).'/../includes/system.php'); 5 6 include_once(dirname(__FILE__).'/../includes/Update.php'); -
trunk/includes/Version.php
r566 r567 1 1 <?php 2 2 3 $Revision = 56 6; // Subversion revision4 $DatabaseRevision = 5 43; // Database structure revision3 $Revision = 567; // Subversion revision 4 $DatabaseRevision = 567; // Database structure revision 5 5 $ReleaseTime = '2013-08-20'; -
trunk/includes/global.php
r566 r567 135 135 } 136 136 137 // Log types138 define('LOG_TYPE_TRANSLATION', 1);139 define('LOG_TYPE_DOWNLOAD', 2);140 define('LOG_TYPE_USER', 3);141 define('LOG_TYPE_MODERATOR', 4);142 define('LOG_TYPE_ERROR', 10);143 define('LOG_TYPE_IMPORT', 11);144 define('LOG_TYPE_EXPORT', 12);145 define('LOG_TYPE_CZWOW', 13);146 define('LOG_TYPE_ADMINISTRATION', 14);147 148 149 137 function utf2ascii($text) 150 138 {
Note:
See TracChangeset
for help on using the changeset viewer.