From 9f108dd1a969473375341d92a7b1252fa2cedc9a Mon Sep 17 00:00:00 2001 From: mszulecki Date: Thu, 14 Jun 2007 17:09:01 +0000 Subject: Initial import. git-svn-id: http://svn.sukimashita.com/repos/mailadmin/trunk@2 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- lib/model/LogEntryPeer.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lib/model/LogEntryPeer.php (limited to 'lib/model/LogEntryPeer.php') diff --git a/lib/model/LogEntryPeer.php b/lib/model/LogEntryPeer.php new file mode 100644 index 0000000..53501da --- /dev/null +++ b/lib/model/LogEntryPeer.php @@ -0,0 +1,23 @@ +setMessage($message); + $e->setPriority($priority); + $e->setHost(gethostbyaddr($_SERVER["REMOTE_ADDR"])); + $user = sfContext::getInstance()->getUser(); + if($user) + $e->setUserId($user->getId()); + $e->save(); + } +} -- cgit v1.1-32-gdbae