Changeset 48 for trunk/includes/global_function.php
- Timestamp:
- Jan 29, 2009, 10:58:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r47 r48 1 1 <?php 2 2 3 define( LICENCE_ANONYMOUS, -1);4 define( LICENCE_USER, 0);5 define( LICENCE_MODERATOR, 1);6 define( LICENCE_ADMIN, 2);3 define('LICENCE_ANONYMOUS', -1); 4 define('LICENCE_USER', 0); 5 define('LICENCE_MODERATOR', 1); 6 define('LICENCE_ADMIN', 2); 7 7 8 8 function FormatOutput($s) … … 128 128 $user = @$_SESSION['UserID']; 129 129 $Database->SelectDatabase($Config['Database']['Database']); 130 $Database->SQLCommand( "INSERT INTO `log` ( `user` , `type` , `text` , `date` , `IP` )131 VALUES ( '$user', '$Type', '$Text', now(), '".$_SERVER['REMOTE_ADDR']."')");130 $Database->SQLCommand('INSERT INTO `log` ( `user` , `type` , `text` , `date` , `IP` ) 131 VALUES ( "'.$user.'", "'.$Type.'", "'.$Text.'", NOW(), "'.$_SERVER['REMOTE_ADDR'].'")'); 132 132 } 133 133
Note:
See TracChangeset
for help on using the changeset viewer.