<?php
/*
* Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2006 The Nucleus Group
+ * Copyright (C) 2002-2010 The Nucleus Group
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* Actionlog class for Nucleus
*
* @license http://nucleuscms.org/license.txt GNU General Public License
- * @copyright Copyright (C) 2002-2006 The Nucleus Group
- * @version $Id: ACTIONLOG.php,v 1.5 2006-07-17 20:03:44 kimitake Exp $
- * $NucleusJP: ACTIONLOG.php,v 1.4 2005/08/13 07:31:04 kimitake Exp $
+ * @copyright Copyright (C) 2002-2010 The Nucleus Group
+ * @version $Id$
+ * $NucleusJP: ACTIONLOG.php,v 1.7 2007/03/13 05:18:32 shizuki Exp $
*/
define('ERROR',1); // only errors
define('WARNING',2); // errors and warnings
class ACTIONLOG {
/**
- * (Static) Method to add message to log
+ * (Static) Method to add a message to the action log
*/
function add($level, $message) {
global $member, $CONF;
}
/**
- * (Static) Method to clear log
+ * (Static) Method to clear the whole action log
*/
function clear() {
global $manager;
return sql_query($query);
}
+ /**
+ * (Static) Method to trim the action log (from over 500 back to 250 entries)
+ */
function trimLog() {
static $checked = 0;