common: log Enano upgrades
authorDan Fuhry <dan@enanocms.org>
Mon, 15 Nov 2010 19:21:47 -0500
changeset 1312 e6c6b42a5a51
parent 1311 a228f7e8fb15
child 1313 da50b017af94
common: log Enano upgrades
includes/common.php
--- a/includes/common.php	Mon Nov 15 19:21:40 2010 -0500
+++ b/includes/common.php	Mon Nov 15 19:21:47 2010 -0500
@@ -289,6 +289,8 @@
 {
 	setConfig('enano_version', $version);
 	setConfig('newly_upgraded', 1);
+	$q = $db->sql_query('INSERT INTO '.table_prefix.'logs(log_type,action,time_id,date_string,author,author_uid,page_text,edit_summary) VALUES'
+			. '(\'security\', \'upgrade_enano\', ' . time() . ', \'[DEPRECATED]\', \'\', 0, \'' . $db->escape($version) . '\', \'' . $db->escape($_SERVER['REMOTE_ADDR']) . '\');');
 }
 
 // Set our CDN path