Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addToLog($type, $channel, $host, $message)
- {
- global $database;
- $temp = explode('!', $host);
- $nick = $temp[0];
- unset($temp);
- $timestamp = time();
- $nickprefix = '';
- $query = $database->prepare("INSERT INTO log (channel, nick, host, message, type, timestamp, nickprefix) VALUES (:channel, :nick, :host, :message, :type, :time, '');");
- $query->bindParam(':channel', $channel);
- $query->bindParam(':nick', $nick);
- $query->bindParam(':host', $host);
- $query->bindParam(':message', $message);
- $query->bindParam(':type', $type);
- $query->bindParam(':time', $timestamp);
- $query->execute();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement